mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-09 09:31:13 +00:00
chore: Update scheme.graphql and its models
This commit is contained in:
parent
f05bedf460
commit
feca9d3b06
|
@ -14,7 +14,8 @@ query BackupConfiguration {
|
||||||
query AllBackupSnapshots {
|
query AllBackupSnapshots {
|
||||||
backup {
|
backup {
|
||||||
allSnapshots {
|
allSnapshots {
|
||||||
...backupSnapshotFields
|
id
|
||||||
|
createdAt
|
||||||
service {
|
service {
|
||||||
displayName
|
displayName
|
||||||
id
|
id
|
||||||
|
@ -38,31 +39,41 @@ fragment genericBackupConfigReturn on GenericBackupConfigReturn {
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation ForceSnapshotsReload {
|
mutation ForceSnapshotsReload {
|
||||||
forceSnapshotsReload {
|
backup {
|
||||||
...basicMutationReturnFields
|
forceSnapshotsReload {
|
||||||
|
...basicMutationReturnFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation StartBackup($serviceId: String = null) {
|
mutation StartBackup($serviceId: String = null) {
|
||||||
startBackup(serviceId: $serviceId) {
|
backup {
|
||||||
|
startBackup(serviceId: $serviceId) {
|
||||||
...basicMutationReturnFields
|
...basicMutationReturnFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation SetAutobackupPeriod($period: Int = null) {
|
mutation SetAutobackupPeriod($period: Int = null) {
|
||||||
setAutobackupPeriod(period: $period) {
|
backup {
|
||||||
...genericBackupConfigReturn
|
setAutobackupPeriod(period: $period) {
|
||||||
|
...genericBackupConfigReturn
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation RemoveRepository {
|
mutation RemoveRepository {
|
||||||
removeRepository {
|
backup {
|
||||||
...genericBackupConfigReturn
|
removeRepository {
|
||||||
|
...genericBackupConfigReturn
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation InitializeRepository($repository: InitializeRepositoryInput!) {
|
mutation InitializeRepository($repository: InitializeRepositoryInput!) {
|
||||||
initializeRepository(repository: $repository) {
|
backup {
|
||||||
...genericBackupConfigReturn
|
initializeRepository(repository: $repository) {
|
||||||
|
...genericBackupConfigReturn
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -38,6 +38,16 @@ type ApiKeyMutationReturn implements MutationReturnInterface {
|
||||||
key: String
|
key: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ApiMutations {
|
||||||
|
getNewRecoveryApiKey(limits: RecoveryKeyLimitsInput = null): ApiKeyMutationReturn!
|
||||||
|
useRecoveryApiKey(input: UseRecoveryKeyInput!): DeviceApiTokenMutationReturn!
|
||||||
|
refreshDeviceApiToken: DeviceApiTokenMutationReturn!
|
||||||
|
deleteDeviceApiToken(device: String!): GenericMutationReturn!
|
||||||
|
getNewDeviceApiKey: ApiKeyMutationReturn!
|
||||||
|
invalidateNewDeviceApiKey: GenericMutationReturn!
|
||||||
|
authorizeWithNewDeviceApiKey(input: UseNewDeviceKeyInput!): DeviceApiTokenMutationReturn!
|
||||||
|
}
|
||||||
|
|
||||||
type ApiRecoveryKeyStatus {
|
type ApiRecoveryKeyStatus {
|
||||||
exists: Boolean!
|
exists: Boolean!
|
||||||
valid: Boolean!
|
valid: Boolean!
|
||||||
|
@ -78,6 +88,15 @@ type BackupConfiguration {
|
||||||
locationId: String
|
locationId: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type BackupMutations {
|
||||||
|
initializeRepository(repository: InitializeRepositoryInput!): GenericBackupConfigReturn!
|
||||||
|
removeRepository: GenericBackupConfigReturn!
|
||||||
|
setAutobackupPeriod(period: Int = null): GenericBackupConfigReturn!
|
||||||
|
startBackup(serviceId: String!): GenericJobMutationReturn!
|
||||||
|
restoreBackup(snapshotId: String!): GenericJobMutationReturn!
|
||||||
|
forceSnapshotsReload: GenericMutationReturn!
|
||||||
|
}
|
||||||
|
|
||||||
enum BackupProvider {
|
enum BackupProvider {
|
||||||
BACKBLAZE
|
BACKBLAZE
|
||||||
NONE
|
NONE
|
||||||
|
@ -96,9 +115,9 @@ type DeviceApiTokenMutationReturn implements MutationReturnInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
enum DnsProvider {
|
enum DnsProvider {
|
||||||
CLOUDFLARE,
|
CLOUDFLARE
|
||||||
DESEC,
|
|
||||||
DIGITALOCEAN
|
DIGITALOCEAN
|
||||||
|
DESEC
|
||||||
}
|
}
|
||||||
|
|
||||||
type DnsRecord {
|
type DnsRecord {
|
||||||
|
@ -142,6 +161,10 @@ type Job {
|
||||||
getJob(jobId: String!): ApiJob
|
getJob(jobId: String!): ApiJob
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type JobMutations {
|
||||||
|
removeJob(jobId: String!): GenericMutationReturn!
|
||||||
|
}
|
||||||
|
|
||||||
input MigrateToBindsInput {
|
input MigrateToBindsInput {
|
||||||
emailBlockDevice: String!
|
emailBlockDevice: String!
|
||||||
bitwardenBlockDevice: String!
|
bitwardenBlockDevice: String!
|
||||||
|
@ -156,42 +179,43 @@ input MoveServiceInput {
|
||||||
}
|
}
|
||||||
|
|
||||||
type Mutation {
|
type Mutation {
|
||||||
getNewRecoveryApiKey(limits: RecoveryKeyLimitsInput = null): ApiKeyMutationReturn!
|
getNewRecoveryApiKey(limits: RecoveryKeyLimitsInput = null): ApiKeyMutationReturn! @deprecated(reason: "Use `api.get_new_recovery_api_key` instead")
|
||||||
useRecoveryApiKey(input: UseRecoveryKeyInput!): DeviceApiTokenMutationReturn!
|
useRecoveryApiKey(input: UseRecoveryKeyInput!): DeviceApiTokenMutationReturn! @deprecated(reason: "Use `api.use_recovery_api_key` instead")
|
||||||
refreshDeviceApiToken: DeviceApiTokenMutationReturn!
|
refreshDeviceApiToken: DeviceApiTokenMutationReturn! @deprecated(reason: "Use `api.refresh_device_api_token` instead")
|
||||||
deleteDeviceApiToken(device: String!): GenericMutationReturn!
|
deleteDeviceApiToken(device: String!): GenericMutationReturn! @deprecated(reason: "Use `api.delete_device_api_token` instead")
|
||||||
getNewDeviceApiKey: ApiKeyMutationReturn!
|
getNewDeviceApiKey: ApiKeyMutationReturn! @deprecated(reason: "Use `api.get_new_device_api_key` instead")
|
||||||
invalidateNewDeviceApiKey: GenericMutationReturn!
|
invalidateNewDeviceApiKey: GenericMutationReturn! @deprecated(reason: "Use `api.invalidate_new_device_api_key` instead")
|
||||||
authorizeWithNewDeviceApiKey(input: UseNewDeviceKeyInput!): DeviceApiTokenMutationReturn!
|
authorizeWithNewDeviceApiKey(input: UseNewDeviceKeyInput!): DeviceApiTokenMutationReturn! @deprecated(reason: "Use `api.authorize_with_new_device_api_key` instead")
|
||||||
changeTimezone(timezone: String!): TimezoneMutationReturn!
|
changeTimezone(timezone: String!): TimezoneMutationReturn! @deprecated(reason: "Use `system.change_timezone` instead")
|
||||||
changeAutoUpgradeSettings(settings: AutoUpgradeSettingsInput!): AutoUpgradeSettingsMutationReturn!
|
changeAutoUpgradeSettings(settings: AutoUpgradeSettingsInput!): AutoUpgradeSettingsMutationReturn! @deprecated(reason: "Use `system.change_auto_upgrade_settings` instead")
|
||||||
runSystemRebuild: GenericMutationReturn!
|
runSystemRebuild: GenericMutationReturn! @deprecated(reason: "Use `system.run_system_rebuild` instead")
|
||||||
runSystemRollback: GenericMutationReturn!
|
runSystemRollback: GenericMutationReturn! @deprecated(reason: "Use `system.run_system_rollback` instead")
|
||||||
runSystemUpgrade: GenericMutationReturn!
|
runSystemUpgrade: GenericMutationReturn! @deprecated(reason: "Use `system.run_system_upgrade` instead")
|
||||||
rebootSystem: GenericMutationReturn!
|
rebootSystem: GenericMutationReturn! @deprecated(reason: "Use `system.reboot_system` instead")
|
||||||
pullRepositoryChanges: GenericMutationReturn!
|
pullRepositoryChanges: GenericMutationReturn! @deprecated(reason: "Use `system.pull_repository_changes` instead")
|
||||||
createUser(user: UserMutationInput!): UserMutationReturn!
|
createUser(user: UserMutationInput!): UserMutationReturn! @deprecated(reason: "Use `users.create_user` instead")
|
||||||
deleteUser(username: String!): GenericMutationReturn!
|
deleteUser(username: String!): GenericMutationReturn! @deprecated(reason: "Use `users.delete_user` instead")
|
||||||
updateUser(user: UserMutationInput!): UserMutationReturn!
|
updateUser(user: UserMutationInput!): UserMutationReturn! @deprecated(reason: "Use `users.update_user` instead")
|
||||||
addSshKey(sshInput: SshMutationInput!): UserMutationReturn!
|
addSshKey(sshInput: SshMutationInput!): UserMutationReturn! @deprecated(reason: "Use `users.add_ssh_key` instead")
|
||||||
removeSshKey(sshInput: SshMutationInput!): UserMutationReturn!
|
removeSshKey(sshInput: SshMutationInput!): UserMutationReturn! @deprecated(reason: "Use `users.remove_ssh_key` instead")
|
||||||
resizeVolume(name: String!): GenericMutationReturn!
|
resizeVolume(name: String!): GenericMutationReturn! @deprecated(reason: "Use `storage.resize_volume` instead")
|
||||||
mountVolume(name: String!): GenericMutationReturn!
|
mountVolume(name: String!): GenericMutationReturn! @deprecated(reason: "Use `storage.mount_volume` instead")
|
||||||
unmountVolume(name: String!): GenericMutationReturn!
|
unmountVolume(name: String!): GenericMutationReturn! @deprecated(reason: "Use `storage.unmount_volume` instead")
|
||||||
migrateToBinds(input: MigrateToBindsInput!): GenericJobMutationReturn!
|
migrateToBinds(input: MigrateToBindsInput!): GenericJobMutationReturn! @deprecated(reason: "Use `storage.migrate_to_binds` instead")
|
||||||
enableService(serviceId: String!): ServiceMutationReturn!
|
enableService(serviceId: String!): ServiceMutationReturn! @deprecated(reason: "Use `services.enable_service` instead")
|
||||||
disableService(serviceId: String!): ServiceMutationReturn!
|
disableService(serviceId: String!): ServiceMutationReturn! @deprecated(reason: "Use `services.disable_service` instead")
|
||||||
stopService(serviceId: String!): ServiceMutationReturn!
|
stopService(serviceId: String!): ServiceMutationReturn! @deprecated(reason: "Use `services.stop_service` instead")
|
||||||
startService(serviceId: String!): ServiceMutationReturn!
|
startService(serviceId: String!): ServiceMutationReturn! @deprecated(reason: "Use `services.start_service` instead")
|
||||||
restartService(serviceId: String!): ServiceMutationReturn!
|
restartService(serviceId: String!): ServiceMutationReturn! @deprecated(reason: "Use `services.restart_service` instead")
|
||||||
moveService(input: MoveServiceInput!): ServiceJobMutationReturn!
|
moveService(input: MoveServiceInput!): ServiceJobMutationReturn! @deprecated(reason: "Use `services.move_service` instead")
|
||||||
removeJob(jobId: String!): GenericMutationReturn!
|
removeJob(jobId: String!): GenericMutationReturn! @deprecated(reason: "Use `jobs.remove_job` instead")
|
||||||
initializeRepository(repository: InitializeRepositoryInput!): GenericBackupConfigReturn!
|
api: ApiMutations!
|
||||||
removeRepository: GenericBackupConfigReturn!
|
system: SystemMutations!
|
||||||
setAutobackupPeriod(period: Int = null): GenericBackupConfigReturn!
|
users: UsersMutations!
|
||||||
startBackup(serviceId: String = null): GenericJobMutationReturn!
|
storage: StorageMutations!
|
||||||
restoreBackup(snapshotId: String!): GenericJobMutationReturn!
|
services: ServicesMutations!
|
||||||
forceSnapshotsReload: GenericMutationReturn!
|
jobs: JobMutations!
|
||||||
|
backup: BackupMutations!
|
||||||
testMutation: GenericMutationReturn!
|
testMutation: GenericMutationReturn!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -202,8 +226,8 @@ interface MutationReturnInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
type Query {
|
type Query {
|
||||||
system: System!
|
|
||||||
api: Api!
|
api: Api!
|
||||||
|
system: System!
|
||||||
users: Users!
|
users: Users!
|
||||||
storage: Storage!
|
storage: Storage!
|
||||||
jobs: Job!
|
jobs: Job!
|
||||||
|
@ -272,6 +296,15 @@ type Services {
|
||||||
allServices: [Service!]!
|
allServices: [Service!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ServicesMutations {
|
||||||
|
enableService(serviceId: String!): ServiceMutationReturn!
|
||||||
|
disableService(serviceId: String!): ServiceMutationReturn!
|
||||||
|
stopService(serviceId: String!): ServiceMutationReturn!
|
||||||
|
startService(serviceId: String!): ServiceMutationReturn!
|
||||||
|
restartService(serviceId: String!): ServiceMutationReturn!
|
||||||
|
moveService(input: MoveServiceInput!): ServiceJobMutationReturn!
|
||||||
|
}
|
||||||
|
|
||||||
enum Severity {
|
enum Severity {
|
||||||
INFO
|
INFO
|
||||||
WARNING
|
WARNING
|
||||||
|
@ -301,6 +334,13 @@ type Storage {
|
||||||
volumes: [StorageVolume!]!
|
volumes: [StorageVolume!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type StorageMutations {
|
||||||
|
resizeVolume(name: String!): GenericMutationReturn!
|
||||||
|
mountVolume(name: String!): GenericMutationReturn!
|
||||||
|
unmountVolume(name: String!): GenericMutationReturn!
|
||||||
|
migrateToBinds(input: MigrateToBindsInput!): GenericJobMutationReturn!
|
||||||
|
}
|
||||||
|
|
||||||
interface StorageUsageInterface {
|
interface StorageUsageInterface {
|
||||||
usedSpace: String!
|
usedSpace: String!
|
||||||
volume: StorageVolume
|
volume: StorageVolume
|
||||||
|
@ -346,6 +386,16 @@ type SystemInfo {
|
||||||
usingBinds: Boolean!
|
usingBinds: Boolean!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type SystemMutations {
|
||||||
|
changeTimezone(timezone: String!): TimezoneMutationReturn!
|
||||||
|
changeAutoUpgradeSettings(settings: AutoUpgradeSettingsInput!): AutoUpgradeSettingsMutationReturn!
|
||||||
|
runSystemRebuild: GenericMutationReturn!
|
||||||
|
runSystemRollback: GenericMutationReturn!
|
||||||
|
runSystemUpgrade: GenericMutationReturn!
|
||||||
|
rebootSystem: GenericMutationReturn!
|
||||||
|
pullRepositoryChanges: GenericMutationReturn!
|
||||||
|
}
|
||||||
|
|
||||||
type SystemProviderInfo {
|
type SystemProviderInfo {
|
||||||
provider: ServerProvider!
|
provider: ServerProvider!
|
||||||
id: String!
|
id: String!
|
||||||
|
@ -403,15 +453,10 @@ type Users {
|
||||||
getUser(username: String!): User
|
getUser(username: String!): User
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment dnsRecordFields on DnsRecord {
|
type UsersMutations {
|
||||||
content
|
createUser(user: UserMutationInput!): UserMutationReturn!
|
||||||
name
|
deleteUser(username: String!): GenericMutationReturn!
|
||||||
priority
|
updateUser(user: UserMutationInput!): UserMutationReturn!
|
||||||
recordType
|
addSshKey(sshInput: SshMutationInput!): UserMutationReturn!
|
||||||
ttl
|
removeSshKey(sshInput: SshMutationInput!): UserMutationReturn!
|
||||||
}
|
|
||||||
|
|
||||||
fragment backupSnapshotFields on SnapshotInfo {
|
|
||||||
id
|
|
||||||
createdAt
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import 'package:gql/ast.dart';
|
|
||||||
import 'package:graphql/client.dart' as graphql;
|
|
||||||
import 'package:selfprivacy/utils/scalars.dart';
|
import 'package:selfprivacy/utils/scalars.dart';
|
||||||
|
|
||||||
class Input$AutoUpgradeSettingsInput {
|
class Input$AutoUpgradeSettingsInput {
|
||||||
|
@ -1312,16 +1310,16 @@ Enum$BackupProvider fromJson$Enum$BackupProvider(String value) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Enum$DnsProvider { CLOUDFLARE, DESEC, DIGITALOCEAN, $unknown }
|
enum Enum$DnsProvider { CLOUDFLARE, DIGITALOCEAN, DESEC, $unknown }
|
||||||
|
|
||||||
String toJson$Enum$DnsProvider(Enum$DnsProvider e) {
|
String toJson$Enum$DnsProvider(Enum$DnsProvider e) {
|
||||||
switch (e) {
|
switch (e) {
|
||||||
case Enum$DnsProvider.CLOUDFLARE:
|
case Enum$DnsProvider.CLOUDFLARE:
|
||||||
return r'CLOUDFLARE';
|
return r'CLOUDFLARE';
|
||||||
case Enum$DnsProvider.DESEC:
|
|
||||||
return r'DESEC';
|
|
||||||
case Enum$DnsProvider.DIGITALOCEAN:
|
case Enum$DnsProvider.DIGITALOCEAN:
|
||||||
return r'DIGITALOCEAN';
|
return r'DIGITALOCEAN';
|
||||||
|
case Enum$DnsProvider.DESEC:
|
||||||
|
return r'DESEC';
|
||||||
case Enum$DnsProvider.$unknown:
|
case Enum$DnsProvider.$unknown:
|
||||||
return r'$unknown';
|
return r'$unknown';
|
||||||
}
|
}
|
||||||
|
@ -1331,10 +1329,10 @@ Enum$DnsProvider fromJson$Enum$DnsProvider(String value) {
|
||||||
switch (value) {
|
switch (value) {
|
||||||
case r'CLOUDFLARE':
|
case r'CLOUDFLARE':
|
||||||
return Enum$DnsProvider.CLOUDFLARE;
|
return Enum$DnsProvider.CLOUDFLARE;
|
||||||
case r'DESEC':
|
|
||||||
return Enum$DnsProvider.DESEC;
|
|
||||||
case r'DIGITALOCEAN':
|
case r'DIGITALOCEAN':
|
||||||
return Enum$DnsProvider.DIGITALOCEAN;
|
return Enum$DnsProvider.DIGITALOCEAN;
|
||||||
|
case r'DESEC':
|
||||||
|
return Enum$DnsProvider.DESEC;
|
||||||
default:
|
default:
|
||||||
return Enum$DnsProvider.$unknown;
|
return Enum$DnsProvider.$unknown;
|
||||||
}
|
}
|
||||||
|
@ -1481,517 +1479,6 @@ Enum$UserType fromJson$Enum$UserType(String value) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class Fragment$dnsRecordFields {
|
|
||||||
Fragment$dnsRecordFields({
|
|
||||||
required this.content,
|
|
||||||
required this.name,
|
|
||||||
this.priority,
|
|
||||||
required this.recordType,
|
|
||||||
required this.ttl,
|
|
||||||
this.$__typename = 'DnsRecord',
|
|
||||||
});
|
|
||||||
|
|
||||||
factory Fragment$dnsRecordFields.fromJson(Map<String, dynamic> json) {
|
|
||||||
final l$content = json['content'];
|
|
||||||
final l$name = json['name'];
|
|
||||||
final l$priority = json['priority'];
|
|
||||||
final l$recordType = json['recordType'];
|
|
||||||
final l$ttl = json['ttl'];
|
|
||||||
final l$$__typename = json['__typename'];
|
|
||||||
return Fragment$dnsRecordFields(
|
|
||||||
content: (l$content as String),
|
|
||||||
name: (l$name as String),
|
|
||||||
priority: (l$priority as int?),
|
|
||||||
recordType: (l$recordType as String),
|
|
||||||
ttl: (l$ttl as int),
|
|
||||||
$__typename: (l$$__typename as String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
final String content;
|
|
||||||
|
|
||||||
final String name;
|
|
||||||
|
|
||||||
final int? priority;
|
|
||||||
|
|
||||||
final String recordType;
|
|
||||||
|
|
||||||
final int ttl;
|
|
||||||
|
|
||||||
final String $__typename;
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final _resultData = <String, dynamic>{};
|
|
||||||
final l$content = content;
|
|
||||||
_resultData['content'] = l$content;
|
|
||||||
final l$name = name;
|
|
||||||
_resultData['name'] = l$name;
|
|
||||||
final l$priority = priority;
|
|
||||||
_resultData['priority'] = l$priority;
|
|
||||||
final l$recordType = recordType;
|
|
||||||
_resultData['recordType'] = l$recordType;
|
|
||||||
final l$ttl = ttl;
|
|
||||||
_resultData['ttl'] = l$ttl;
|
|
||||||
final l$$__typename = $__typename;
|
|
||||||
_resultData['__typename'] = l$$__typename;
|
|
||||||
return _resultData;
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode {
|
|
||||||
final l$content = content;
|
|
||||||
final l$name = name;
|
|
||||||
final l$priority = priority;
|
|
||||||
final l$recordType = recordType;
|
|
||||||
final l$ttl = ttl;
|
|
||||||
final l$$__typename = $__typename;
|
|
||||||
return Object.hashAll([
|
|
||||||
l$content,
|
|
||||||
l$name,
|
|
||||||
l$priority,
|
|
||||||
l$recordType,
|
|
||||||
l$ttl,
|
|
||||||
l$$__typename,
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if (identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (!(other is Fragment$dnsRecordFields) ||
|
|
||||||
runtimeType != other.runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
final l$content = content;
|
|
||||||
final lOther$content = other.content;
|
|
||||||
if (l$content != lOther$content) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
final l$name = name;
|
|
||||||
final lOther$name = other.name;
|
|
||||||
if (l$name != lOther$name) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
final l$priority = priority;
|
|
||||||
final lOther$priority = other.priority;
|
|
||||||
if (l$priority != lOther$priority) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
final l$recordType = recordType;
|
|
||||||
final lOther$recordType = other.recordType;
|
|
||||||
if (l$recordType != lOther$recordType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
final l$ttl = ttl;
|
|
||||||
final lOther$ttl = other.ttl;
|
|
||||||
if (l$ttl != lOther$ttl) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
final l$$__typename = $__typename;
|
|
||||||
final lOther$$__typename = other.$__typename;
|
|
||||||
if (l$$__typename != lOther$$__typename) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
extension UtilityExtension$Fragment$dnsRecordFields
|
|
||||||
on Fragment$dnsRecordFields {
|
|
||||||
CopyWith$Fragment$dnsRecordFields<Fragment$dnsRecordFields> get copyWith =>
|
|
||||||
CopyWith$Fragment$dnsRecordFields(
|
|
||||||
this,
|
|
||||||
(i) => i,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class CopyWith$Fragment$dnsRecordFields<TRes> {
|
|
||||||
factory CopyWith$Fragment$dnsRecordFields(
|
|
||||||
Fragment$dnsRecordFields instance,
|
|
||||||
TRes Function(Fragment$dnsRecordFields) then,
|
|
||||||
) = _CopyWithImpl$Fragment$dnsRecordFields;
|
|
||||||
|
|
||||||
factory CopyWith$Fragment$dnsRecordFields.stub(TRes res) =
|
|
||||||
_CopyWithStubImpl$Fragment$dnsRecordFields;
|
|
||||||
|
|
||||||
TRes call({
|
|
||||||
String? content,
|
|
||||||
String? name,
|
|
||||||
int? priority,
|
|
||||||
String? recordType,
|
|
||||||
int? ttl,
|
|
||||||
String? $__typename,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
class _CopyWithImpl$Fragment$dnsRecordFields<TRes>
|
|
||||||
implements CopyWith$Fragment$dnsRecordFields<TRes> {
|
|
||||||
_CopyWithImpl$Fragment$dnsRecordFields(
|
|
||||||
this._instance,
|
|
||||||
this._then,
|
|
||||||
);
|
|
||||||
|
|
||||||
final Fragment$dnsRecordFields _instance;
|
|
||||||
|
|
||||||
final TRes Function(Fragment$dnsRecordFields) _then;
|
|
||||||
|
|
||||||
static const _undefined = <dynamic, dynamic>{};
|
|
||||||
|
|
||||||
TRes call({
|
|
||||||
Object? content = _undefined,
|
|
||||||
Object? name = _undefined,
|
|
||||||
Object? priority = _undefined,
|
|
||||||
Object? recordType = _undefined,
|
|
||||||
Object? ttl = _undefined,
|
|
||||||
Object? $__typename = _undefined,
|
|
||||||
}) =>
|
|
||||||
_then(Fragment$dnsRecordFields(
|
|
||||||
content: content == _undefined || content == null
|
|
||||||
? _instance.content
|
|
||||||
: (content as String),
|
|
||||||
name: name == _undefined || name == null
|
|
||||||
? _instance.name
|
|
||||||
: (name as String),
|
|
||||||
priority:
|
|
||||||
priority == _undefined ? _instance.priority : (priority as int?),
|
|
||||||
recordType: recordType == _undefined || recordType == null
|
|
||||||
? _instance.recordType
|
|
||||||
: (recordType as String),
|
|
||||||
ttl: ttl == _undefined || ttl == null ? _instance.ttl : (ttl as int),
|
|
||||||
$__typename: $__typename == _undefined || $__typename == null
|
|
||||||
? _instance.$__typename
|
|
||||||
: ($__typename as String),
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
class _CopyWithStubImpl$Fragment$dnsRecordFields<TRes>
|
|
||||||
implements CopyWith$Fragment$dnsRecordFields<TRes> {
|
|
||||||
_CopyWithStubImpl$Fragment$dnsRecordFields(this._res);
|
|
||||||
|
|
||||||
TRes _res;
|
|
||||||
|
|
||||||
call({
|
|
||||||
String? content,
|
|
||||||
String? name,
|
|
||||||
int? priority,
|
|
||||||
String? recordType,
|
|
||||||
int? ttl,
|
|
||||||
String? $__typename,
|
|
||||||
}) =>
|
|
||||||
_res;
|
|
||||||
}
|
|
||||||
|
|
||||||
const fragmentDefinitiondnsRecordFields = FragmentDefinitionNode(
|
|
||||||
name: NameNode(value: 'dnsRecordFields'),
|
|
||||||
typeCondition: TypeConditionNode(
|
|
||||||
on: NamedTypeNode(
|
|
||||||
name: NameNode(value: 'DnsRecord'),
|
|
||||||
isNonNull: false,
|
|
||||||
)),
|
|
||||||
directives: [],
|
|
||||||
selectionSet: SelectionSetNode(selections: [
|
|
||||||
FieldNode(
|
|
||||||
name: NameNode(value: 'content'),
|
|
||||||
alias: null,
|
|
||||||
arguments: [],
|
|
||||||
directives: [],
|
|
||||||
selectionSet: null,
|
|
||||||
),
|
|
||||||
FieldNode(
|
|
||||||
name: NameNode(value: 'name'),
|
|
||||||
alias: null,
|
|
||||||
arguments: [],
|
|
||||||
directives: [],
|
|
||||||
selectionSet: null,
|
|
||||||
),
|
|
||||||
FieldNode(
|
|
||||||
name: NameNode(value: 'priority'),
|
|
||||||
alias: null,
|
|
||||||
arguments: [],
|
|
||||||
directives: [],
|
|
||||||
selectionSet: null,
|
|
||||||
),
|
|
||||||
FieldNode(
|
|
||||||
name: NameNode(value: 'recordType'),
|
|
||||||
alias: null,
|
|
||||||
arguments: [],
|
|
||||||
directives: [],
|
|
||||||
selectionSet: null,
|
|
||||||
),
|
|
||||||
FieldNode(
|
|
||||||
name: NameNode(value: 'ttl'),
|
|
||||||
alias: null,
|
|
||||||
arguments: [],
|
|
||||||
directives: [],
|
|
||||||
selectionSet: null,
|
|
||||||
),
|
|
||||||
FieldNode(
|
|
||||||
name: NameNode(value: '__typename'),
|
|
||||||
alias: null,
|
|
||||||
arguments: [],
|
|
||||||
directives: [],
|
|
||||||
selectionSet: null,
|
|
||||||
),
|
|
||||||
]),
|
|
||||||
);
|
|
||||||
const documentNodeFragmentdnsRecordFields = DocumentNode(definitions: [
|
|
||||||
fragmentDefinitiondnsRecordFields,
|
|
||||||
]);
|
|
||||||
|
|
||||||
extension ClientExtension$Fragment$dnsRecordFields on graphql.GraphQLClient {
|
|
||||||
void writeFragment$dnsRecordFields({
|
|
||||||
required Fragment$dnsRecordFields data,
|
|
||||||
required Map<String, dynamic> idFields,
|
|
||||||
bool broadcast = true,
|
|
||||||
}) =>
|
|
||||||
this.writeFragment(
|
|
||||||
graphql.FragmentRequest(
|
|
||||||
idFields: idFields,
|
|
||||||
fragment: const graphql.Fragment(
|
|
||||||
fragmentName: 'dnsRecordFields',
|
|
||||||
document: documentNodeFragmentdnsRecordFields,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
data: data.toJson(),
|
|
||||||
broadcast: broadcast,
|
|
||||||
);
|
|
||||||
Fragment$dnsRecordFields? readFragment$dnsRecordFields({
|
|
||||||
required Map<String, dynamic> idFields,
|
|
||||||
bool optimistic = true,
|
|
||||||
}) {
|
|
||||||
final result = this.readFragment(
|
|
||||||
graphql.FragmentRequest(
|
|
||||||
idFields: idFields,
|
|
||||||
fragment: const graphql.Fragment(
|
|
||||||
fragmentName: 'dnsRecordFields',
|
|
||||||
document: documentNodeFragmentdnsRecordFields,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
optimistic: optimistic,
|
|
||||||
);
|
|
||||||
return result == null ? null : Fragment$dnsRecordFields.fromJson(result);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
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>>{
|
const possibleTypesMap = <String, Set<String>>{
|
||||||
'MutationReturnInterface': {
|
'MutationReturnInterface': {
|
||||||
'ApiKeyMutationReturn',
|
'ApiKeyMutationReturn',
|
||||||
|
|
|
@ -28,6 +28,14 @@ query SystemIsUsingBinds {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fragment fragmentDnsRecords on DnsRecord {
|
||||||
|
recordType
|
||||||
|
name
|
||||||
|
content
|
||||||
|
ttl
|
||||||
|
priority
|
||||||
|
}
|
||||||
|
|
||||||
query DomainInfo {
|
query DomainInfo {
|
||||||
system {
|
system {
|
||||||
domainInfo {
|
domainInfo {
|
||||||
|
@ -35,7 +43,7 @@ query DomainInfo {
|
||||||
hostname
|
hostname
|
||||||
provider
|
provider
|
||||||
requiredDnsRecords {
|
requiredDnsRecords {
|
||||||
...dnsRecordFields
|
...fragmentDnsRecords
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2282,6 +2282,300 @@ class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$UserMutationReturn<
|
||||||
_res;
|
_res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class Fragment$fragmentDnsRecords {
|
||||||
|
Fragment$fragmentDnsRecords({
|
||||||
|
required this.recordType,
|
||||||
|
required this.name,
|
||||||
|
required this.content,
|
||||||
|
required this.ttl,
|
||||||
|
this.priority,
|
||||||
|
this.$__typename = 'DnsRecord',
|
||||||
|
});
|
||||||
|
|
||||||
|
factory Fragment$fragmentDnsRecords.fromJson(Map<String, dynamic> json) {
|
||||||
|
final l$recordType = json['recordType'];
|
||||||
|
final l$name = json['name'];
|
||||||
|
final l$content = json['content'];
|
||||||
|
final l$ttl = json['ttl'];
|
||||||
|
final l$priority = json['priority'];
|
||||||
|
final l$$__typename = json['__typename'];
|
||||||
|
return Fragment$fragmentDnsRecords(
|
||||||
|
recordType: (l$recordType as String),
|
||||||
|
name: (l$name as String),
|
||||||
|
content: (l$content as String),
|
||||||
|
ttl: (l$ttl as int),
|
||||||
|
priority: (l$priority as int?),
|
||||||
|
$__typename: (l$$__typename as String),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
final String recordType;
|
||||||
|
|
||||||
|
final String name;
|
||||||
|
|
||||||
|
final String content;
|
||||||
|
|
||||||
|
final int ttl;
|
||||||
|
|
||||||
|
final int? priority;
|
||||||
|
|
||||||
|
final String $__typename;
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final _resultData = <String, dynamic>{};
|
||||||
|
final l$recordType = recordType;
|
||||||
|
_resultData['recordType'] = l$recordType;
|
||||||
|
final l$name = name;
|
||||||
|
_resultData['name'] = l$name;
|
||||||
|
final l$content = content;
|
||||||
|
_resultData['content'] = l$content;
|
||||||
|
final l$ttl = ttl;
|
||||||
|
_resultData['ttl'] = l$ttl;
|
||||||
|
final l$priority = priority;
|
||||||
|
_resultData['priority'] = l$priority;
|
||||||
|
final l$$__typename = $__typename;
|
||||||
|
_resultData['__typename'] = l$$__typename;
|
||||||
|
return _resultData;
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
int get hashCode {
|
||||||
|
final l$recordType = recordType;
|
||||||
|
final l$name = name;
|
||||||
|
final l$content = content;
|
||||||
|
final l$ttl = ttl;
|
||||||
|
final l$priority = priority;
|
||||||
|
final l$$__typename = $__typename;
|
||||||
|
return Object.hashAll([
|
||||||
|
l$recordType,
|
||||||
|
l$name,
|
||||||
|
l$content,
|
||||||
|
l$ttl,
|
||||||
|
l$priority,
|
||||||
|
l$$__typename,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool operator ==(Object other) {
|
||||||
|
if (identical(this, other)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!(other is Fragment$fragmentDnsRecords) ||
|
||||||
|
runtimeType != other.runtimeType) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
final l$recordType = recordType;
|
||||||
|
final lOther$recordType = other.recordType;
|
||||||
|
if (l$recordType != lOther$recordType) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
final l$name = name;
|
||||||
|
final lOther$name = other.name;
|
||||||
|
if (l$name != lOther$name) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
final l$content = content;
|
||||||
|
final lOther$content = other.content;
|
||||||
|
if (l$content != lOther$content) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
final l$ttl = ttl;
|
||||||
|
final lOther$ttl = other.ttl;
|
||||||
|
if (l$ttl != lOther$ttl) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
final l$priority = priority;
|
||||||
|
final lOther$priority = other.priority;
|
||||||
|
if (l$priority != lOther$priority) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
final l$$__typename = $__typename;
|
||||||
|
final lOther$$__typename = other.$__typename;
|
||||||
|
if (l$$__typename != lOther$$__typename) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
extension UtilityExtension$Fragment$fragmentDnsRecords
|
||||||
|
on Fragment$fragmentDnsRecords {
|
||||||
|
CopyWith$Fragment$fragmentDnsRecords<Fragment$fragmentDnsRecords>
|
||||||
|
get copyWith => CopyWith$Fragment$fragmentDnsRecords(
|
||||||
|
this,
|
||||||
|
(i) => i,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
abstract class CopyWith$Fragment$fragmentDnsRecords<TRes> {
|
||||||
|
factory CopyWith$Fragment$fragmentDnsRecords(
|
||||||
|
Fragment$fragmentDnsRecords instance,
|
||||||
|
TRes Function(Fragment$fragmentDnsRecords) then,
|
||||||
|
) = _CopyWithImpl$Fragment$fragmentDnsRecords;
|
||||||
|
|
||||||
|
factory CopyWith$Fragment$fragmentDnsRecords.stub(TRes res) =
|
||||||
|
_CopyWithStubImpl$Fragment$fragmentDnsRecords;
|
||||||
|
|
||||||
|
TRes call({
|
||||||
|
String? recordType,
|
||||||
|
String? name,
|
||||||
|
String? content,
|
||||||
|
int? ttl,
|
||||||
|
int? priority,
|
||||||
|
String? $__typename,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
class _CopyWithImpl$Fragment$fragmentDnsRecords<TRes>
|
||||||
|
implements CopyWith$Fragment$fragmentDnsRecords<TRes> {
|
||||||
|
_CopyWithImpl$Fragment$fragmentDnsRecords(
|
||||||
|
this._instance,
|
||||||
|
this._then,
|
||||||
|
);
|
||||||
|
|
||||||
|
final Fragment$fragmentDnsRecords _instance;
|
||||||
|
|
||||||
|
final TRes Function(Fragment$fragmentDnsRecords) _then;
|
||||||
|
|
||||||
|
static const _undefined = <dynamic, dynamic>{};
|
||||||
|
|
||||||
|
TRes call({
|
||||||
|
Object? recordType = _undefined,
|
||||||
|
Object? name = _undefined,
|
||||||
|
Object? content = _undefined,
|
||||||
|
Object? ttl = _undefined,
|
||||||
|
Object? priority = _undefined,
|
||||||
|
Object? $__typename = _undefined,
|
||||||
|
}) =>
|
||||||
|
_then(Fragment$fragmentDnsRecords(
|
||||||
|
recordType: recordType == _undefined || recordType == null
|
||||||
|
? _instance.recordType
|
||||||
|
: (recordType as String),
|
||||||
|
name: name == _undefined || name == null
|
||||||
|
? _instance.name
|
||||||
|
: (name as String),
|
||||||
|
content: content == _undefined || content == null
|
||||||
|
? _instance.content
|
||||||
|
: (content as String),
|
||||||
|
ttl: ttl == _undefined || ttl == null ? _instance.ttl : (ttl as int),
|
||||||
|
priority:
|
||||||
|
priority == _undefined ? _instance.priority : (priority as int?),
|
||||||
|
$__typename: $__typename == _undefined || $__typename == null
|
||||||
|
? _instance.$__typename
|
||||||
|
: ($__typename as String),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
class _CopyWithStubImpl$Fragment$fragmentDnsRecords<TRes>
|
||||||
|
implements CopyWith$Fragment$fragmentDnsRecords<TRes> {
|
||||||
|
_CopyWithStubImpl$Fragment$fragmentDnsRecords(this._res);
|
||||||
|
|
||||||
|
TRes _res;
|
||||||
|
|
||||||
|
call({
|
||||||
|
String? recordType,
|
||||||
|
String? name,
|
||||||
|
String? content,
|
||||||
|
int? ttl,
|
||||||
|
int? priority,
|
||||||
|
String? $__typename,
|
||||||
|
}) =>
|
||||||
|
_res;
|
||||||
|
}
|
||||||
|
|
||||||
|
const fragmentDefinitionfragmentDnsRecords = FragmentDefinitionNode(
|
||||||
|
name: NameNode(value: 'fragmentDnsRecords'),
|
||||||
|
typeCondition: TypeConditionNode(
|
||||||
|
on: NamedTypeNode(
|
||||||
|
name: NameNode(value: 'DnsRecord'),
|
||||||
|
isNonNull: false,
|
||||||
|
)),
|
||||||
|
directives: [],
|
||||||
|
selectionSet: SelectionSetNode(selections: [
|
||||||
|
FieldNode(
|
||||||
|
name: NameNode(value: 'recordType'),
|
||||||
|
alias: null,
|
||||||
|
arguments: [],
|
||||||
|
directives: [],
|
||||||
|
selectionSet: null,
|
||||||
|
),
|
||||||
|
FieldNode(
|
||||||
|
name: NameNode(value: 'name'),
|
||||||
|
alias: null,
|
||||||
|
arguments: [],
|
||||||
|
directives: [],
|
||||||
|
selectionSet: null,
|
||||||
|
),
|
||||||
|
FieldNode(
|
||||||
|
name: NameNode(value: 'content'),
|
||||||
|
alias: null,
|
||||||
|
arguments: [],
|
||||||
|
directives: [],
|
||||||
|
selectionSet: null,
|
||||||
|
),
|
||||||
|
FieldNode(
|
||||||
|
name: NameNode(value: 'ttl'),
|
||||||
|
alias: null,
|
||||||
|
arguments: [],
|
||||||
|
directives: [],
|
||||||
|
selectionSet: null,
|
||||||
|
),
|
||||||
|
FieldNode(
|
||||||
|
name: NameNode(value: 'priority'),
|
||||||
|
alias: null,
|
||||||
|
arguments: [],
|
||||||
|
directives: [],
|
||||||
|
selectionSet: null,
|
||||||
|
),
|
||||||
|
FieldNode(
|
||||||
|
name: NameNode(value: '__typename'),
|
||||||
|
alias: null,
|
||||||
|
arguments: [],
|
||||||
|
directives: [],
|
||||||
|
selectionSet: null,
|
||||||
|
),
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
const documentNodeFragmentfragmentDnsRecords = DocumentNode(definitions: [
|
||||||
|
fragmentDefinitionfragmentDnsRecords,
|
||||||
|
]);
|
||||||
|
|
||||||
|
extension ClientExtension$Fragment$fragmentDnsRecords on graphql.GraphQLClient {
|
||||||
|
void writeFragment$fragmentDnsRecords({
|
||||||
|
required Fragment$fragmentDnsRecords data,
|
||||||
|
required Map<String, dynamic> idFields,
|
||||||
|
bool broadcast = true,
|
||||||
|
}) =>
|
||||||
|
this.writeFragment(
|
||||||
|
graphql.FragmentRequest(
|
||||||
|
idFields: idFields,
|
||||||
|
fragment: const graphql.Fragment(
|
||||||
|
fragmentName: 'fragmentDnsRecords',
|
||||||
|
document: documentNodeFragmentfragmentDnsRecords,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
data: data.toJson(),
|
||||||
|
broadcast: broadcast,
|
||||||
|
);
|
||||||
|
Fragment$fragmentDnsRecords? readFragment$fragmentDnsRecords({
|
||||||
|
required Map<String, dynamic> idFields,
|
||||||
|
bool optimistic = true,
|
||||||
|
}) {
|
||||||
|
final result = this.readFragment(
|
||||||
|
graphql.FragmentRequest(
|
||||||
|
idFields: idFields,
|
||||||
|
fragment: const graphql.Fragment(
|
||||||
|
fragmentName: 'fragmentDnsRecords',
|
||||||
|
document: documentNodeFragmentfragmentDnsRecords,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
optimistic: optimistic,
|
||||||
|
);
|
||||||
|
return result == null ? null : Fragment$fragmentDnsRecords.fromJson(result);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class Query$SystemSettings {
|
class Query$SystemSettings {
|
||||||
Query$SystemSettings({
|
Query$SystemSettings({
|
||||||
required this.system,
|
required this.system,
|
||||||
|
@ -4019,7 +4313,7 @@ const documentNodeQueryDomainInfo = DocumentNode(definitions: [
|
||||||
directives: [],
|
directives: [],
|
||||||
selectionSet: SelectionSetNode(selections: [
|
selectionSet: SelectionSetNode(selections: [
|
||||||
FragmentSpreadNode(
|
FragmentSpreadNode(
|
||||||
name: NameNode(value: 'dnsRecordFields'),
|
name: NameNode(value: 'fragmentDnsRecords'),
|
||||||
directives: [],
|
directives: [],
|
||||||
),
|
),
|
||||||
FieldNode(
|
FieldNode(
|
||||||
|
@ -4058,7 +4352,7 @@ const documentNodeQueryDomainInfo = DocumentNode(definitions: [
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
fragmentDefinitiondnsRecordFields,
|
fragmentDefinitionfragmentDnsRecords,
|
||||||
]);
|
]);
|
||||||
Query$DomainInfo _parserFn$Query$DomainInfo(Map<String, dynamic> data) =>
|
Query$DomainInfo _parserFn$Query$DomainInfo(Map<String, dynamic> data) =>
|
||||||
Query$DomainInfo.fromJson(data);
|
Query$DomainInfo.fromJson(data);
|
||||||
|
@ -4331,7 +4625,7 @@ class Query$DomainInfo$system$domainInfo {
|
||||||
provider: fromJson$Enum$DnsProvider((l$provider as String)),
|
provider: fromJson$Enum$DnsProvider((l$provider as String)),
|
||||||
requiredDnsRecords: (l$requiredDnsRecords as List<dynamic>)
|
requiredDnsRecords: (l$requiredDnsRecords as List<dynamic>)
|
||||||
.map((e) =>
|
.map((e) =>
|
||||||
Fragment$dnsRecordFields.fromJson((e as Map<String, dynamic>)))
|
Fragment$fragmentDnsRecords.fromJson((e as Map<String, dynamic>)))
|
||||||
.toList(),
|
.toList(),
|
||||||
$__typename: (l$$__typename as String),
|
$__typename: (l$$__typename as String),
|
||||||
);
|
);
|
||||||
|
@ -4343,7 +4637,7 @@ class Query$DomainInfo$system$domainInfo {
|
||||||
|
|
||||||
final Enum$DnsProvider provider;
|
final Enum$DnsProvider provider;
|
||||||
|
|
||||||
final List<Fragment$dnsRecordFields> requiredDnsRecords;
|
final List<Fragment$fragmentDnsRecords> requiredDnsRecords;
|
||||||
|
|
||||||
final String $__typename;
|
final String $__typename;
|
||||||
|
|
||||||
|
@ -4447,13 +4741,14 @@ abstract class CopyWith$Query$DomainInfo$system$domainInfo<TRes> {
|
||||||
String? domain,
|
String? domain,
|
||||||
String? hostname,
|
String? hostname,
|
||||||
Enum$DnsProvider? provider,
|
Enum$DnsProvider? provider,
|
||||||
List<Fragment$dnsRecordFields>? requiredDnsRecords,
|
List<Fragment$fragmentDnsRecords>? requiredDnsRecords,
|
||||||
String? $__typename,
|
String? $__typename,
|
||||||
});
|
});
|
||||||
TRes requiredDnsRecords(
|
TRes requiredDnsRecords(
|
||||||
Iterable<Fragment$dnsRecordFields> Function(
|
Iterable<Fragment$fragmentDnsRecords> Function(
|
||||||
Iterable<
|
Iterable<
|
||||||
CopyWith$Fragment$dnsRecordFields<Fragment$dnsRecordFields>>)
|
CopyWith$Fragment$fragmentDnsRecords<
|
||||||
|
Fragment$fragmentDnsRecords>>)
|
||||||
_fn);
|
_fn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4490,20 +4785,20 @@ class _CopyWithImpl$Query$DomainInfo$system$domainInfo<TRes>
|
||||||
requiredDnsRecords:
|
requiredDnsRecords:
|
||||||
requiredDnsRecords == _undefined || requiredDnsRecords == null
|
requiredDnsRecords == _undefined || requiredDnsRecords == null
|
||||||
? _instance.requiredDnsRecords
|
? _instance.requiredDnsRecords
|
||||||
: (requiredDnsRecords as List<Fragment$dnsRecordFields>),
|
: (requiredDnsRecords as List<Fragment$fragmentDnsRecords>),
|
||||||
$__typename: $__typename == _undefined || $__typename == null
|
$__typename: $__typename == _undefined || $__typename == null
|
||||||
? _instance.$__typename
|
? _instance.$__typename
|
||||||
: ($__typename as String),
|
: ($__typename as String),
|
||||||
));
|
));
|
||||||
TRes requiredDnsRecords(
|
TRes requiredDnsRecords(
|
||||||
Iterable<Fragment$dnsRecordFields> Function(
|
Iterable<Fragment$fragmentDnsRecords> Function(
|
||||||
Iterable<
|
Iterable<
|
||||||
CopyWith$Fragment$dnsRecordFields<
|
CopyWith$Fragment$fragmentDnsRecords<
|
||||||
Fragment$dnsRecordFields>>)
|
Fragment$fragmentDnsRecords>>)
|
||||||
_fn) =>
|
_fn) =>
|
||||||
call(
|
call(
|
||||||
requiredDnsRecords: _fn(_instance.requiredDnsRecords
|
requiredDnsRecords: _fn(_instance.requiredDnsRecords
|
||||||
.map((e) => CopyWith$Fragment$dnsRecordFields(
|
.map((e) => CopyWith$Fragment$fragmentDnsRecords(
|
||||||
e,
|
e,
|
||||||
(i) => i,
|
(i) => i,
|
||||||
))).toList());
|
))).toList());
|
||||||
|
@ -4519,7 +4814,7 @@ class _CopyWithStubImpl$Query$DomainInfo$system$domainInfo<TRes>
|
||||||
String? domain,
|
String? domain,
|
||||||
String? hostname,
|
String? hostname,
|
||||||
Enum$DnsProvider? provider,
|
Enum$DnsProvider? provider,
|
||||||
List<Fragment$dnsRecordFields>? requiredDnsRecords,
|
List<Fragment$fragmentDnsRecords>? requiredDnsRecords,
|
||||||
String? $__typename,
|
String? $__typename,
|
||||||
}) =>
|
}) =>
|
||||||
_res;
|
_res;
|
||||||
|
|
|
@ -10,7 +10,7 @@ query AllServices {
|
||||||
description
|
description
|
||||||
displayName
|
displayName
|
||||||
dnsRecords {
|
dnsRecords {
|
||||||
...dnsRecordFields
|
...fragmentDnsRecords
|
||||||
}
|
}
|
||||||
id
|
id
|
||||||
isEnabled
|
isEnabled
|
||||||
|
|
|
@ -3,6 +3,7 @@ import 'package:gql/ast.dart';
|
||||||
import 'package:graphql/client.dart' as graphql;
|
import 'package:graphql/client.dart' as graphql;
|
||||||
import 'package:selfprivacy/utils/scalars.dart';
|
import 'package:selfprivacy/utils/scalars.dart';
|
||||||
import 'schema.graphql.dart';
|
import 'schema.graphql.dart';
|
||||||
|
import 'server_settings.graphql.dart';
|
||||||
|
|
||||||
class Fragment$basicMutationReturnFields {
|
class Fragment$basicMutationReturnFields {
|
||||||
Fragment$basicMutationReturnFields({
|
Fragment$basicMutationReturnFields({
|
||||||
|
@ -2454,7 +2455,7 @@ const documentNodeQueryAllServices = DocumentNode(definitions: [
|
||||||
directives: [],
|
directives: [],
|
||||||
selectionSet: SelectionSetNode(selections: [
|
selectionSet: SelectionSetNode(selections: [
|
||||||
FragmentSpreadNode(
|
FragmentSpreadNode(
|
||||||
name: NameNode(value: 'dnsRecordFields'),
|
name: NameNode(value: 'fragmentDnsRecords'),
|
||||||
directives: [],
|
directives: [],
|
||||||
),
|
),
|
||||||
FieldNode(
|
FieldNode(
|
||||||
|
@ -2593,7 +2594,7 @@ const documentNodeQueryAllServices = DocumentNode(definitions: [
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
fragmentDefinitiondnsRecordFields,
|
fragmentDefinitionfragmentDnsRecords,
|
||||||
]);
|
]);
|
||||||
Query$AllServices _parserFn$Query$AllServices(Map<String, dynamic> data) =>
|
Query$AllServices _parserFn$Query$AllServices(Map<String, dynamic> data) =>
|
||||||
Query$AllServices.fromJson(data);
|
Query$AllServices.fromJson(data);
|
||||||
|
@ -2901,7 +2902,7 @@ class Query$AllServices$services$allServices {
|
||||||
displayName: (l$displayName as String),
|
displayName: (l$displayName as String),
|
||||||
dnsRecords: (l$dnsRecords as List<dynamic>?)
|
dnsRecords: (l$dnsRecords as List<dynamic>?)
|
||||||
?.map((e) =>
|
?.map((e) =>
|
||||||
Fragment$dnsRecordFields.fromJson((e as Map<String, dynamic>)))
|
Fragment$fragmentDnsRecords.fromJson((e as Map<String, dynamic>)))
|
||||||
.toList(),
|
.toList(),
|
||||||
id: (l$id as String),
|
id: (l$id as String),
|
||||||
isEnabled: (l$isEnabled as bool),
|
isEnabled: (l$isEnabled as bool),
|
||||||
|
@ -2921,7 +2922,7 @@ class Query$AllServices$services$allServices {
|
||||||
|
|
||||||
final String displayName;
|
final String displayName;
|
||||||
|
|
||||||
final List<Fragment$dnsRecordFields>? dnsRecords;
|
final List<Fragment$fragmentDnsRecords>? dnsRecords;
|
||||||
|
|
||||||
final String id;
|
final String id;
|
||||||
|
|
||||||
|
@ -3106,7 +3107,7 @@ abstract class CopyWith$Query$AllServices$services$allServices<TRes> {
|
||||||
TRes call({
|
TRes call({
|
||||||
String? description,
|
String? description,
|
||||||
String? displayName,
|
String? displayName,
|
||||||
List<Fragment$dnsRecordFields>? dnsRecords,
|
List<Fragment$fragmentDnsRecords>? dnsRecords,
|
||||||
String? id,
|
String? id,
|
||||||
bool? isEnabled,
|
bool? isEnabled,
|
||||||
bool? isMovable,
|
bool? isMovable,
|
||||||
|
@ -3118,9 +3119,10 @@ abstract class CopyWith$Query$AllServices$services$allServices<TRes> {
|
||||||
String? $__typename,
|
String? $__typename,
|
||||||
});
|
});
|
||||||
TRes dnsRecords(
|
TRes dnsRecords(
|
||||||
Iterable<Fragment$dnsRecordFields>? Function(
|
Iterable<Fragment$fragmentDnsRecords>? Function(
|
||||||
Iterable<
|
Iterable<
|
||||||
CopyWith$Fragment$dnsRecordFields<Fragment$dnsRecordFields>>?)
|
CopyWith$Fragment$fragmentDnsRecords<
|
||||||
|
Fragment$fragmentDnsRecords>>?)
|
||||||
_fn);
|
_fn);
|
||||||
CopyWith$Query$AllServices$services$allServices$storageUsage<TRes>
|
CopyWith$Query$AllServices$services$allServices$storageUsage<TRes>
|
||||||
get storageUsage;
|
get storageUsage;
|
||||||
|
@ -3162,7 +3164,7 @@ class _CopyWithImpl$Query$AllServices$services$allServices<TRes>
|
||||||
: (displayName as String),
|
: (displayName as String),
|
||||||
dnsRecords: dnsRecords == _undefined
|
dnsRecords: dnsRecords == _undefined
|
||||||
? _instance.dnsRecords
|
? _instance.dnsRecords
|
||||||
: (dnsRecords as List<Fragment$dnsRecordFields>?),
|
: (dnsRecords as List<Fragment$fragmentDnsRecords>?),
|
||||||
id: id == _undefined || id == null ? _instance.id : (id as String),
|
id: id == _undefined || id == null ? _instance.id : (id as String),
|
||||||
isEnabled: isEnabled == _undefined || isEnabled == null
|
isEnabled: isEnabled == _undefined || isEnabled == null
|
||||||
? _instance.isEnabled
|
? _instance.isEnabled
|
||||||
|
@ -3189,14 +3191,14 @@ class _CopyWithImpl$Query$AllServices$services$allServices<TRes>
|
||||||
: ($__typename as String),
|
: ($__typename as String),
|
||||||
));
|
));
|
||||||
TRes dnsRecords(
|
TRes dnsRecords(
|
||||||
Iterable<Fragment$dnsRecordFields>? Function(
|
Iterable<Fragment$fragmentDnsRecords>? Function(
|
||||||
Iterable<
|
Iterable<
|
||||||
CopyWith$Fragment$dnsRecordFields<
|
CopyWith$Fragment$fragmentDnsRecords<
|
||||||
Fragment$dnsRecordFields>>?)
|
Fragment$fragmentDnsRecords>>?)
|
||||||
_fn) =>
|
_fn) =>
|
||||||
call(
|
call(
|
||||||
dnsRecords: _fn(_instance.dnsRecords
|
dnsRecords: _fn(_instance.dnsRecords
|
||||||
?.map((e) => CopyWith$Fragment$dnsRecordFields(
|
?.map((e) => CopyWith$Fragment$fragmentDnsRecords(
|
||||||
e,
|
e,
|
||||||
(i) => i,
|
(i) => i,
|
||||||
)))?.toList());
|
)))?.toList());
|
||||||
|
@ -3217,7 +3219,7 @@ class _CopyWithStubImpl$Query$AllServices$services$allServices<TRes>
|
||||||
call({
|
call({
|
||||||
String? description,
|
String? description,
|
||||||
String? displayName,
|
String? displayName,
|
||||||
List<Fragment$dnsRecordFields>? dnsRecords,
|
List<Fragment$fragmentDnsRecords>? dnsRecords,
|
||||||
String? id,
|
String? id,
|
||||||
bool? isEnabled,
|
bool? isEnabled,
|
||||||
bool? isMovable,
|
bool? isMovable,
|
||||||
|
|
|
@ -289,8 +289,10 @@ class ServerApi extends GraphQLApiMap
|
||||||
}
|
}
|
||||||
records = response.parsedData!.system.domainInfo.requiredDnsRecords
|
records = response.parsedData!.system.domainInfo.requiredDnsRecords
|
||||||
.map<DnsRecord>(
|
.map<DnsRecord>(
|
||||||
(final Fragment$dnsRecordFields fragment) =>
|
(
|
||||||
DnsRecord.fromGraphQL(fragment),
|
final Fragment$fragmentDnsRecords record,
|
||||||
|
) =>
|
||||||
|
DnsRecord.fromGraphQL(record),
|
||||||
)
|
)
|
||||||
.toList();
|
.toList();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import 'package:json_annotation/json_annotation.dart';
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
import 'package:selfprivacy/logic/api_maps/graphql_maps/schema/schema.graphql.dart';
|
import 'package:selfprivacy/logic/api_maps/graphql_maps/schema/server_settings.graphql.dart';
|
||||||
|
|
||||||
part 'dns_records.g.dart';
|
part 'dns_records.g.dart';
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ class DnsRecord {
|
||||||
});
|
});
|
||||||
|
|
||||||
DnsRecord.fromGraphQL(
|
DnsRecord.fromGraphQL(
|
||||||
final Fragment$dnsRecordFields record,
|
final Fragment$fragmentDnsRecords record,
|
||||||
) : this(
|
) : this(
|
||||||
type: record.recordType,
|
type: record.recordType,
|
||||||
name: record.name,
|
name: record.name,
|
||||||
|
|
|
@ -6,6 +6,8 @@ import 'package:selfprivacy/logic/api_maps/graphql_maps/schema/services.graphql.
|
||||||
import 'package:selfprivacy/logic/models/disk_size.dart';
|
import 'package:selfprivacy/logic/models/disk_size.dart';
|
||||||
import 'package:selfprivacy/logic/models/json/dns_records.dart';
|
import 'package:selfprivacy/logic/models/json/dns_records.dart';
|
||||||
|
|
||||||
|
import '../api_maps/graphql_maps/schema/server_settings.graphql.dart';
|
||||||
|
|
||||||
class Service {
|
class Service {
|
||||||
Service.fromGraphQL(final Query$AllServices$services$allServices service)
|
Service.fromGraphQL(final Query$AllServices$services$allServices service)
|
||||||
: this(
|
: this(
|
||||||
|
@ -24,7 +26,9 @@ class Service {
|
||||||
svgIcon: utf8.decode(base64.decode(service.svgIcon)),
|
svgIcon: utf8.decode(base64.decode(service.svgIcon)),
|
||||||
dnsRecords: service.dnsRecords
|
dnsRecords: service.dnsRecords
|
||||||
?.map(
|
?.map(
|
||||||
(final Fragment$dnsRecordFields record) =>
|
(
|
||||||
|
final Fragment$fragmentDnsRecords record,
|
||||||
|
) =>
|
||||||
DnsRecord.fromGraphQL(record),
|
DnsRecord.fromGraphQL(record),
|
||||||
)
|
)
|
||||||
.toList() ??
|
.toList() ??
|
||||||
|
|
Loading…
Reference in a new issue