mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 00:51:20 +00:00
feat(backups): Introduce read GraphQL nodes for backups
This commit is contained in:
parent
a5bb654a76
commit
13af7e5e1d
24
lib/logic/api_maps/graphql_maps/schema/backups.graphql
Normal file
24
lib/logic/api_maps/graphql_maps/schema/backups.graphql
Normal file
|
@ -0,0 +1,24 @@
|
|||
query BackupConfiguration {
|
||||
backup {
|
||||
configuration {
|
||||
autobackupPeriod
|
||||
encryptionKey
|
||||
isInitialized
|
||||
locationId
|
||||
locationName
|
||||
provider
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query AllBackupSnapshots {
|
||||
backup {
|
||||
allSnapshots {
|
||||
...backupSnapshotFields
|
||||
service {
|
||||
displayName
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1548
lib/logic/api_maps/graphql_maps/schema/backups.graphql.dart
Normal file
1548
lib/logic/api_maps/graphql_maps/schema/backups.graphql.dart
Normal file
File diff suppressed because it is too large
Load diff
|
@ -27,6 +27,10 @@ class Fragment$basicMutationReturnFields {
|
|||
return Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn
|
||||
.fromJson(json);
|
||||
|
||||
case "GenericBackupConfigReturn":
|
||||
return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn
|
||||
.fromJson(json);
|
||||
|
||||
case "GenericJobButationReturn":
|
||||
return Fragment$basicMutationReturnFields$$GenericJobButationReturn
|
||||
.fromJson(json);
|
||||
|
@ -151,6 +155,9 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
required _T Function(
|
||||
Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn)
|
||||
deviceApiTokenMutationReturn,
|
||||
required _T Function(
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)
|
||||
genericBackupConfigReturn,
|
||||
required _T Function(
|
||||
Fragment$basicMutationReturnFields$$GenericJobButationReturn)
|
||||
genericJobButationReturn,
|
||||
|
@ -183,6 +190,10 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
return deviceApiTokenMutationReturn(this
|
||||
as Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn);
|
||||
|
||||
case "GenericBackupConfigReturn":
|
||||
return genericBackupConfigReturn(this
|
||||
as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn);
|
||||
|
||||
case "GenericJobButationReturn":
|
||||
return genericJobButationReturn(this
|
||||
as Fragment$basicMutationReturnFields$$GenericJobButationReturn);
|
||||
|
@ -221,6 +232,8 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
_T Function(
|
||||
Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn)?
|
||||
deviceApiTokenMutationReturn,
|
||||
_T Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)?
|
||||
genericBackupConfigReturn,
|
||||
_T Function(Fragment$basicMutationReturnFields$$GenericJobButationReturn)?
|
||||
genericJobButationReturn,
|
||||
_T Function(Fragment$basicMutationReturnFields$$GenericMutationReturn)?
|
||||
|
@ -260,6 +273,14 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
return orElse();
|
||||
}
|
||||
|
||||
case "GenericBackupConfigReturn":
|
||||
if (genericBackupConfigReturn != null) {
|
||||
return genericBackupConfigReturn(this
|
||||
as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn);
|
||||
} else {
|
||||
return orElse();
|
||||
}
|
||||
|
||||
case "GenericJobButationReturn":
|
||||
if (genericJobButationReturn != null) {
|
||||
return genericJobButationReturn(this
|
||||
|
@ -1008,6 +1029,186 @@ class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutati
|
|||
_res;
|
||||
}
|
||||
|
||||
class Fragment$basicMutationReturnFields$$GenericBackupConfigReturn
|
||||
implements Fragment$basicMutationReturnFields {
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn({
|
||||
required this.code,
|
||||
required this.message,
|
||||
required this.success,
|
||||
this.$__typename = 'GenericBackupConfigReturn',
|
||||
});
|
||||
|
||||
factory Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.fromJson(
|
||||
Map<String, dynamic> json) {
|
||||
final l$code = json['code'];
|
||||
final l$message = json['message'];
|
||||
final l$success = json['success'];
|
||||
final l$$__typename = json['__typename'];
|
||||
return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
code: (l$code as int),
|
||||
message: (l$message as String),
|
||||
success: (l$success as bool),
|
||||
$__typename: (l$$__typename as String),
|
||||
);
|
||||
}
|
||||
|
||||
final int code;
|
||||
|
||||
final String message;
|
||||
|
||||
final bool success;
|
||||
|
||||
final String $__typename;
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final _resultData = <String, dynamic>{};
|
||||
final l$code = code;
|
||||
_resultData['code'] = l$code;
|
||||
final l$message = message;
|
||||
_resultData['message'] = l$message;
|
||||
final l$success = success;
|
||||
_resultData['success'] = l$success;
|
||||
final l$$__typename = $__typename;
|
||||
_resultData['__typename'] = l$$__typename;
|
||||
return _resultData;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
final l$code = code;
|
||||
final l$message = message;
|
||||
final l$success = success;
|
||||
final l$$__typename = $__typename;
|
||||
return Object.hashAll([
|
||||
l$code,
|
||||
l$message,
|
||||
l$success,
|
||||
l$$__typename,
|
||||
]);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(this, other)) {
|
||||
return true;
|
||||
}
|
||||
if (!(other
|
||||
is Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) ||
|
||||
runtimeType != other.runtimeType) {
|
||||
return false;
|
||||
}
|
||||
final l$code = code;
|
||||
final lOther$code = other.code;
|
||||
if (l$code != lOther$code) {
|
||||
return false;
|
||||
}
|
||||
final l$message = message;
|
||||
final lOther$message = other.message;
|
||||
if (l$message != lOther$message) {
|
||||
return false;
|
||||
}
|
||||
final l$success = success;
|
||||
final lOther$success = other.success;
|
||||
if (l$success != lOther$success) {
|
||||
return false;
|
||||
}
|
||||
final l$$__typename = $__typename;
|
||||
final lOther$$__typename = other.$__typename;
|
||||
if (l$$__typename != lOther$$__typename) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn
|
||||
on Fragment$basicMutationReturnFields$$GenericBackupConfigReturn {
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn>
|
||||
get copyWith =>
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
this,
|
||||
(i) => i,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes> {
|
||||
factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn instance,
|
||||
TRes Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)
|
||||
then,
|
||||
) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn;
|
||||
|
||||
factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.stub(
|
||||
TRes res) =
|
||||
_CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn;
|
||||
|
||||
TRes call({
|
||||
int? code,
|
||||
String? message,
|
||||
bool? success,
|
||||
String? $__typename,
|
||||
});
|
||||
}
|
||||
|
||||
class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes>
|
||||
implements
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes> {
|
||||
_CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
this._instance,
|
||||
this._then,
|
||||
);
|
||||
|
||||
final Fragment$basicMutationReturnFields$$GenericBackupConfigReturn _instance;
|
||||
|
||||
final TRes Function(
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) _then;
|
||||
|
||||
static const _undefined = <dynamic, dynamic>{};
|
||||
|
||||
TRes call({
|
||||
Object? code = _undefined,
|
||||
Object? message = _undefined,
|
||||
Object? success = _undefined,
|
||||
Object? $__typename = _undefined,
|
||||
}) =>
|
||||
_then(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
code:
|
||||
code == _undefined || code == null ? _instance.code : (code as int),
|
||||
message: message == _undefined || message == null
|
||||
? _instance.message
|
||||
: (message as String),
|
||||
success: success == _undefined || success == null
|
||||
? _instance.success
|
||||
: (success as bool),
|
||||
$__typename: $__typename == _undefined || $__typename == null
|
||||
? _instance.$__typename
|
||||
: ($__typename as String),
|
||||
));
|
||||
}
|
||||
|
||||
class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes>
|
||||
implements
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes> {
|
||||
_CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
this._res);
|
||||
|
||||
TRes _res;
|
||||
|
||||
call({
|
||||
int? code,
|
||||
String? message,
|
||||
bool? success,
|
||||
String? $__typename,
|
||||
}) =>
|
||||
_res;
|
||||
}
|
||||
|
||||
class Fragment$basicMutationReturnFields$$GenericJobButationReturn
|
||||
implements Fragment$basicMutationReturnFields {
|
||||
Fragment$basicMutationReturnFields$$GenericJobButationReturn({
|
||||
|
|
|
@ -1,54 +1,54 @@
|
|||
type Alert {
|
||||
message: String!
|
||||
severity: Severity!
|
||||
timestamp: DateTime
|
||||
title: String!
|
||||
message: String!
|
||||
timestamp: DateTime
|
||||
}
|
||||
|
||||
type Api {
|
||||
devices: [ApiDevice!]!
|
||||
recoveryKey: ApiRecoveryKeyStatus!
|
||||
version: String!
|
||||
recoveryKey: ApiRecoveryKeyStatus!
|
||||
devices: [ApiDevice!]!
|
||||
}
|
||||
|
||||
type ApiDevice {
|
||||
name: String!
|
||||
creationDate: DateTime!
|
||||
isCaller: Boolean!
|
||||
name: String!
|
||||
}
|
||||
|
||||
type ApiJob {
|
||||
createdAt: DateTime!
|
||||
description: String!
|
||||
error: String
|
||||
finishedAt: DateTime
|
||||
uid: String!
|
||||
name: String!
|
||||
progress: Int
|
||||
result: String
|
||||
description: String!
|
||||
status: String!
|
||||
statusText: String
|
||||
uid: String!
|
||||
progress: Int
|
||||
createdAt: DateTime!
|
||||
updatedAt: DateTime!
|
||||
finishedAt: DateTime
|
||||
error: String
|
||||
result: String
|
||||
}
|
||||
|
||||
type ApiKeyMutationReturn implements MutationReturnInterface {
|
||||
success: Boolean!
|
||||
message: String!
|
||||
code: Int!
|
||||
key: String
|
||||
message: String!
|
||||
success: Boolean!
|
||||
}
|
||||
|
||||
type ApiRecoveryKeyStatus {
|
||||
creationDate: DateTime
|
||||
exists: Boolean!
|
||||
valid: Boolean!
|
||||
creationDate: DateTime
|
||||
expirationDate: DateTime
|
||||
usesLeft: Int
|
||||
valid: Boolean!
|
||||
}
|
||||
|
||||
type AutoUpgradeOptions {
|
||||
allowReboot: Boolean!
|
||||
enable: Boolean!
|
||||
allowReboot: Boolean!
|
||||
}
|
||||
|
||||
input AutoUpgradeSettingsInput {
|
||||
|
@ -57,52 +57,89 @@ input AutoUpgradeSettingsInput {
|
|||
}
|
||||
|
||||
type AutoUpgradeSettingsMutationReturn implements MutationReturnInterface {
|
||||
allowReboot: Boolean!
|
||||
success: Boolean!
|
||||
message: String!
|
||||
code: Int!
|
||||
enableAutoUpgrade: Boolean!
|
||||
message: String!
|
||||
success: Boolean!
|
||||
allowReboot: Boolean!
|
||||
}
|
||||
|
||||
type Backup {
|
||||
configuration: BackupConfiguration!
|
||||
allSnapshots: [SnapshotInfo!]!
|
||||
}
|
||||
|
||||
type BackupConfiguration {
|
||||
provider: BackupProvider!
|
||||
encryptionKey: String!
|
||||
isInitialized: Boolean!
|
||||
autobackupPeriod: Int
|
||||
locationName: String
|
||||
locationId: String
|
||||
}
|
||||
|
||||
enum BackupProvider {
|
||||
BACKBLAZE
|
||||
NONE
|
||||
MEMORY
|
||||
FILE
|
||||
}
|
||||
|
||||
"""Date with time (isoformat)"""
|
||||
scalar DateTime
|
||||
|
||||
type DeviceApiTokenMutationReturn implements MutationReturnInterface {
|
||||
code: Int!
|
||||
message: String!
|
||||
success: Boolean!
|
||||
message: String!
|
||||
code: Int!
|
||||
token: String
|
||||
}
|
||||
|
||||
enum DnsProvider {
|
||||
CLOUDFLARE,
|
||||
CLOUDFLARE
|
||||
DIGITALOCEAN
|
||||
DESEC
|
||||
}
|
||||
|
||||
type DnsRecord {
|
||||
content: String!
|
||||
name: String!
|
||||
priority: Int
|
||||
recordType: String!
|
||||
name: String!
|
||||
content: String!
|
||||
ttl: Int!
|
||||
priority: Int
|
||||
}
|
||||
|
||||
type GenericBackupConfigReturn implements MutationReturnInterface {
|
||||
success: Boolean!
|
||||
message: String!
|
||||
code: Int!
|
||||
configuration: BackupConfiguration
|
||||
}
|
||||
|
||||
type GenericJobButationReturn implements MutationReturnInterface {
|
||||
success: Boolean!
|
||||
message: String!
|
||||
code: Int!
|
||||
job: ApiJob
|
||||
message: String!
|
||||
success: Boolean!
|
||||
}
|
||||
|
||||
type GenericMutationReturn implements MutationReturnInterface {
|
||||
code: Int!
|
||||
message: String!
|
||||
success: Boolean!
|
||||
message: String!
|
||||
code: Int!
|
||||
}
|
||||
|
||||
input InitializeRepositoryInput {
|
||||
provider: BackupProvider!
|
||||
locationId: String!
|
||||
locationName: String!
|
||||
login: String!
|
||||
password: String!
|
||||
}
|
||||
|
||||
type Job {
|
||||
getJob(jobId: String!): ApiJob
|
||||
getJobs: [ApiJob!]!
|
||||
getJob(jobId: String!): ApiJob
|
||||
}
|
||||
|
||||
input MigrateToBindsInput {
|
||||
|
@ -119,52 +156,59 @@ input MoveServiceInput {
|
|||
}
|
||||
|
||||
type Mutation {
|
||||
addSshKey(sshInput: SshMutationInput!): UserMutationReturn!
|
||||
authorizeWithNewDeviceApiKey(input: UseNewDeviceKeyInput!): DeviceApiTokenMutationReturn!
|
||||
changeAutoUpgradeSettings(settings: AutoUpgradeSettingsInput!): AutoUpgradeSettingsMutationReturn!
|
||||
changeTimezone(timezone: String!): TimezoneMutationReturn!
|
||||
createUser(user: UserMutationInput!): UserMutationReturn!
|
||||
deleteDeviceApiToken(device: String!): GenericMutationReturn!
|
||||
deleteUser(username: String!): GenericMutationReturn!
|
||||
disableService(serviceId: String!): ServiceMutationReturn!
|
||||
enableService(serviceId: String!): ServiceMutationReturn!
|
||||
getNewDeviceApiKey: ApiKeyMutationReturn!
|
||||
getNewRecoveryApiKey(limits: RecoveryKeyLimitsInput = null): ApiKeyMutationReturn!
|
||||
invalidateNewDeviceApiKey: GenericMutationReturn!
|
||||
migrateToBinds(input: MigrateToBindsInput!): GenericJobButationReturn!
|
||||
mountVolume(name: String!): GenericMutationReturn!
|
||||
moveService(input: MoveServiceInput!): ServiceJobMutationReturn!
|
||||
pullRepositoryChanges: GenericMutationReturn!
|
||||
rebootSystem: GenericMutationReturn!
|
||||
useRecoveryApiKey(input: UseRecoveryKeyInput!): DeviceApiTokenMutationReturn!
|
||||
refreshDeviceApiToken: DeviceApiTokenMutationReturn!
|
||||
removeJob(jobId: String!): GenericMutationReturn!
|
||||
removeSshKey(sshInput: SshMutationInput!): UserMutationReturn!
|
||||
resizeVolume(name: String!): GenericMutationReturn!
|
||||
restartService(serviceId: String!): ServiceMutationReturn!
|
||||
deleteDeviceApiToken(device: String!): GenericMutationReturn!
|
||||
getNewDeviceApiKey: ApiKeyMutationReturn!
|
||||
invalidateNewDeviceApiKey: GenericMutationReturn!
|
||||
authorizeWithNewDeviceApiKey(input: UseNewDeviceKeyInput!): DeviceApiTokenMutationReturn!
|
||||
changeTimezone(timezone: String!): TimezoneMutationReturn!
|
||||
changeAutoUpgradeSettings(settings: AutoUpgradeSettingsInput!): AutoUpgradeSettingsMutationReturn!
|
||||
runSystemRebuild: GenericMutationReturn!
|
||||
runSystemRollback: GenericMutationReturn!
|
||||
runSystemUpgrade: GenericMutationReturn!
|
||||
startService(serviceId: String!): ServiceMutationReturn!
|
||||
stopService(serviceId: String!): ServiceMutationReturn!
|
||||
testMutation: GenericMutationReturn!
|
||||
unmountVolume(name: String!): GenericMutationReturn!
|
||||
rebootSystem: GenericMutationReturn!
|
||||
pullRepositoryChanges: GenericMutationReturn!
|
||||
createUser(user: UserMutationInput!): UserMutationReturn!
|
||||
deleteUser(username: String!): GenericMutationReturn!
|
||||
updateUser(user: UserMutationInput!): UserMutationReturn!
|
||||
useRecoveryApiKey(input: UseRecoveryKeyInput!): DeviceApiTokenMutationReturn!
|
||||
addSshKey(sshInput: SshMutationInput!): UserMutationReturn!
|
||||
removeSshKey(sshInput: SshMutationInput!): UserMutationReturn!
|
||||
resizeVolume(name: String!): GenericMutationReturn!
|
||||
mountVolume(name: String!): GenericMutationReturn!
|
||||
unmountVolume(name: String!): GenericMutationReturn!
|
||||
migrateToBinds(input: MigrateToBindsInput!): GenericJobButationReturn!
|
||||
enableService(serviceId: String!): ServiceMutationReturn!
|
||||
disableService(serviceId: String!): ServiceMutationReturn!
|
||||
stopService(serviceId: String!): ServiceMutationReturn!
|
||||
startService(serviceId: String!): ServiceMutationReturn!
|
||||
restartService(serviceId: String!): ServiceMutationReturn!
|
||||
moveService(input: MoveServiceInput!): ServiceJobMutationReturn!
|
||||
removeJob(jobId: String!): GenericMutationReturn!
|
||||
initializeRepository(repository: InitializeRepositoryInput!): GenericBackupConfigReturn!
|
||||
removeRepository: GenericBackupConfigReturn!
|
||||
setAutobackupPeriod(period: Int = null): GenericBackupConfigReturn!
|
||||
startBackup(serviceId: String = null): GenericJobButationReturn!
|
||||
restoreBackup(snapshotId: String!): GenericJobButationReturn!
|
||||
forceSnapshotsReload: GenericMutationReturn!
|
||||
testMutation: GenericMutationReturn!
|
||||
}
|
||||
|
||||
interface MutationReturnInterface {
|
||||
code: Int!
|
||||
message: String!
|
||||
success: Boolean!
|
||||
message: String!
|
||||
code: Int!
|
||||
}
|
||||
|
||||
type Query {
|
||||
system: System!
|
||||
api: Api!
|
||||
users: Users!
|
||||
storage: Storage!
|
||||
jobs: Job!
|
||||
services: Services!
|
||||
storage: Storage!
|
||||
system: System!
|
||||
users: Users!
|
||||
backup: Backup!
|
||||
}
|
||||
|
||||
input RecoveryKeyLimitsInput {
|
||||
|
@ -178,49 +222,50 @@ enum ServerProvider {
|
|||
}
|
||||
|
||||
type Service {
|
||||
description: String!
|
||||
displayName: String!
|
||||
dnsRecords: [DnsRecord!]
|
||||
id: String!
|
||||
isEnabled: Boolean!
|
||||
displayName: String!
|
||||
description: String!
|
||||
svgIcon: String!
|
||||
isMovable: Boolean!
|
||||
isRequired: Boolean!
|
||||
isEnabled: Boolean!
|
||||
status: ServiceStatusEnum!
|
||||
storageUsage: ServiceStorageUsage!
|
||||
svgIcon: String!
|
||||
url: String
|
||||
dnsRecords: [DnsRecord!]
|
||||
storageUsage: ServiceStorageUsage!
|
||||
backupSnapshots: [SnapshotInfo!]
|
||||
}
|
||||
|
||||
type ServiceJobMutationReturn implements MutationReturnInterface {
|
||||
success: Boolean!
|
||||
message: String!
|
||||
code: Int!
|
||||
job: ApiJob
|
||||
message: String!
|
||||
service: Service
|
||||
success: Boolean!
|
||||
}
|
||||
|
||||
type ServiceMutationReturn implements MutationReturnInterface {
|
||||
code: Int!
|
||||
message: String!
|
||||
service: Service
|
||||
success: Boolean!
|
||||
message: String!
|
||||
code: Int!
|
||||
service: Service
|
||||
}
|
||||
|
||||
enum ServiceStatusEnum {
|
||||
ACTIVATING
|
||||
ACTIVE
|
||||
DEACTIVATING
|
||||
FAILED
|
||||
INACTIVE
|
||||
OFF
|
||||
RELOADING
|
||||
INACTIVE
|
||||
FAILED
|
||||
ACTIVATING
|
||||
DEACTIVATING
|
||||
OFF
|
||||
}
|
||||
|
||||
type ServiceStorageUsage implements StorageUsageInterface {
|
||||
service: Service
|
||||
title: String!
|
||||
usedSpace: String!
|
||||
volume: StorageVolume
|
||||
title: String!
|
||||
service: Service
|
||||
}
|
||||
|
||||
type Services {
|
||||
|
@ -228,11 +273,17 @@ type Services {
|
|||
}
|
||||
|
||||
enum Severity {
|
||||
CRITICAL
|
||||
ERROR
|
||||
INFO
|
||||
SUCCESS
|
||||
WARNING
|
||||
ERROR
|
||||
CRITICAL
|
||||
SUCCESS
|
||||
}
|
||||
|
||||
type SnapshotInfo {
|
||||
id: String!
|
||||
service: Service!
|
||||
createdAt: DateTime!
|
||||
}
|
||||
|
||||
input SshMutationInput {
|
||||
|
@ -251,21 +302,21 @@ type Storage {
|
|||
}
|
||||
|
||||
interface StorageUsageInterface {
|
||||
title: String!
|
||||
usedSpace: String!
|
||||
volume: StorageVolume
|
||||
title: String!
|
||||
}
|
||||
|
||||
type StorageVolume {
|
||||
freeSpace: String!
|
||||
model: String
|
||||
name: String!
|
||||
root: Boolean!
|
||||
serial: String
|
||||
totalSpace: String!
|
||||
freeSpace: String!
|
||||
usedSpace: String!
|
||||
root: Boolean!
|
||||
name: String!
|
||||
model: String
|
||||
serial: String
|
||||
type: String!
|
||||
usages: [StorageUsageInterface!]!
|
||||
usedSpace: String!
|
||||
}
|
||||
|
||||
type Subscription {
|
||||
|
@ -273,12 +324,12 @@ type Subscription {
|
|||
}
|
||||
|
||||
type System {
|
||||
busy: Boolean!
|
||||
status: Alert!
|
||||
domainInfo: SystemDomainInfo!
|
||||
settings: SystemSettings!
|
||||
info: SystemInfo!
|
||||
provider: SystemProviderInfo!
|
||||
settings: SystemSettings!
|
||||
status: Alert!
|
||||
busy: Boolean!
|
||||
workingDirectory: String!
|
||||
}
|
||||
|
||||
|
@ -290,14 +341,14 @@ type SystemDomainInfo {
|
|||
}
|
||||
|
||||
type SystemInfo {
|
||||
pythonVersion: String!
|
||||
systemVersion: String!
|
||||
pythonVersion: String!
|
||||
usingBinds: Boolean!
|
||||
}
|
||||
|
||||
type SystemProviderInfo {
|
||||
id: String!
|
||||
provider: ServerProvider!
|
||||
id: String!
|
||||
}
|
||||
|
||||
type SystemSettings {
|
||||
|
@ -307,9 +358,9 @@ type SystemSettings {
|
|||
}
|
||||
|
||||
type TimezoneMutationReturn implements MutationReturnInterface {
|
||||
code: Int!
|
||||
message: String!
|
||||
success: Boolean!
|
||||
message: String!
|
||||
code: Int!
|
||||
timezone: String
|
||||
}
|
||||
|
||||
|
@ -324,9 +375,9 @@ input UseRecoveryKeyInput {
|
|||
}
|
||||
|
||||
type User {
|
||||
sshKeys: [String!]!
|
||||
userType: UserType!
|
||||
username: String!
|
||||
sshKeys: [String!]!
|
||||
}
|
||||
|
||||
input UserMutationInput {
|
||||
|
@ -335,9 +386,9 @@ input UserMutationInput {
|
|||
}
|
||||
|
||||
type UserMutationReturn implements MutationReturnInterface {
|
||||
code: Int!
|
||||
message: String!
|
||||
success: Boolean!
|
||||
message: String!
|
||||
code: Int!
|
||||
user: User
|
||||
}
|
||||
|
||||
|
@ -358,4 +409,9 @@ fragment dnsRecordFields on DnsRecord {
|
|||
priority
|
||||
recordType
|
||||
ttl
|
||||
}
|
||||
}
|
||||
|
||||
fragment backupSnapshotFields on SnapshotInfo {
|
||||
id
|
||||
createdAt
|
||||
}
|
||||
|
|
|
@ -143,6 +143,190 @@ class _CopyWithStubImpl$Input$AutoUpgradeSettingsInput<TRes>
|
|||
_res;
|
||||
}
|
||||
|
||||
class Input$InitializeRepositoryInput {
|
||||
factory Input$InitializeRepositoryInput({
|
||||
required Enum$BackupProvider provider,
|
||||
required String locationId,
|
||||
required String locationName,
|
||||
required String login,
|
||||
required String password,
|
||||
}) =>
|
||||
Input$InitializeRepositoryInput._({
|
||||
r'provider': provider,
|
||||
r'locationId': locationId,
|
||||
r'locationName': locationName,
|
||||
r'login': login,
|
||||
r'password': password,
|
||||
});
|
||||
|
||||
Input$InitializeRepositoryInput._(this._$data);
|
||||
|
||||
factory Input$InitializeRepositoryInput.fromJson(Map<String, dynamic> data) {
|
||||
final result$data = <String, dynamic>{};
|
||||
final l$provider = data['provider'];
|
||||
result$data['provider'] =
|
||||
fromJson$Enum$BackupProvider((l$provider as String));
|
||||
final l$locationId = data['locationId'];
|
||||
result$data['locationId'] = (l$locationId as String);
|
||||
final l$locationName = data['locationName'];
|
||||
result$data['locationName'] = (l$locationName as String);
|
||||
final l$login = data['login'];
|
||||
result$data['login'] = (l$login as String);
|
||||
final l$password = data['password'];
|
||||
result$data['password'] = (l$password as String);
|
||||
return Input$InitializeRepositoryInput._(result$data);
|
||||
}
|
||||
|
||||
Map<String, dynamic> _$data;
|
||||
|
||||
Enum$BackupProvider get provider =>
|
||||
(_$data['provider'] as Enum$BackupProvider);
|
||||
String get locationId => (_$data['locationId'] as String);
|
||||
String get locationName => (_$data['locationName'] as String);
|
||||
String get login => (_$data['login'] as String);
|
||||
String get password => (_$data['password'] as String);
|
||||
Map<String, dynamic> toJson() {
|
||||
final result$data = <String, dynamic>{};
|
||||
final l$provider = provider;
|
||||
result$data['provider'] = toJson$Enum$BackupProvider(l$provider);
|
||||
final l$locationId = locationId;
|
||||
result$data['locationId'] = l$locationId;
|
||||
final l$locationName = locationName;
|
||||
result$data['locationName'] = l$locationName;
|
||||
final l$login = login;
|
||||
result$data['login'] = l$login;
|
||||
final l$password = password;
|
||||
result$data['password'] = l$password;
|
||||
return result$data;
|
||||
}
|
||||
|
||||
CopyWith$Input$InitializeRepositoryInput<Input$InitializeRepositoryInput>
|
||||
get copyWith => CopyWith$Input$InitializeRepositoryInput(
|
||||
this,
|
||||
(i) => i,
|
||||
);
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(this, other)) {
|
||||
return true;
|
||||
}
|
||||
if (!(other is Input$InitializeRepositoryInput) ||
|
||||
runtimeType != other.runtimeType) {
|
||||
return false;
|
||||
}
|
||||
final l$provider = provider;
|
||||
final lOther$provider = other.provider;
|
||||
if (l$provider != lOther$provider) {
|
||||
return false;
|
||||
}
|
||||
final l$locationId = locationId;
|
||||
final lOther$locationId = other.locationId;
|
||||
if (l$locationId != lOther$locationId) {
|
||||
return false;
|
||||
}
|
||||
final l$locationName = locationName;
|
||||
final lOther$locationName = other.locationName;
|
||||
if (l$locationName != lOther$locationName) {
|
||||
return false;
|
||||
}
|
||||
final l$login = login;
|
||||
final lOther$login = other.login;
|
||||
if (l$login != lOther$login) {
|
||||
return false;
|
||||
}
|
||||
final l$password = password;
|
||||
final lOther$password = other.password;
|
||||
if (l$password != lOther$password) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
final l$provider = provider;
|
||||
final l$locationId = locationId;
|
||||
final l$locationName = locationName;
|
||||
final l$login = login;
|
||||
final l$password = password;
|
||||
return Object.hashAll([
|
||||
l$provider,
|
||||
l$locationId,
|
||||
l$locationName,
|
||||
l$login,
|
||||
l$password,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class CopyWith$Input$InitializeRepositoryInput<TRes> {
|
||||
factory CopyWith$Input$InitializeRepositoryInput(
|
||||
Input$InitializeRepositoryInput instance,
|
||||
TRes Function(Input$InitializeRepositoryInput) then,
|
||||
) = _CopyWithImpl$Input$InitializeRepositoryInput;
|
||||
|
||||
factory CopyWith$Input$InitializeRepositoryInput.stub(TRes res) =
|
||||
_CopyWithStubImpl$Input$InitializeRepositoryInput;
|
||||
|
||||
TRes call({
|
||||
Enum$BackupProvider? provider,
|
||||
String? locationId,
|
||||
String? locationName,
|
||||
String? login,
|
||||
String? password,
|
||||
});
|
||||
}
|
||||
|
||||
class _CopyWithImpl$Input$InitializeRepositoryInput<TRes>
|
||||
implements CopyWith$Input$InitializeRepositoryInput<TRes> {
|
||||
_CopyWithImpl$Input$InitializeRepositoryInput(
|
||||
this._instance,
|
||||
this._then,
|
||||
);
|
||||
|
||||
final Input$InitializeRepositoryInput _instance;
|
||||
|
||||
final TRes Function(Input$InitializeRepositoryInput) _then;
|
||||
|
||||
static const _undefined = <dynamic, dynamic>{};
|
||||
|
||||
TRes call({
|
||||
Object? provider = _undefined,
|
||||
Object? locationId = _undefined,
|
||||
Object? locationName = _undefined,
|
||||
Object? login = _undefined,
|
||||
Object? password = _undefined,
|
||||
}) =>
|
||||
_then(Input$InitializeRepositoryInput._({
|
||||
..._instance._$data,
|
||||
if (provider != _undefined && provider != null)
|
||||
'provider': (provider as Enum$BackupProvider),
|
||||
if (locationId != _undefined && locationId != null)
|
||||
'locationId': (locationId as String),
|
||||
if (locationName != _undefined && locationName != null)
|
||||
'locationName': (locationName as String),
|
||||
if (login != _undefined && login != null) 'login': (login as String),
|
||||
if (password != _undefined && password != null)
|
||||
'password': (password as String),
|
||||
}));
|
||||
}
|
||||
|
||||
class _CopyWithStubImpl$Input$InitializeRepositoryInput<TRes>
|
||||
implements CopyWith$Input$InitializeRepositoryInput<TRes> {
|
||||
_CopyWithStubImpl$Input$InitializeRepositoryInput(this._res);
|
||||
|
||||
TRes _res;
|
||||
|
||||
call({
|
||||
Enum$BackupProvider? provider,
|
||||
String? locationId,
|
||||
String? locationName,
|
||||
String? login,
|
||||
String? password,
|
||||
}) =>
|
||||
_res;
|
||||
}
|
||||
|
||||
class Input$MigrateToBindsInput {
|
||||
factory Input$MigrateToBindsInput({
|
||||
required String emailBlockDevice,
|
||||
|
@ -1096,12 +1280,46 @@ class _CopyWithStubImpl$Input$UserMutationInput<TRes>
|
|||
_res;
|
||||
}
|
||||
|
||||
enum Enum$DnsProvider { CLOUDFLARE, DESEC, $unknown }
|
||||
enum Enum$BackupProvider { BACKBLAZE, NONE, MEMORY, FILE, $unknown }
|
||||
|
||||
String toJson$Enum$BackupProvider(Enum$BackupProvider e) {
|
||||
switch (e) {
|
||||
case Enum$BackupProvider.BACKBLAZE:
|
||||
return r'BACKBLAZE';
|
||||
case Enum$BackupProvider.NONE:
|
||||
return r'NONE';
|
||||
case Enum$BackupProvider.MEMORY:
|
||||
return r'MEMORY';
|
||||
case Enum$BackupProvider.FILE:
|
||||
return r'FILE';
|
||||
case Enum$BackupProvider.$unknown:
|
||||
return r'$unknown';
|
||||
}
|
||||
}
|
||||
|
||||
Enum$BackupProvider fromJson$Enum$BackupProvider(String value) {
|
||||
switch (value) {
|
||||
case r'BACKBLAZE':
|
||||
return Enum$BackupProvider.BACKBLAZE;
|
||||
case r'NONE':
|
||||
return Enum$BackupProvider.NONE;
|
||||
case r'MEMORY':
|
||||
return Enum$BackupProvider.MEMORY;
|
||||
case r'FILE':
|
||||
return Enum$BackupProvider.FILE;
|
||||
default:
|
||||
return Enum$BackupProvider.$unknown;
|
||||
}
|
||||
}
|
||||
|
||||
enum Enum$DnsProvider { CLOUDFLARE, DIGITALOCEAN, DESEC, $unknown }
|
||||
|
||||
String toJson$Enum$DnsProvider(Enum$DnsProvider e) {
|
||||
switch (e) {
|
||||
case Enum$DnsProvider.CLOUDFLARE:
|
||||
return r'CLOUDFLARE';
|
||||
case Enum$DnsProvider.DIGITALOCEAN:
|
||||
return r'DIGITALOCEAN';
|
||||
case Enum$DnsProvider.DESEC:
|
||||
return r'DESEC';
|
||||
case Enum$DnsProvider.$unknown:
|
||||
|
@ -1113,6 +1331,8 @@ Enum$DnsProvider fromJson$Enum$DnsProvider(String value) {
|
|||
switch (value) {
|
||||
case r'CLOUDFLARE':
|
||||
return Enum$DnsProvider.CLOUDFLARE;
|
||||
case r'DIGITALOCEAN':
|
||||
return Enum$DnsProvider.DIGITALOCEAN;
|
||||
case r'DESEC':
|
||||
return Enum$DnsProvider.DESEC;
|
||||
default:
|
||||
|
@ -1145,32 +1365,32 @@ Enum$ServerProvider fromJson$Enum$ServerProvider(String value) {
|
|||
}
|
||||
|
||||
enum Enum$ServiceStatusEnum {
|
||||
ACTIVATING,
|
||||
ACTIVE,
|
||||
DEACTIVATING,
|
||||
FAILED,
|
||||
INACTIVE,
|
||||
OFF,
|
||||
RELOADING,
|
||||
INACTIVE,
|
||||
FAILED,
|
||||
ACTIVATING,
|
||||
DEACTIVATING,
|
||||
OFF,
|
||||
$unknown
|
||||
}
|
||||
|
||||
String toJson$Enum$ServiceStatusEnum(Enum$ServiceStatusEnum e) {
|
||||
switch (e) {
|
||||
case Enum$ServiceStatusEnum.ACTIVATING:
|
||||
return r'ACTIVATING';
|
||||
case Enum$ServiceStatusEnum.ACTIVE:
|
||||
return r'ACTIVE';
|
||||
case Enum$ServiceStatusEnum.DEACTIVATING:
|
||||
return r'DEACTIVATING';
|
||||
case Enum$ServiceStatusEnum.FAILED:
|
||||
return r'FAILED';
|
||||
case Enum$ServiceStatusEnum.INACTIVE:
|
||||
return r'INACTIVE';
|
||||
case Enum$ServiceStatusEnum.OFF:
|
||||
return r'OFF';
|
||||
case Enum$ServiceStatusEnum.RELOADING:
|
||||
return r'RELOADING';
|
||||
case Enum$ServiceStatusEnum.INACTIVE:
|
||||
return r'INACTIVE';
|
||||
case Enum$ServiceStatusEnum.FAILED:
|
||||
return r'FAILED';
|
||||
case Enum$ServiceStatusEnum.ACTIVATING:
|
||||
return r'ACTIVATING';
|
||||
case Enum$ServiceStatusEnum.DEACTIVATING:
|
||||
return r'DEACTIVATING';
|
||||
case Enum$ServiceStatusEnum.OFF:
|
||||
return r'OFF';
|
||||
case Enum$ServiceStatusEnum.$unknown:
|
||||
return r'$unknown';
|
||||
}
|
||||
|
@ -1178,39 +1398,39 @@ String toJson$Enum$ServiceStatusEnum(Enum$ServiceStatusEnum e) {
|
|||
|
||||
Enum$ServiceStatusEnum fromJson$Enum$ServiceStatusEnum(String value) {
|
||||
switch (value) {
|
||||
case r'ACTIVATING':
|
||||
return Enum$ServiceStatusEnum.ACTIVATING;
|
||||
case r'ACTIVE':
|
||||
return Enum$ServiceStatusEnum.ACTIVE;
|
||||
case r'DEACTIVATING':
|
||||
return Enum$ServiceStatusEnum.DEACTIVATING;
|
||||
case r'FAILED':
|
||||
return Enum$ServiceStatusEnum.FAILED;
|
||||
case r'INACTIVE':
|
||||
return Enum$ServiceStatusEnum.INACTIVE;
|
||||
case r'OFF':
|
||||
return Enum$ServiceStatusEnum.OFF;
|
||||
case r'RELOADING':
|
||||
return Enum$ServiceStatusEnum.RELOADING;
|
||||
case r'INACTIVE':
|
||||
return Enum$ServiceStatusEnum.INACTIVE;
|
||||
case r'FAILED':
|
||||
return Enum$ServiceStatusEnum.FAILED;
|
||||
case r'ACTIVATING':
|
||||
return Enum$ServiceStatusEnum.ACTIVATING;
|
||||
case r'DEACTIVATING':
|
||||
return Enum$ServiceStatusEnum.DEACTIVATING;
|
||||
case r'OFF':
|
||||
return Enum$ServiceStatusEnum.OFF;
|
||||
default:
|
||||
return Enum$ServiceStatusEnum.$unknown;
|
||||
}
|
||||
}
|
||||
|
||||
enum Enum$Severity { CRITICAL, ERROR, INFO, SUCCESS, WARNING, $unknown }
|
||||
enum Enum$Severity { INFO, WARNING, ERROR, CRITICAL, SUCCESS, $unknown }
|
||||
|
||||
String toJson$Enum$Severity(Enum$Severity e) {
|
||||
switch (e) {
|
||||
case Enum$Severity.CRITICAL:
|
||||
return r'CRITICAL';
|
||||
case Enum$Severity.ERROR:
|
||||
return r'ERROR';
|
||||
case Enum$Severity.INFO:
|
||||
return r'INFO';
|
||||
case Enum$Severity.SUCCESS:
|
||||
return r'SUCCESS';
|
||||
case Enum$Severity.WARNING:
|
||||
return r'WARNING';
|
||||
case Enum$Severity.ERROR:
|
||||
return r'ERROR';
|
||||
case Enum$Severity.CRITICAL:
|
||||
return r'CRITICAL';
|
||||
case Enum$Severity.SUCCESS:
|
||||
return r'SUCCESS';
|
||||
case Enum$Severity.$unknown:
|
||||
return r'$unknown';
|
||||
}
|
||||
|
@ -1218,16 +1438,16 @@ String toJson$Enum$Severity(Enum$Severity e) {
|
|||
|
||||
Enum$Severity fromJson$Enum$Severity(String value) {
|
||||
switch (value) {
|
||||
case r'CRITICAL':
|
||||
return Enum$Severity.CRITICAL;
|
||||
case r'ERROR':
|
||||
return Enum$Severity.ERROR;
|
||||
case r'INFO':
|
||||
return Enum$Severity.INFO;
|
||||
case r'SUCCESS':
|
||||
return Enum$Severity.SUCCESS;
|
||||
case r'WARNING':
|
||||
return Enum$Severity.WARNING;
|
||||
case r'ERROR':
|
||||
return Enum$Severity.ERROR;
|
||||
case r'CRITICAL':
|
||||
return Enum$Severity.CRITICAL;
|
||||
case r'SUCCESS':
|
||||
return Enum$Severity.SUCCESS;
|
||||
default:
|
||||
return Enum$Severity.$unknown;
|
||||
}
|
||||
|
@ -1555,11 +1775,229 @@ extension ClientExtension$Fragment$dnsRecordFields on graphql.GraphQLClient {
|
|||
}
|
||||
}
|
||||
|
||||
class Fragment$backupSnapshotFields {
|
||||
Fragment$backupSnapshotFields({
|
||||
required this.id,
|
||||
required this.createdAt,
|
||||
this.$__typename = 'SnapshotInfo',
|
||||
});
|
||||
|
||||
factory Fragment$backupSnapshotFields.fromJson(Map<String, dynamic> json) {
|
||||
final l$id = json['id'];
|
||||
final l$createdAt = json['createdAt'];
|
||||
final l$$__typename = json['__typename'];
|
||||
return Fragment$backupSnapshotFields(
|
||||
id: (l$id as String),
|
||||
createdAt: dateTimeFromJson(l$createdAt),
|
||||
$__typename: (l$$__typename as String),
|
||||
);
|
||||
}
|
||||
|
||||
final String id;
|
||||
|
||||
final DateTime createdAt;
|
||||
|
||||
final String $__typename;
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final _resultData = <String, dynamic>{};
|
||||
final l$id = id;
|
||||
_resultData['id'] = l$id;
|
||||
final l$createdAt = createdAt;
|
||||
_resultData['createdAt'] = dateTimeToJson(l$createdAt);
|
||||
final l$$__typename = $__typename;
|
||||
_resultData['__typename'] = l$$__typename;
|
||||
return _resultData;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
final l$id = id;
|
||||
final l$createdAt = createdAt;
|
||||
final l$$__typename = $__typename;
|
||||
return Object.hashAll([
|
||||
l$id,
|
||||
l$createdAt,
|
||||
l$$__typename,
|
||||
]);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(this, other)) {
|
||||
return true;
|
||||
}
|
||||
if (!(other is Fragment$backupSnapshotFields) ||
|
||||
runtimeType != other.runtimeType) {
|
||||
return false;
|
||||
}
|
||||
final l$id = id;
|
||||
final lOther$id = other.id;
|
||||
if (l$id != lOther$id) {
|
||||
return false;
|
||||
}
|
||||
final l$createdAt = createdAt;
|
||||
final lOther$createdAt = other.createdAt;
|
||||
if (l$createdAt != lOther$createdAt) {
|
||||
return false;
|
||||
}
|
||||
final l$$__typename = $__typename;
|
||||
final lOther$$__typename = other.$__typename;
|
||||
if (l$$__typename != lOther$$__typename) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
extension UtilityExtension$Fragment$backupSnapshotFields
|
||||
on Fragment$backupSnapshotFields {
|
||||
CopyWith$Fragment$backupSnapshotFields<Fragment$backupSnapshotFields>
|
||||
get copyWith => CopyWith$Fragment$backupSnapshotFields(
|
||||
this,
|
||||
(i) => i,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class CopyWith$Fragment$backupSnapshotFields<TRes> {
|
||||
factory CopyWith$Fragment$backupSnapshotFields(
|
||||
Fragment$backupSnapshotFields instance,
|
||||
TRes Function(Fragment$backupSnapshotFields) then,
|
||||
) = _CopyWithImpl$Fragment$backupSnapshotFields;
|
||||
|
||||
factory CopyWith$Fragment$backupSnapshotFields.stub(TRes res) =
|
||||
_CopyWithStubImpl$Fragment$backupSnapshotFields;
|
||||
|
||||
TRes call({
|
||||
String? id,
|
||||
DateTime? createdAt,
|
||||
String? $__typename,
|
||||
});
|
||||
}
|
||||
|
||||
class _CopyWithImpl$Fragment$backupSnapshotFields<TRes>
|
||||
implements CopyWith$Fragment$backupSnapshotFields<TRes> {
|
||||
_CopyWithImpl$Fragment$backupSnapshotFields(
|
||||
this._instance,
|
||||
this._then,
|
||||
);
|
||||
|
||||
final Fragment$backupSnapshotFields _instance;
|
||||
|
||||
final TRes Function(Fragment$backupSnapshotFields) _then;
|
||||
|
||||
static const _undefined = <dynamic, dynamic>{};
|
||||
|
||||
TRes call({
|
||||
Object? id = _undefined,
|
||||
Object? createdAt = _undefined,
|
||||
Object? $__typename = _undefined,
|
||||
}) =>
|
||||
_then(Fragment$backupSnapshotFields(
|
||||
id: id == _undefined || id == null ? _instance.id : (id as String),
|
||||
createdAt: createdAt == _undefined || createdAt == null
|
||||
? _instance.createdAt
|
||||
: (createdAt as DateTime),
|
||||
$__typename: $__typename == _undefined || $__typename == null
|
||||
? _instance.$__typename
|
||||
: ($__typename as String),
|
||||
));
|
||||
}
|
||||
|
||||
class _CopyWithStubImpl$Fragment$backupSnapshotFields<TRes>
|
||||
implements CopyWith$Fragment$backupSnapshotFields<TRes> {
|
||||
_CopyWithStubImpl$Fragment$backupSnapshotFields(this._res);
|
||||
|
||||
TRes _res;
|
||||
|
||||
call({
|
||||
String? id,
|
||||
DateTime? createdAt,
|
||||
String? $__typename,
|
||||
}) =>
|
||||
_res;
|
||||
}
|
||||
|
||||
const fragmentDefinitionbackupSnapshotFields = FragmentDefinitionNode(
|
||||
name: NameNode(value: 'backupSnapshotFields'),
|
||||
typeCondition: TypeConditionNode(
|
||||
on: NamedTypeNode(
|
||||
name: NameNode(value: 'SnapshotInfo'),
|
||||
isNonNull: false,
|
||||
)),
|
||||
directives: [],
|
||||
selectionSet: SelectionSetNode(selections: [
|
||||
FieldNode(
|
||||
name: NameNode(value: 'id'),
|
||||
alias: null,
|
||||
arguments: [],
|
||||
directives: [],
|
||||
selectionSet: null,
|
||||
),
|
||||
FieldNode(
|
||||
name: NameNode(value: 'createdAt'),
|
||||
alias: null,
|
||||
arguments: [],
|
||||
directives: [],
|
||||
selectionSet: null,
|
||||
),
|
||||
FieldNode(
|
||||
name: NameNode(value: '__typename'),
|
||||
alias: null,
|
||||
arguments: [],
|
||||
directives: [],
|
||||
selectionSet: null,
|
||||
),
|
||||
]),
|
||||
);
|
||||
const documentNodeFragmentbackupSnapshotFields = DocumentNode(definitions: [
|
||||
fragmentDefinitionbackupSnapshotFields,
|
||||
]);
|
||||
|
||||
extension ClientExtension$Fragment$backupSnapshotFields
|
||||
on graphql.GraphQLClient {
|
||||
void writeFragment$backupSnapshotFields({
|
||||
required Fragment$backupSnapshotFields data,
|
||||
required Map<String, dynamic> idFields,
|
||||
bool broadcast = true,
|
||||
}) =>
|
||||
this.writeFragment(
|
||||
graphql.FragmentRequest(
|
||||
idFields: idFields,
|
||||
fragment: const graphql.Fragment(
|
||||
fragmentName: 'backupSnapshotFields',
|
||||
document: documentNodeFragmentbackupSnapshotFields,
|
||||
),
|
||||
),
|
||||
data: data.toJson(),
|
||||
broadcast: broadcast,
|
||||
);
|
||||
Fragment$backupSnapshotFields? readFragment$backupSnapshotFields({
|
||||
required Map<String, dynamic> idFields,
|
||||
bool optimistic = true,
|
||||
}) {
|
||||
final result = this.readFragment(
|
||||
graphql.FragmentRequest(
|
||||
idFields: idFields,
|
||||
fragment: const graphql.Fragment(
|
||||
fragmentName: 'backupSnapshotFields',
|
||||
document: documentNodeFragmentbackupSnapshotFields,
|
||||
),
|
||||
),
|
||||
optimistic: optimistic,
|
||||
);
|
||||
return result == null
|
||||
? null
|
||||
: Fragment$backupSnapshotFields.fromJson(result);
|
||||
}
|
||||
}
|
||||
|
||||
const possibleTypesMap = <String, Set<String>>{
|
||||
'MutationReturnInterface': {
|
||||
'ApiKeyMutationReturn',
|
||||
'AutoUpgradeSettingsMutationReturn',
|
||||
'DeviceApiTokenMutationReturn',
|
||||
'GenericBackupConfigReturn',
|
||||
'GenericJobButationReturn',
|
||||
'GenericMutationReturn',
|
||||
'ServiceJobMutationReturn',
|
||||
|
|
|
@ -28,6 +28,10 @@ class Fragment$basicMutationReturnFields {
|
|||
return Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn
|
||||
.fromJson(json);
|
||||
|
||||
case "GenericBackupConfigReturn":
|
||||
return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn
|
||||
.fromJson(json);
|
||||
|
||||
case "GenericJobButationReturn":
|
||||
return Fragment$basicMutationReturnFields$$GenericJobButationReturn
|
||||
.fromJson(json);
|
||||
|
@ -152,6 +156,9 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
required _T Function(
|
||||
Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn)
|
||||
deviceApiTokenMutationReturn,
|
||||
required _T Function(
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)
|
||||
genericBackupConfigReturn,
|
||||
required _T Function(
|
||||
Fragment$basicMutationReturnFields$$GenericJobButationReturn)
|
||||
genericJobButationReturn,
|
||||
|
@ -184,6 +191,10 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
return deviceApiTokenMutationReturn(this
|
||||
as Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn);
|
||||
|
||||
case "GenericBackupConfigReturn":
|
||||
return genericBackupConfigReturn(this
|
||||
as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn);
|
||||
|
||||
case "GenericJobButationReturn":
|
||||
return genericJobButationReturn(this
|
||||
as Fragment$basicMutationReturnFields$$GenericJobButationReturn);
|
||||
|
@ -222,6 +233,8 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
_T Function(
|
||||
Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn)?
|
||||
deviceApiTokenMutationReturn,
|
||||
_T Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)?
|
||||
genericBackupConfigReturn,
|
||||
_T Function(Fragment$basicMutationReturnFields$$GenericJobButationReturn)?
|
||||
genericJobButationReturn,
|
||||
_T Function(Fragment$basicMutationReturnFields$$GenericMutationReturn)?
|
||||
|
@ -261,6 +274,14 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
return orElse();
|
||||
}
|
||||
|
||||
case "GenericBackupConfigReturn":
|
||||
if (genericBackupConfigReturn != null) {
|
||||
return genericBackupConfigReturn(this
|
||||
as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn);
|
||||
} else {
|
||||
return orElse();
|
||||
}
|
||||
|
||||
case "GenericJobButationReturn":
|
||||
if (genericJobButationReturn != null) {
|
||||
return genericJobButationReturn(this
|
||||
|
@ -1009,6 +1030,186 @@ class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutati
|
|||
_res;
|
||||
}
|
||||
|
||||
class Fragment$basicMutationReturnFields$$GenericBackupConfigReturn
|
||||
implements Fragment$basicMutationReturnFields {
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn({
|
||||
required this.code,
|
||||
required this.message,
|
||||
required this.success,
|
||||
this.$__typename = 'GenericBackupConfigReturn',
|
||||
});
|
||||
|
||||
factory Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.fromJson(
|
||||
Map<String, dynamic> json) {
|
||||
final l$code = json['code'];
|
||||
final l$message = json['message'];
|
||||
final l$success = json['success'];
|
||||
final l$$__typename = json['__typename'];
|
||||
return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
code: (l$code as int),
|
||||
message: (l$message as String),
|
||||
success: (l$success as bool),
|
||||
$__typename: (l$$__typename as String),
|
||||
);
|
||||
}
|
||||
|
||||
final int code;
|
||||
|
||||
final String message;
|
||||
|
||||
final bool success;
|
||||
|
||||
final String $__typename;
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final _resultData = <String, dynamic>{};
|
||||
final l$code = code;
|
||||
_resultData['code'] = l$code;
|
||||
final l$message = message;
|
||||
_resultData['message'] = l$message;
|
||||
final l$success = success;
|
||||
_resultData['success'] = l$success;
|
||||
final l$$__typename = $__typename;
|
||||
_resultData['__typename'] = l$$__typename;
|
||||
return _resultData;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
final l$code = code;
|
||||
final l$message = message;
|
||||
final l$success = success;
|
||||
final l$$__typename = $__typename;
|
||||
return Object.hashAll([
|
||||
l$code,
|
||||
l$message,
|
||||
l$success,
|
||||
l$$__typename,
|
||||
]);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(this, other)) {
|
||||
return true;
|
||||
}
|
||||
if (!(other
|
||||
is Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) ||
|
||||
runtimeType != other.runtimeType) {
|
||||
return false;
|
||||
}
|
||||
final l$code = code;
|
||||
final lOther$code = other.code;
|
||||
if (l$code != lOther$code) {
|
||||
return false;
|
||||
}
|
||||
final l$message = message;
|
||||
final lOther$message = other.message;
|
||||
if (l$message != lOther$message) {
|
||||
return false;
|
||||
}
|
||||
final l$success = success;
|
||||
final lOther$success = other.success;
|
||||
if (l$success != lOther$success) {
|
||||
return false;
|
||||
}
|
||||
final l$$__typename = $__typename;
|
||||
final lOther$$__typename = other.$__typename;
|
||||
if (l$$__typename != lOther$$__typename) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn
|
||||
on Fragment$basicMutationReturnFields$$GenericBackupConfigReturn {
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn>
|
||||
get copyWith =>
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
this,
|
||||
(i) => i,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes> {
|
||||
factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn instance,
|
||||
TRes Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)
|
||||
then,
|
||||
) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn;
|
||||
|
||||
factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.stub(
|
||||
TRes res) =
|
||||
_CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn;
|
||||
|
||||
TRes call({
|
||||
int? code,
|
||||
String? message,
|
||||
bool? success,
|
||||
String? $__typename,
|
||||
});
|
||||
}
|
||||
|
||||
class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes>
|
||||
implements
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes> {
|
||||
_CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
this._instance,
|
||||
this._then,
|
||||
);
|
||||
|
||||
final Fragment$basicMutationReturnFields$$GenericBackupConfigReturn _instance;
|
||||
|
||||
final TRes Function(
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) _then;
|
||||
|
||||
static const _undefined = <dynamic, dynamic>{};
|
||||
|
||||
TRes call({
|
||||
Object? code = _undefined,
|
||||
Object? message = _undefined,
|
||||
Object? success = _undefined,
|
||||
Object? $__typename = _undefined,
|
||||
}) =>
|
||||
_then(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
code:
|
||||
code == _undefined || code == null ? _instance.code : (code as int),
|
||||
message: message == _undefined || message == null
|
||||
? _instance.message
|
||||
: (message as String),
|
||||
success: success == _undefined || success == null
|
||||
? _instance.success
|
||||
: (success as bool),
|
||||
$__typename: $__typename == _undefined || $__typename == null
|
||||
? _instance.$__typename
|
||||
: ($__typename as String),
|
||||
));
|
||||
}
|
||||
|
||||
class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes>
|
||||
implements
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes> {
|
||||
_CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
this._res);
|
||||
|
||||
TRes _res;
|
||||
|
||||
call({
|
||||
int? code,
|
||||
String? message,
|
||||
bool? success,
|
||||
String? $__typename,
|
||||
}) =>
|
||||
_res;
|
||||
}
|
||||
|
||||
class Fragment$basicMutationReturnFields$$GenericJobButationReturn
|
||||
implements Fragment$basicMutationReturnFields {
|
||||
Fragment$basicMutationReturnFields$$GenericJobButationReturn({
|
||||
|
|
|
@ -27,6 +27,10 @@ class Fragment$basicMutationReturnFields {
|
|||
return Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn
|
||||
.fromJson(json);
|
||||
|
||||
case "GenericBackupConfigReturn":
|
||||
return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn
|
||||
.fromJson(json);
|
||||
|
||||
case "GenericJobButationReturn":
|
||||
return Fragment$basicMutationReturnFields$$GenericJobButationReturn
|
||||
.fromJson(json);
|
||||
|
@ -151,6 +155,9 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
required _T Function(
|
||||
Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn)
|
||||
deviceApiTokenMutationReturn,
|
||||
required _T Function(
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)
|
||||
genericBackupConfigReturn,
|
||||
required _T Function(
|
||||
Fragment$basicMutationReturnFields$$GenericJobButationReturn)
|
||||
genericJobButationReturn,
|
||||
|
@ -183,6 +190,10 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
return deviceApiTokenMutationReturn(this
|
||||
as Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn);
|
||||
|
||||
case "GenericBackupConfigReturn":
|
||||
return genericBackupConfigReturn(this
|
||||
as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn);
|
||||
|
||||
case "GenericJobButationReturn":
|
||||
return genericJobButationReturn(this
|
||||
as Fragment$basicMutationReturnFields$$GenericJobButationReturn);
|
||||
|
@ -221,6 +232,8 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
_T Function(
|
||||
Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn)?
|
||||
deviceApiTokenMutationReturn,
|
||||
_T Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)?
|
||||
genericBackupConfigReturn,
|
||||
_T Function(Fragment$basicMutationReturnFields$$GenericJobButationReturn)?
|
||||
genericJobButationReturn,
|
||||
_T Function(Fragment$basicMutationReturnFields$$GenericMutationReturn)?
|
||||
|
@ -260,6 +273,14 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
return orElse();
|
||||
}
|
||||
|
||||
case "GenericBackupConfigReturn":
|
||||
if (genericBackupConfigReturn != null) {
|
||||
return genericBackupConfigReturn(this
|
||||
as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn);
|
||||
} else {
|
||||
return orElse();
|
||||
}
|
||||
|
||||
case "GenericJobButationReturn":
|
||||
if (genericJobButationReturn != null) {
|
||||
return genericJobButationReturn(this
|
||||
|
@ -1008,6 +1029,186 @@ class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutati
|
|||
_res;
|
||||
}
|
||||
|
||||
class Fragment$basicMutationReturnFields$$GenericBackupConfigReturn
|
||||
implements Fragment$basicMutationReturnFields {
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn({
|
||||
required this.code,
|
||||
required this.message,
|
||||
required this.success,
|
||||
this.$__typename = 'GenericBackupConfigReturn',
|
||||
});
|
||||
|
||||
factory Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.fromJson(
|
||||
Map<String, dynamic> json) {
|
||||
final l$code = json['code'];
|
||||
final l$message = json['message'];
|
||||
final l$success = json['success'];
|
||||
final l$$__typename = json['__typename'];
|
||||
return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
code: (l$code as int),
|
||||
message: (l$message as String),
|
||||
success: (l$success as bool),
|
||||
$__typename: (l$$__typename as String),
|
||||
);
|
||||
}
|
||||
|
||||
final int code;
|
||||
|
||||
final String message;
|
||||
|
||||
final bool success;
|
||||
|
||||
final String $__typename;
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final _resultData = <String, dynamic>{};
|
||||
final l$code = code;
|
||||
_resultData['code'] = l$code;
|
||||
final l$message = message;
|
||||
_resultData['message'] = l$message;
|
||||
final l$success = success;
|
||||
_resultData['success'] = l$success;
|
||||
final l$$__typename = $__typename;
|
||||
_resultData['__typename'] = l$$__typename;
|
||||
return _resultData;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
final l$code = code;
|
||||
final l$message = message;
|
||||
final l$success = success;
|
||||
final l$$__typename = $__typename;
|
||||
return Object.hashAll([
|
||||
l$code,
|
||||
l$message,
|
||||
l$success,
|
||||
l$$__typename,
|
||||
]);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(this, other)) {
|
||||
return true;
|
||||
}
|
||||
if (!(other
|
||||
is Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) ||
|
||||
runtimeType != other.runtimeType) {
|
||||
return false;
|
||||
}
|
||||
final l$code = code;
|
||||
final lOther$code = other.code;
|
||||
if (l$code != lOther$code) {
|
||||
return false;
|
||||
}
|
||||
final l$message = message;
|
||||
final lOther$message = other.message;
|
||||
if (l$message != lOther$message) {
|
||||
return false;
|
||||
}
|
||||
final l$success = success;
|
||||
final lOther$success = other.success;
|
||||
if (l$success != lOther$success) {
|
||||
return false;
|
||||
}
|
||||
final l$$__typename = $__typename;
|
||||
final lOther$$__typename = other.$__typename;
|
||||
if (l$$__typename != lOther$$__typename) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn
|
||||
on Fragment$basicMutationReturnFields$$GenericBackupConfigReturn {
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn>
|
||||
get copyWith =>
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
this,
|
||||
(i) => i,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes> {
|
||||
factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn instance,
|
||||
TRes Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)
|
||||
then,
|
||||
) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn;
|
||||
|
||||
factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.stub(
|
||||
TRes res) =
|
||||
_CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn;
|
||||
|
||||
TRes call({
|
||||
int? code,
|
||||
String? message,
|
||||
bool? success,
|
||||
String? $__typename,
|
||||
});
|
||||
}
|
||||
|
||||
class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes>
|
||||
implements
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes> {
|
||||
_CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
this._instance,
|
||||
this._then,
|
||||
);
|
||||
|
||||
final Fragment$basicMutationReturnFields$$GenericBackupConfigReturn _instance;
|
||||
|
||||
final TRes Function(
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) _then;
|
||||
|
||||
static const _undefined = <dynamic, dynamic>{};
|
||||
|
||||
TRes call({
|
||||
Object? code = _undefined,
|
||||
Object? message = _undefined,
|
||||
Object? success = _undefined,
|
||||
Object? $__typename = _undefined,
|
||||
}) =>
|
||||
_then(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
code:
|
||||
code == _undefined || code == null ? _instance.code : (code as int),
|
||||
message: message == _undefined || message == null
|
||||
? _instance.message
|
||||
: (message as String),
|
||||
success: success == _undefined || success == null
|
||||
? _instance.success
|
||||
: (success as bool),
|
||||
$__typename: $__typename == _undefined || $__typename == null
|
||||
? _instance.$__typename
|
||||
: ($__typename as String),
|
||||
));
|
||||
}
|
||||
|
||||
class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes>
|
||||
implements
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes> {
|
||||
_CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
this._res);
|
||||
|
||||
TRes _res;
|
||||
|
||||
call({
|
||||
int? code,
|
||||
String? message,
|
||||
bool? success,
|
||||
String? $__typename,
|
||||
}) =>
|
||||
_res;
|
||||
}
|
||||
|
||||
class Fragment$basicMutationReturnFields$$GenericJobButationReturn
|
||||
implements Fragment$basicMutationReturnFields {
|
||||
Fragment$basicMutationReturnFields$$GenericJobButationReturn({
|
||||
|
|
|
@ -77,4 +77,4 @@ mutation MoveService($input: MoveServiceInput!) {
|
|||
updatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,6 +28,10 @@ class Fragment$basicMutationReturnFields {
|
|||
return Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn
|
||||
.fromJson(json);
|
||||
|
||||
case "GenericBackupConfigReturn":
|
||||
return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn
|
||||
.fromJson(json);
|
||||
|
||||
case "GenericJobButationReturn":
|
||||
return Fragment$basicMutationReturnFields$$GenericJobButationReturn
|
||||
.fromJson(json);
|
||||
|
@ -152,6 +156,9 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
required _T Function(
|
||||
Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn)
|
||||
deviceApiTokenMutationReturn,
|
||||
required _T Function(
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)
|
||||
genericBackupConfigReturn,
|
||||
required _T Function(
|
||||
Fragment$basicMutationReturnFields$$GenericJobButationReturn)
|
||||
genericJobButationReturn,
|
||||
|
@ -184,6 +191,10 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
return deviceApiTokenMutationReturn(this
|
||||
as Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn);
|
||||
|
||||
case "GenericBackupConfigReturn":
|
||||
return genericBackupConfigReturn(this
|
||||
as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn);
|
||||
|
||||
case "GenericJobButationReturn":
|
||||
return genericJobButationReturn(this
|
||||
as Fragment$basicMutationReturnFields$$GenericJobButationReturn);
|
||||
|
@ -222,6 +233,8 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
_T Function(
|
||||
Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn)?
|
||||
deviceApiTokenMutationReturn,
|
||||
_T Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)?
|
||||
genericBackupConfigReturn,
|
||||
_T Function(Fragment$basicMutationReturnFields$$GenericJobButationReturn)?
|
||||
genericJobButationReturn,
|
||||
_T Function(Fragment$basicMutationReturnFields$$GenericMutationReturn)?
|
||||
|
@ -261,6 +274,14 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
return orElse();
|
||||
}
|
||||
|
||||
case "GenericBackupConfigReturn":
|
||||
if (genericBackupConfigReturn != null) {
|
||||
return genericBackupConfigReturn(this
|
||||
as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn);
|
||||
} else {
|
||||
return orElse();
|
||||
}
|
||||
|
||||
case "GenericJobButationReturn":
|
||||
if (genericJobButationReturn != null) {
|
||||
return genericJobButationReturn(this
|
||||
|
@ -1009,6 +1030,186 @@ class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutati
|
|||
_res;
|
||||
}
|
||||
|
||||
class Fragment$basicMutationReturnFields$$GenericBackupConfigReturn
|
||||
implements Fragment$basicMutationReturnFields {
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn({
|
||||
required this.code,
|
||||
required this.message,
|
||||
required this.success,
|
||||
this.$__typename = 'GenericBackupConfigReturn',
|
||||
});
|
||||
|
||||
factory Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.fromJson(
|
||||
Map<String, dynamic> json) {
|
||||
final l$code = json['code'];
|
||||
final l$message = json['message'];
|
||||
final l$success = json['success'];
|
||||
final l$$__typename = json['__typename'];
|
||||
return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
code: (l$code as int),
|
||||
message: (l$message as String),
|
||||
success: (l$success as bool),
|
||||
$__typename: (l$$__typename as String),
|
||||
);
|
||||
}
|
||||
|
||||
final int code;
|
||||
|
||||
final String message;
|
||||
|
||||
final bool success;
|
||||
|
||||
final String $__typename;
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final _resultData = <String, dynamic>{};
|
||||
final l$code = code;
|
||||
_resultData['code'] = l$code;
|
||||
final l$message = message;
|
||||
_resultData['message'] = l$message;
|
||||
final l$success = success;
|
||||
_resultData['success'] = l$success;
|
||||
final l$$__typename = $__typename;
|
||||
_resultData['__typename'] = l$$__typename;
|
||||
return _resultData;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
final l$code = code;
|
||||
final l$message = message;
|
||||
final l$success = success;
|
||||
final l$$__typename = $__typename;
|
||||
return Object.hashAll([
|
||||
l$code,
|
||||
l$message,
|
||||
l$success,
|
||||
l$$__typename,
|
||||
]);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(this, other)) {
|
||||
return true;
|
||||
}
|
||||
if (!(other
|
||||
is Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) ||
|
||||
runtimeType != other.runtimeType) {
|
||||
return false;
|
||||
}
|
||||
final l$code = code;
|
||||
final lOther$code = other.code;
|
||||
if (l$code != lOther$code) {
|
||||
return false;
|
||||
}
|
||||
final l$message = message;
|
||||
final lOther$message = other.message;
|
||||
if (l$message != lOther$message) {
|
||||
return false;
|
||||
}
|
||||
final l$success = success;
|
||||
final lOther$success = other.success;
|
||||
if (l$success != lOther$success) {
|
||||
return false;
|
||||
}
|
||||
final l$$__typename = $__typename;
|
||||
final lOther$$__typename = other.$__typename;
|
||||
if (l$$__typename != lOther$$__typename) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn
|
||||
on Fragment$basicMutationReturnFields$$GenericBackupConfigReturn {
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn>
|
||||
get copyWith =>
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
this,
|
||||
(i) => i,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes> {
|
||||
factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn instance,
|
||||
TRes Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)
|
||||
then,
|
||||
) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn;
|
||||
|
||||
factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.stub(
|
||||
TRes res) =
|
||||
_CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn;
|
||||
|
||||
TRes call({
|
||||
int? code,
|
||||
String? message,
|
||||
bool? success,
|
||||
String? $__typename,
|
||||
});
|
||||
}
|
||||
|
||||
class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes>
|
||||
implements
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes> {
|
||||
_CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
this._instance,
|
||||
this._then,
|
||||
);
|
||||
|
||||
final Fragment$basicMutationReturnFields$$GenericBackupConfigReturn _instance;
|
||||
|
||||
final TRes Function(
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) _then;
|
||||
|
||||
static const _undefined = <dynamic, dynamic>{};
|
||||
|
||||
TRes call({
|
||||
Object? code = _undefined,
|
||||
Object? message = _undefined,
|
||||
Object? success = _undefined,
|
||||
Object? $__typename = _undefined,
|
||||
}) =>
|
||||
_then(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
code:
|
||||
code == _undefined || code == null ? _instance.code : (code as int),
|
||||
message: message == _undefined || message == null
|
||||
? _instance.message
|
||||
: (message as String),
|
||||
success: success == _undefined || success == null
|
||||
? _instance.success
|
||||
: (success as bool),
|
||||
$__typename: $__typename == _undefined || $__typename == null
|
||||
? _instance.$__typename
|
||||
: ($__typename as String),
|
||||
));
|
||||
}
|
||||
|
||||
class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes>
|
||||
implements
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes> {
|
||||
_CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
this._res);
|
||||
|
||||
TRes _res;
|
||||
|
||||
call({
|
||||
int? code,
|
||||
String? message,
|
||||
bool? success,
|
||||
String? $__typename,
|
||||
}) =>
|
||||
_res;
|
||||
}
|
||||
|
||||
class Fragment$basicMutationReturnFields$$GenericJobButationReturn
|
||||
implements Fragment$basicMutationReturnFields {
|
||||
Fragment$basicMutationReturnFields$$GenericJobButationReturn({
|
||||
|
|
|
@ -27,6 +27,10 @@ class Fragment$basicMutationReturnFields {
|
|||
return Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn
|
||||
.fromJson(json);
|
||||
|
||||
case "GenericBackupConfigReturn":
|
||||
return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn
|
||||
.fromJson(json);
|
||||
|
||||
case "GenericJobButationReturn":
|
||||
return Fragment$basicMutationReturnFields$$GenericJobButationReturn
|
||||
.fromJson(json);
|
||||
|
@ -151,6 +155,9 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
required _T Function(
|
||||
Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn)
|
||||
deviceApiTokenMutationReturn,
|
||||
required _T Function(
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)
|
||||
genericBackupConfigReturn,
|
||||
required _T Function(
|
||||
Fragment$basicMutationReturnFields$$GenericJobButationReturn)
|
||||
genericJobButationReturn,
|
||||
|
@ -183,6 +190,10 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
return deviceApiTokenMutationReturn(this
|
||||
as Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn);
|
||||
|
||||
case "GenericBackupConfigReturn":
|
||||
return genericBackupConfigReturn(this
|
||||
as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn);
|
||||
|
||||
case "GenericJobButationReturn":
|
||||
return genericJobButationReturn(this
|
||||
as Fragment$basicMutationReturnFields$$GenericJobButationReturn);
|
||||
|
@ -221,6 +232,8 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
_T Function(
|
||||
Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn)?
|
||||
deviceApiTokenMutationReturn,
|
||||
_T Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)?
|
||||
genericBackupConfigReturn,
|
||||
_T Function(Fragment$basicMutationReturnFields$$GenericJobButationReturn)?
|
||||
genericJobButationReturn,
|
||||
_T Function(Fragment$basicMutationReturnFields$$GenericMutationReturn)?
|
||||
|
@ -260,6 +273,14 @@ extension UtilityExtension$Fragment$basicMutationReturnFields
|
|||
return orElse();
|
||||
}
|
||||
|
||||
case "GenericBackupConfigReturn":
|
||||
if (genericBackupConfigReturn != null) {
|
||||
return genericBackupConfigReturn(this
|
||||
as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn);
|
||||
} else {
|
||||
return orElse();
|
||||
}
|
||||
|
||||
case "GenericJobButationReturn":
|
||||
if (genericJobButationReturn != null) {
|
||||
return genericJobButationReturn(this
|
||||
|
@ -1008,6 +1029,186 @@ class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutati
|
|||
_res;
|
||||
}
|
||||
|
||||
class Fragment$basicMutationReturnFields$$GenericBackupConfigReturn
|
||||
implements Fragment$basicMutationReturnFields {
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn({
|
||||
required this.code,
|
||||
required this.message,
|
||||
required this.success,
|
||||
this.$__typename = 'GenericBackupConfigReturn',
|
||||
});
|
||||
|
||||
factory Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.fromJson(
|
||||
Map<String, dynamic> json) {
|
||||
final l$code = json['code'];
|
||||
final l$message = json['message'];
|
||||
final l$success = json['success'];
|
||||
final l$$__typename = json['__typename'];
|
||||
return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
code: (l$code as int),
|
||||
message: (l$message as String),
|
||||
success: (l$success as bool),
|
||||
$__typename: (l$$__typename as String),
|
||||
);
|
||||
}
|
||||
|
||||
final int code;
|
||||
|
||||
final String message;
|
||||
|
||||
final bool success;
|
||||
|
||||
final String $__typename;
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final _resultData = <String, dynamic>{};
|
||||
final l$code = code;
|
||||
_resultData['code'] = l$code;
|
||||
final l$message = message;
|
||||
_resultData['message'] = l$message;
|
||||
final l$success = success;
|
||||
_resultData['success'] = l$success;
|
||||
final l$$__typename = $__typename;
|
||||
_resultData['__typename'] = l$$__typename;
|
||||
return _resultData;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
final l$code = code;
|
||||
final l$message = message;
|
||||
final l$success = success;
|
||||
final l$$__typename = $__typename;
|
||||
return Object.hashAll([
|
||||
l$code,
|
||||
l$message,
|
||||
l$success,
|
||||
l$$__typename,
|
||||
]);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(this, other)) {
|
||||
return true;
|
||||
}
|
||||
if (!(other
|
||||
is Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) ||
|
||||
runtimeType != other.runtimeType) {
|
||||
return false;
|
||||
}
|
||||
final l$code = code;
|
||||
final lOther$code = other.code;
|
||||
if (l$code != lOther$code) {
|
||||
return false;
|
||||
}
|
||||
final l$message = message;
|
||||
final lOther$message = other.message;
|
||||
if (l$message != lOther$message) {
|
||||
return false;
|
||||
}
|
||||
final l$success = success;
|
||||
final lOther$success = other.success;
|
||||
if (l$success != lOther$success) {
|
||||
return false;
|
||||
}
|
||||
final l$$__typename = $__typename;
|
||||
final lOther$$__typename = other.$__typename;
|
||||
if (l$$__typename != lOther$$__typename) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn
|
||||
on Fragment$basicMutationReturnFields$$GenericBackupConfigReturn {
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn>
|
||||
get copyWith =>
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
this,
|
||||
(i) => i,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes> {
|
||||
factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn instance,
|
||||
TRes Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)
|
||||
then,
|
||||
) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn;
|
||||
|
||||
factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.stub(
|
||||
TRes res) =
|
||||
_CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn;
|
||||
|
||||
TRes call({
|
||||
int? code,
|
||||
String? message,
|
||||
bool? success,
|
||||
String? $__typename,
|
||||
});
|
||||
}
|
||||
|
||||
class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes>
|
||||
implements
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes> {
|
||||
_CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
this._instance,
|
||||
this._then,
|
||||
);
|
||||
|
||||
final Fragment$basicMutationReturnFields$$GenericBackupConfigReturn _instance;
|
||||
|
||||
final TRes Function(
|
||||
Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) _then;
|
||||
|
||||
static const _undefined = <dynamic, dynamic>{};
|
||||
|
||||
TRes call({
|
||||
Object? code = _undefined,
|
||||
Object? message = _undefined,
|
||||
Object? success = _undefined,
|
||||
Object? $__typename = _undefined,
|
||||
}) =>
|
||||
_then(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
code:
|
||||
code == _undefined || code == null ? _instance.code : (code as int),
|
||||
message: message == _undefined || message == null
|
||||
? _instance.message
|
||||
: (message as String),
|
||||
success: success == _undefined || success == null
|
||||
? _instance.success
|
||||
: (success as bool),
|
||||
$__typename: $__typename == _undefined || $__typename == null
|
||||
? _instance.$__typename
|
||||
: ($__typename as String),
|
||||
));
|
||||
}
|
||||
|
||||
class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes>
|
||||
implements
|
||||
CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn<
|
||||
TRes> {
|
||||
_CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn(
|
||||
this._res);
|
||||
|
||||
TRes _res;
|
||||
|
||||
call({
|
||||
int? code,
|
||||
String? message,
|
||||
bool? success,
|
||||
String? $__typename,
|
||||
}) =>
|
||||
_res;
|
||||
}
|
||||
|
||||
class Fragment$basicMutationReturnFields$$GenericJobButationReturn
|
||||
implements Fragment$basicMutationReturnFields {
|
||||
Fragment$basicMutationReturnFields$$GenericJobButationReturn({
|
||||
|
|
Loading…
Reference in a new issue