chore(server): update openapi (#2205)

This commit is contained in:
Michel Heusschen
2023-04-09 04:26:09 +02:00
committed by GitHub
parent 91e27affeb
commit 983abf5e14
65 changed files with 756 additions and 1458 deletions

View File

@@ -71,7 +71,7 @@ class AssetTypeEnumTypeTransformer {
/// and users are still using an old app with the old code.
AssetTypeEnum? decode(dynamic data, {bool allowNull = true}) {
if (data != null) {
switch (data.toString()) {
switch (data) {
case r'IMAGE': return AssetTypeEnum.IMAGE;
case r'VIDEO': return AssetTypeEnum.VIDEO;
case r'AUDIO': return AssetTypeEnum.AUDIO;

View File

@@ -67,7 +67,7 @@ class DeleteAssetStatusTypeTransformer {
/// and users are still using an old app with the old code.
DeleteAssetStatus? decode(dynamic data, {bool allowNull = true}) {
if (data != null) {
switch (data.toString()) {
switch (data) {
case r'SUCCESS': return DeleteAssetStatus.SUCCESS;
case r'FAILED': return DeleteAssetStatus.FAILED;
default:

View File

@@ -69,7 +69,7 @@ class DeviceTypeEnumTypeTransformer {
/// and users are still using an old app with the old code.
DeviceTypeEnum? decode(dynamic data, {bool allowNull = true}) {
if (data != null) {
switch (data.toString()) {
switch (data) {
case r'IOS': return DeviceTypeEnum.IOS;
case r'ANDROID': return DeviceTypeEnum.ANDROID;
case r'WEB': return DeviceTypeEnum.WEB;

View File

@@ -71,7 +71,7 @@ class JobCommandTypeTransformer {
/// and users are still using an old app with the old code.
JobCommand? decode(dynamic data, {bool allowNull = true}) {
if (data != null) {
switch (data.toString()) {
switch (data) {
case r'start': return JobCommand.start;
case r'pause': return JobCommand.pause;
case r'resume': return JobCommand.resume;

View File

@@ -79,7 +79,7 @@ class JobNameTypeTransformer {
/// and users are still using an old app with the old code.
JobName? decode(dynamic data, {bool allowNull = true}) {
if (data != null) {
switch (data.toString()) {
switch (data) {
case r'thumbnail-generation-queue': return JobName.thumbnailGenerationQueue;
case r'metadata-extraction-queue': return JobName.metadataExtractionQueue;
case r'video-conversion-queue': return JobName.videoConversionQueue;

View File

@@ -67,7 +67,7 @@ class SharedLinkTypeTypeTransformer {
/// and users are still using an old app with the old code.
SharedLinkType? decode(dynamic data, {bool allowNull = true}) {
if (data != null) {
switch (data.toString()) {
switch (data) {
case r'ALBUM': return SharedLinkType.ALBUM;
case r'INDIVIDUAL': return SharedLinkType.INDIVIDUAL;
default:

View File

@@ -210,7 +210,7 @@ class SystemConfigFFmpegDtoTranscodeEnumTypeTransformer {
/// and users are still using an old app with the old code.
SystemConfigFFmpegDtoTranscodeEnum? decode(dynamic data, {bool allowNull = true}) {
if (data != null) {
switch (data.toString()) {
switch (data) {
case r'all': return SystemConfigFFmpegDtoTranscodeEnum.all;
case r'optimal': return SystemConfigFFmpegDtoTranscodeEnum.optimal;
case r'required': return SystemConfigFFmpegDtoTranscodeEnum.required_;

View File

@@ -69,7 +69,7 @@ class TagTypeEnumTypeTransformer {
/// and users are still using an old app with the old code.
TagTypeEnum? decode(dynamic data, {bool allowNull = true}) {
if (data != null) {
switch (data.toString()) {
switch (data) {
case r'OBJECT': return TagTypeEnum.OBJECT;
case r'FACE': return TagTypeEnum.FACE;
case r'CUSTOM': return TagTypeEnum.CUSTOM;

View File

@@ -67,7 +67,7 @@ class ThumbnailFormatTypeTransformer {
/// and users are still using an old app with the old code.
ThumbnailFormat? decode(dynamic data, {bool allowNull = true}) {
if (data != null) {
switch (data.toString()) {
switch (data) {
case r'JPEG': return ThumbnailFormat.JPEG;
case r'WEBP': return ThumbnailFormat.WEBP;
default:

View File

@@ -67,7 +67,7 @@ class TimeGroupEnumTypeTransformer {
/// and users are still using an old app with the old code.
TimeGroupEnum? decode(dynamic data, {bool allowNull = true}) {
if (data != null) {
switch (data.toString()) {
switch (data) {
case r'day': return TimeGroupEnum.day;
case r'month': return TimeGroupEnum.month;
default: