mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
feat: update plugin configuration with more fields
This commit is contained in:
parent
2d6fe886e2
commit
69c0333327
File diff suppressed because one or more lines are too long
@ -4315,6 +4315,27 @@ class $MetadataPluginsTableTable extends MetadataPluginsTable
|
|||||||
late final GeneratedColumn<String> author = GeneratedColumn<String>(
|
late final GeneratedColumn<String> author = GeneratedColumn<String>(
|
||||||
'author', aliasedName, false,
|
'author', aliasedName, false,
|
||||||
type: DriftSqlType.string, requiredDuringInsert: true);
|
type: DriftSqlType.string, requiredDuringInsert: true);
|
||||||
|
static const VerificationMeta _entryPointMeta =
|
||||||
|
const VerificationMeta('entryPoint');
|
||||||
|
@override
|
||||||
|
late final GeneratedColumn<String> entryPoint = GeneratedColumn<String>(
|
||||||
|
'entry_point', aliasedName, false,
|
||||||
|
type: DriftSqlType.string, requiredDuringInsert: true);
|
||||||
|
static const VerificationMeta _apisMeta = const VerificationMeta('apis');
|
||||||
|
@override
|
||||||
|
late final GeneratedColumnWithTypeConverter<List<String>, String> apis =
|
||||||
|
GeneratedColumn<String>('apis', aliasedName, false,
|
||||||
|
type: DriftSqlType.string, requiredDuringInsert: true)
|
||||||
|
.withConverter<List<String>>(
|
||||||
|
$MetadataPluginsTableTable.$converterapis);
|
||||||
|
static const VerificationMeta _abilitiesMeta =
|
||||||
|
const VerificationMeta('abilities');
|
||||||
|
@override
|
||||||
|
late final GeneratedColumnWithTypeConverter<List<String>, String> abilities =
|
||||||
|
GeneratedColumn<String>('abilities', aliasedName, false,
|
||||||
|
type: DriftSqlType.string, requiredDuringInsert: true)
|
||||||
|
.withConverter<List<String>>(
|
||||||
|
$MetadataPluginsTableTable.$converterabilities);
|
||||||
static const VerificationMeta _selectedMeta =
|
static const VerificationMeta _selectedMeta =
|
||||||
const VerificationMeta('selected');
|
const VerificationMeta('selected');
|
||||||
@override
|
@override
|
||||||
@ -4326,8 +4347,17 @@ class $MetadataPluginsTableTable extends MetadataPluginsTable
|
|||||||
GeneratedColumn.constraintIsAlways('CHECK ("selected" IN (0, 1))'),
|
GeneratedColumn.constraintIsAlways('CHECK ("selected" IN (0, 1))'),
|
||||||
defaultValue: const Constant(false));
|
defaultValue: const Constant(false));
|
||||||
@override
|
@override
|
||||||
List<GeneratedColumn> get $columns =>
|
List<GeneratedColumn> get $columns => [
|
||||||
[id, name, description, version, author, selected];
|
id,
|
||||||
|
name,
|
||||||
|
description,
|
||||||
|
version,
|
||||||
|
author,
|
||||||
|
entryPoint,
|
||||||
|
apis,
|
||||||
|
abilities,
|
||||||
|
selected
|
||||||
|
];
|
||||||
@override
|
@override
|
||||||
String get aliasedName => _alias ?? actualTableName;
|
String get aliasedName => _alias ?? actualTableName;
|
||||||
@override
|
@override
|
||||||
@ -4368,6 +4398,16 @@ class $MetadataPluginsTableTable extends MetadataPluginsTable
|
|||||||
} else if (isInserting) {
|
} else if (isInserting) {
|
||||||
context.missing(_authorMeta);
|
context.missing(_authorMeta);
|
||||||
}
|
}
|
||||||
|
if (data.containsKey('entry_point')) {
|
||||||
|
context.handle(
|
||||||
|
_entryPointMeta,
|
||||||
|
entryPoint.isAcceptableOrUnknown(
|
||||||
|
data['entry_point']!, _entryPointMeta));
|
||||||
|
} else if (isInserting) {
|
||||||
|
context.missing(_entryPointMeta);
|
||||||
|
}
|
||||||
|
context.handle(_apisMeta, const VerificationResult.success());
|
||||||
|
context.handle(_abilitiesMeta, const VerificationResult.success());
|
||||||
if (data.containsKey('selected')) {
|
if (data.containsKey('selected')) {
|
||||||
context.handle(_selectedMeta,
|
context.handle(_selectedMeta,
|
||||||
selected.isAcceptableOrUnknown(data['selected']!, _selectedMeta));
|
selected.isAcceptableOrUnknown(data['selected']!, _selectedMeta));
|
||||||
@ -4392,6 +4432,14 @@ class $MetadataPluginsTableTable extends MetadataPluginsTable
|
|||||||
.read(DriftSqlType.string, data['${effectivePrefix}version'])!,
|
.read(DriftSqlType.string, data['${effectivePrefix}version'])!,
|
||||||
author: attachedDatabase.typeMapping
|
author: attachedDatabase.typeMapping
|
||||||
.read(DriftSqlType.string, data['${effectivePrefix}author'])!,
|
.read(DriftSqlType.string, data['${effectivePrefix}author'])!,
|
||||||
|
entryPoint: attachedDatabase.typeMapping
|
||||||
|
.read(DriftSqlType.string, data['${effectivePrefix}entry_point'])!,
|
||||||
|
apis: $MetadataPluginsTableTable.$converterapis.fromSql(attachedDatabase
|
||||||
|
.typeMapping
|
||||||
|
.read(DriftSqlType.string, data['${effectivePrefix}apis'])!),
|
||||||
|
abilities: $MetadataPluginsTableTable.$converterabilities.fromSql(
|
||||||
|
attachedDatabase.typeMapping
|
||||||
|
.read(DriftSqlType.string, data['${effectivePrefix}abilities'])!),
|
||||||
selected: attachedDatabase.typeMapping
|
selected: attachedDatabase.typeMapping
|
||||||
.read(DriftSqlType.bool, data['${effectivePrefix}selected'])!,
|
.read(DriftSqlType.bool, data['${effectivePrefix}selected'])!,
|
||||||
);
|
);
|
||||||
@ -4401,6 +4449,11 @@ class $MetadataPluginsTableTable extends MetadataPluginsTable
|
|||||||
$MetadataPluginsTableTable createAlias(String alias) {
|
$MetadataPluginsTableTable createAlias(String alias) {
|
||||||
return $MetadataPluginsTableTable(attachedDatabase, alias);
|
return $MetadataPluginsTableTable(attachedDatabase, alias);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static TypeConverter<List<String>, String> $converterapis =
|
||||||
|
const StringListConverter();
|
||||||
|
static TypeConverter<List<String>, String> $converterabilities =
|
||||||
|
const StringListConverter();
|
||||||
}
|
}
|
||||||
|
|
||||||
class MetadataPluginsTableData extends DataClass
|
class MetadataPluginsTableData extends DataClass
|
||||||
@ -4410,6 +4463,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
final String description;
|
final String description;
|
||||||
final String version;
|
final String version;
|
||||||
final String author;
|
final String author;
|
||||||
|
final String entryPoint;
|
||||||
|
final List<String> apis;
|
||||||
|
final List<String> abilities;
|
||||||
final bool selected;
|
final bool selected;
|
||||||
const MetadataPluginsTableData(
|
const MetadataPluginsTableData(
|
||||||
{required this.id,
|
{required this.id,
|
||||||
@ -4417,6 +4473,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
required this.description,
|
required this.description,
|
||||||
required this.version,
|
required this.version,
|
||||||
required this.author,
|
required this.author,
|
||||||
|
required this.entryPoint,
|
||||||
|
required this.apis,
|
||||||
|
required this.abilities,
|
||||||
required this.selected});
|
required this.selected});
|
||||||
@override
|
@override
|
||||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||||
@ -4426,6 +4485,15 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
map['description'] = Variable<String>(description);
|
map['description'] = Variable<String>(description);
|
||||||
map['version'] = Variable<String>(version);
|
map['version'] = Variable<String>(version);
|
||||||
map['author'] = Variable<String>(author);
|
map['author'] = Variable<String>(author);
|
||||||
|
map['entry_point'] = Variable<String>(entryPoint);
|
||||||
|
{
|
||||||
|
map['apis'] = Variable<String>(
|
||||||
|
$MetadataPluginsTableTable.$converterapis.toSql(apis));
|
||||||
|
}
|
||||||
|
{
|
||||||
|
map['abilities'] = Variable<String>(
|
||||||
|
$MetadataPluginsTableTable.$converterabilities.toSql(abilities));
|
||||||
|
}
|
||||||
map['selected'] = Variable<bool>(selected);
|
map['selected'] = Variable<bool>(selected);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
@ -4437,6 +4505,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
description: Value(description),
|
description: Value(description),
|
||||||
version: Value(version),
|
version: Value(version),
|
||||||
author: Value(author),
|
author: Value(author),
|
||||||
|
entryPoint: Value(entryPoint),
|
||||||
|
apis: Value(apis),
|
||||||
|
abilities: Value(abilities),
|
||||||
selected: Value(selected),
|
selected: Value(selected),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -4450,6 +4521,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
description: serializer.fromJson<String>(json['description']),
|
description: serializer.fromJson<String>(json['description']),
|
||||||
version: serializer.fromJson<String>(json['version']),
|
version: serializer.fromJson<String>(json['version']),
|
||||||
author: serializer.fromJson<String>(json['author']),
|
author: serializer.fromJson<String>(json['author']),
|
||||||
|
entryPoint: serializer.fromJson<String>(json['entryPoint']),
|
||||||
|
apis: serializer.fromJson<List<String>>(json['apis']),
|
||||||
|
abilities: serializer.fromJson<List<String>>(json['abilities']),
|
||||||
selected: serializer.fromJson<bool>(json['selected']),
|
selected: serializer.fromJson<bool>(json['selected']),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -4462,6 +4536,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
'description': serializer.toJson<String>(description),
|
'description': serializer.toJson<String>(description),
|
||||||
'version': serializer.toJson<String>(version),
|
'version': serializer.toJson<String>(version),
|
||||||
'author': serializer.toJson<String>(author),
|
'author': serializer.toJson<String>(author),
|
||||||
|
'entryPoint': serializer.toJson<String>(entryPoint),
|
||||||
|
'apis': serializer.toJson<List<String>>(apis),
|
||||||
|
'abilities': serializer.toJson<List<String>>(abilities),
|
||||||
'selected': serializer.toJson<bool>(selected),
|
'selected': serializer.toJson<bool>(selected),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -4472,6 +4549,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
String? description,
|
String? description,
|
||||||
String? version,
|
String? version,
|
||||||
String? author,
|
String? author,
|
||||||
|
String? entryPoint,
|
||||||
|
List<String>? apis,
|
||||||
|
List<String>? abilities,
|
||||||
bool? selected}) =>
|
bool? selected}) =>
|
||||||
MetadataPluginsTableData(
|
MetadataPluginsTableData(
|
||||||
id: id ?? this.id,
|
id: id ?? this.id,
|
||||||
@ -4479,6 +4559,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
description: description ?? this.description,
|
description: description ?? this.description,
|
||||||
version: version ?? this.version,
|
version: version ?? this.version,
|
||||||
author: author ?? this.author,
|
author: author ?? this.author,
|
||||||
|
entryPoint: entryPoint ?? this.entryPoint,
|
||||||
|
apis: apis ?? this.apis,
|
||||||
|
abilities: abilities ?? this.abilities,
|
||||||
selected: selected ?? this.selected,
|
selected: selected ?? this.selected,
|
||||||
);
|
);
|
||||||
MetadataPluginsTableData copyWithCompanion(
|
MetadataPluginsTableData copyWithCompanion(
|
||||||
@ -4490,6 +4573,10 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
data.description.present ? data.description.value : this.description,
|
data.description.present ? data.description.value : this.description,
|
||||||
version: data.version.present ? data.version.value : this.version,
|
version: data.version.present ? data.version.value : this.version,
|
||||||
author: data.author.present ? data.author.value : this.author,
|
author: data.author.present ? data.author.value : this.author,
|
||||||
|
entryPoint:
|
||||||
|
data.entryPoint.present ? data.entryPoint.value : this.entryPoint,
|
||||||
|
apis: data.apis.present ? data.apis.value : this.apis,
|
||||||
|
abilities: data.abilities.present ? data.abilities.value : this.abilities,
|
||||||
selected: data.selected.present ? data.selected.value : this.selected,
|
selected: data.selected.present ? data.selected.value : this.selected,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -4502,14 +4589,17 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
..write('description: $description, ')
|
..write('description: $description, ')
|
||||||
..write('version: $version, ')
|
..write('version: $version, ')
|
||||||
..write('author: $author, ')
|
..write('author: $author, ')
|
||||||
|
..write('entryPoint: $entryPoint, ')
|
||||||
|
..write('apis: $apis, ')
|
||||||
|
..write('abilities: $abilities, ')
|
||||||
..write('selected: $selected')
|
..write('selected: $selected')
|
||||||
..write(')'))
|
..write(')'))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode => Object.hash(id, name, description, version, author,
|
||||||
Object.hash(id, name, description, version, author, selected);
|
entryPoint, apis, abilities, selected);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) =>
|
bool operator ==(Object other) =>
|
||||||
identical(this, other) ||
|
identical(this, other) ||
|
||||||
@ -4519,6 +4609,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
other.description == this.description &&
|
other.description == this.description &&
|
||||||
other.version == this.version &&
|
other.version == this.version &&
|
||||||
other.author == this.author &&
|
other.author == this.author &&
|
||||||
|
other.entryPoint == this.entryPoint &&
|
||||||
|
other.apis == this.apis &&
|
||||||
|
other.abilities == this.abilities &&
|
||||||
other.selected == this.selected);
|
other.selected == this.selected);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4529,6 +4622,9 @@ class MetadataPluginsTableCompanion
|
|||||||
final Value<String> description;
|
final Value<String> description;
|
||||||
final Value<String> version;
|
final Value<String> version;
|
||||||
final Value<String> author;
|
final Value<String> author;
|
||||||
|
final Value<String> entryPoint;
|
||||||
|
final Value<List<String>> apis;
|
||||||
|
final Value<List<String>> abilities;
|
||||||
final Value<bool> selected;
|
final Value<bool> selected;
|
||||||
const MetadataPluginsTableCompanion({
|
const MetadataPluginsTableCompanion({
|
||||||
this.id = const Value.absent(),
|
this.id = const Value.absent(),
|
||||||
@ -4536,6 +4632,9 @@ class MetadataPluginsTableCompanion
|
|||||||
this.description = const Value.absent(),
|
this.description = const Value.absent(),
|
||||||
this.version = const Value.absent(),
|
this.version = const Value.absent(),
|
||||||
this.author = const Value.absent(),
|
this.author = const Value.absent(),
|
||||||
|
this.entryPoint = const Value.absent(),
|
||||||
|
this.apis = const Value.absent(),
|
||||||
|
this.abilities = const Value.absent(),
|
||||||
this.selected = const Value.absent(),
|
this.selected = const Value.absent(),
|
||||||
});
|
});
|
||||||
MetadataPluginsTableCompanion.insert({
|
MetadataPluginsTableCompanion.insert({
|
||||||
@ -4544,17 +4643,26 @@ class MetadataPluginsTableCompanion
|
|||||||
required String description,
|
required String description,
|
||||||
required String version,
|
required String version,
|
||||||
required String author,
|
required String author,
|
||||||
|
required String entryPoint,
|
||||||
|
required List<String> apis,
|
||||||
|
required List<String> abilities,
|
||||||
this.selected = const Value.absent(),
|
this.selected = const Value.absent(),
|
||||||
}) : name = Value(name),
|
}) : name = Value(name),
|
||||||
description = Value(description),
|
description = Value(description),
|
||||||
version = Value(version),
|
version = Value(version),
|
||||||
author = Value(author);
|
author = Value(author),
|
||||||
|
entryPoint = Value(entryPoint),
|
||||||
|
apis = Value(apis),
|
||||||
|
abilities = Value(abilities);
|
||||||
static Insertable<MetadataPluginsTableData> custom({
|
static Insertable<MetadataPluginsTableData> custom({
|
||||||
Expression<int>? id,
|
Expression<int>? id,
|
||||||
Expression<String>? name,
|
Expression<String>? name,
|
||||||
Expression<String>? description,
|
Expression<String>? description,
|
||||||
Expression<String>? version,
|
Expression<String>? version,
|
||||||
Expression<String>? author,
|
Expression<String>? author,
|
||||||
|
Expression<String>? entryPoint,
|
||||||
|
Expression<String>? apis,
|
||||||
|
Expression<String>? abilities,
|
||||||
Expression<bool>? selected,
|
Expression<bool>? selected,
|
||||||
}) {
|
}) {
|
||||||
return RawValuesInsertable({
|
return RawValuesInsertable({
|
||||||
@ -4563,6 +4671,9 @@ class MetadataPluginsTableCompanion
|
|||||||
if (description != null) 'description': description,
|
if (description != null) 'description': description,
|
||||||
if (version != null) 'version': version,
|
if (version != null) 'version': version,
|
||||||
if (author != null) 'author': author,
|
if (author != null) 'author': author,
|
||||||
|
if (entryPoint != null) 'entry_point': entryPoint,
|
||||||
|
if (apis != null) 'apis': apis,
|
||||||
|
if (abilities != null) 'abilities': abilities,
|
||||||
if (selected != null) 'selected': selected,
|
if (selected != null) 'selected': selected,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -4573,6 +4684,9 @@ class MetadataPluginsTableCompanion
|
|||||||
Value<String>? description,
|
Value<String>? description,
|
||||||
Value<String>? version,
|
Value<String>? version,
|
||||||
Value<String>? author,
|
Value<String>? author,
|
||||||
|
Value<String>? entryPoint,
|
||||||
|
Value<List<String>>? apis,
|
||||||
|
Value<List<String>>? abilities,
|
||||||
Value<bool>? selected}) {
|
Value<bool>? selected}) {
|
||||||
return MetadataPluginsTableCompanion(
|
return MetadataPluginsTableCompanion(
|
||||||
id: id ?? this.id,
|
id: id ?? this.id,
|
||||||
@ -4580,6 +4694,9 @@ class MetadataPluginsTableCompanion
|
|||||||
description: description ?? this.description,
|
description: description ?? this.description,
|
||||||
version: version ?? this.version,
|
version: version ?? this.version,
|
||||||
author: author ?? this.author,
|
author: author ?? this.author,
|
||||||
|
entryPoint: entryPoint ?? this.entryPoint,
|
||||||
|
apis: apis ?? this.apis,
|
||||||
|
abilities: abilities ?? this.abilities,
|
||||||
selected: selected ?? this.selected,
|
selected: selected ?? this.selected,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -4602,6 +4719,18 @@ class MetadataPluginsTableCompanion
|
|||||||
if (author.present) {
|
if (author.present) {
|
||||||
map['author'] = Variable<String>(author.value);
|
map['author'] = Variable<String>(author.value);
|
||||||
}
|
}
|
||||||
|
if (entryPoint.present) {
|
||||||
|
map['entry_point'] = Variable<String>(entryPoint.value);
|
||||||
|
}
|
||||||
|
if (apis.present) {
|
||||||
|
map['apis'] = Variable<String>(
|
||||||
|
$MetadataPluginsTableTable.$converterapis.toSql(apis.value));
|
||||||
|
}
|
||||||
|
if (abilities.present) {
|
||||||
|
map['abilities'] = Variable<String>($MetadataPluginsTableTable
|
||||||
|
.$converterabilities
|
||||||
|
.toSql(abilities.value));
|
||||||
|
}
|
||||||
if (selected.present) {
|
if (selected.present) {
|
||||||
map['selected'] = Variable<bool>(selected.value);
|
map['selected'] = Variable<bool>(selected.value);
|
||||||
}
|
}
|
||||||
@ -4616,6 +4745,9 @@ class MetadataPluginsTableCompanion
|
|||||||
..write('description: $description, ')
|
..write('description: $description, ')
|
||||||
..write('version: $version, ')
|
..write('version: $version, ')
|
||||||
..write('author: $author, ')
|
..write('author: $author, ')
|
||||||
|
..write('entryPoint: $entryPoint, ')
|
||||||
|
..write('apis: $apis, ')
|
||||||
|
..write('abilities: $abilities, ')
|
||||||
..write('selected: $selected')
|
..write('selected: $selected')
|
||||||
..write(')'))
|
..write(')'))
|
||||||
.toString();
|
.toString();
|
||||||
@ -7266,6 +7398,9 @@ typedef $$MetadataPluginsTableTableCreateCompanionBuilder
|
|||||||
required String description,
|
required String description,
|
||||||
required String version,
|
required String version,
|
||||||
required String author,
|
required String author,
|
||||||
|
required String entryPoint,
|
||||||
|
required List<String> apis,
|
||||||
|
required List<String> abilities,
|
||||||
Value<bool> selected,
|
Value<bool> selected,
|
||||||
});
|
});
|
||||||
typedef $$MetadataPluginsTableTableUpdateCompanionBuilder
|
typedef $$MetadataPluginsTableTableUpdateCompanionBuilder
|
||||||
@ -7275,6 +7410,9 @@ typedef $$MetadataPluginsTableTableUpdateCompanionBuilder
|
|||||||
Value<String> description,
|
Value<String> description,
|
||||||
Value<String> version,
|
Value<String> version,
|
||||||
Value<String> author,
|
Value<String> author,
|
||||||
|
Value<String> entryPoint,
|
||||||
|
Value<List<String>> apis,
|
||||||
|
Value<List<String>> abilities,
|
||||||
Value<bool> selected,
|
Value<bool> selected,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -7302,6 +7440,19 @@ class $$MetadataPluginsTableTableFilterComposer
|
|||||||
ColumnFilters<String> get author => $composableBuilder(
|
ColumnFilters<String> get author => $composableBuilder(
|
||||||
column: $table.author, builder: (column) => ColumnFilters(column));
|
column: $table.author, builder: (column) => ColumnFilters(column));
|
||||||
|
|
||||||
|
ColumnFilters<String> get entryPoint => $composableBuilder(
|
||||||
|
column: $table.entryPoint, builder: (column) => ColumnFilters(column));
|
||||||
|
|
||||||
|
ColumnWithTypeConverterFilters<List<String>, List<String>, String> get apis =>
|
||||||
|
$composableBuilder(
|
||||||
|
column: $table.apis,
|
||||||
|
builder: (column) => ColumnWithTypeConverterFilters(column));
|
||||||
|
|
||||||
|
ColumnWithTypeConverterFilters<List<String>, List<String>, String>
|
||||||
|
get abilities => $composableBuilder(
|
||||||
|
column: $table.abilities,
|
||||||
|
builder: (column) => ColumnWithTypeConverterFilters(column));
|
||||||
|
|
||||||
ColumnFilters<bool> get selected => $composableBuilder(
|
ColumnFilters<bool> get selected => $composableBuilder(
|
||||||
column: $table.selected, builder: (column) => ColumnFilters(column));
|
column: $table.selected, builder: (column) => ColumnFilters(column));
|
||||||
}
|
}
|
||||||
@ -7330,6 +7481,15 @@ class $$MetadataPluginsTableTableOrderingComposer
|
|||||||
ColumnOrderings<String> get author => $composableBuilder(
|
ColumnOrderings<String> get author => $composableBuilder(
|
||||||
column: $table.author, builder: (column) => ColumnOrderings(column));
|
column: $table.author, builder: (column) => ColumnOrderings(column));
|
||||||
|
|
||||||
|
ColumnOrderings<String> get entryPoint => $composableBuilder(
|
||||||
|
column: $table.entryPoint, builder: (column) => ColumnOrderings(column));
|
||||||
|
|
||||||
|
ColumnOrderings<String> get apis => $composableBuilder(
|
||||||
|
column: $table.apis, builder: (column) => ColumnOrderings(column));
|
||||||
|
|
||||||
|
ColumnOrderings<String> get abilities => $composableBuilder(
|
||||||
|
column: $table.abilities, builder: (column) => ColumnOrderings(column));
|
||||||
|
|
||||||
ColumnOrderings<bool> get selected => $composableBuilder(
|
ColumnOrderings<bool> get selected => $composableBuilder(
|
||||||
column: $table.selected, builder: (column) => ColumnOrderings(column));
|
column: $table.selected, builder: (column) => ColumnOrderings(column));
|
||||||
}
|
}
|
||||||
@ -7358,6 +7518,15 @@ class $$MetadataPluginsTableTableAnnotationComposer
|
|||||||
GeneratedColumn<String> get author =>
|
GeneratedColumn<String> get author =>
|
||||||
$composableBuilder(column: $table.author, builder: (column) => column);
|
$composableBuilder(column: $table.author, builder: (column) => column);
|
||||||
|
|
||||||
|
GeneratedColumn<String> get entryPoint => $composableBuilder(
|
||||||
|
column: $table.entryPoint, builder: (column) => column);
|
||||||
|
|
||||||
|
GeneratedColumnWithTypeConverter<List<String>, String> get apis =>
|
||||||
|
$composableBuilder(column: $table.apis, builder: (column) => column);
|
||||||
|
|
||||||
|
GeneratedColumnWithTypeConverter<List<String>, String> get abilities =>
|
||||||
|
$composableBuilder(column: $table.abilities, builder: (column) => column);
|
||||||
|
|
||||||
GeneratedColumn<bool> get selected =>
|
GeneratedColumn<bool> get selected =>
|
||||||
$composableBuilder(column: $table.selected, builder: (column) => column);
|
$composableBuilder(column: $table.selected, builder: (column) => column);
|
||||||
}
|
}
|
||||||
@ -7397,6 +7566,9 @@ class $$MetadataPluginsTableTableTableManager extends RootTableManager<
|
|||||||
Value<String> description = const Value.absent(),
|
Value<String> description = const Value.absent(),
|
||||||
Value<String> version = const Value.absent(),
|
Value<String> version = const Value.absent(),
|
||||||
Value<String> author = const Value.absent(),
|
Value<String> author = const Value.absent(),
|
||||||
|
Value<String> entryPoint = const Value.absent(),
|
||||||
|
Value<List<String>> apis = const Value.absent(),
|
||||||
|
Value<List<String>> abilities = const Value.absent(),
|
||||||
Value<bool> selected = const Value.absent(),
|
Value<bool> selected = const Value.absent(),
|
||||||
}) =>
|
}) =>
|
||||||
MetadataPluginsTableCompanion(
|
MetadataPluginsTableCompanion(
|
||||||
@ -7405,6 +7577,9 @@ class $$MetadataPluginsTableTableTableManager extends RootTableManager<
|
|||||||
description: description,
|
description: description,
|
||||||
version: version,
|
version: version,
|
||||||
author: author,
|
author: author,
|
||||||
|
entryPoint: entryPoint,
|
||||||
|
apis: apis,
|
||||||
|
abilities: abilities,
|
||||||
selected: selected,
|
selected: selected,
|
||||||
),
|
),
|
||||||
createCompanionCallback: ({
|
createCompanionCallback: ({
|
||||||
@ -7413,6 +7588,9 @@ class $$MetadataPluginsTableTableTableManager extends RootTableManager<
|
|||||||
required String description,
|
required String description,
|
||||||
required String version,
|
required String version,
|
||||||
required String author,
|
required String author,
|
||||||
|
required String entryPoint,
|
||||||
|
required List<String> apis,
|
||||||
|
required List<String> abilities,
|
||||||
Value<bool> selected = const Value.absent(),
|
Value<bool> selected = const Value.absent(),
|
||||||
}) =>
|
}) =>
|
||||||
MetadataPluginsTableCompanion.insert(
|
MetadataPluginsTableCompanion.insert(
|
||||||
@ -7421,6 +7599,9 @@ class $$MetadataPluginsTableTableTableManager extends RootTableManager<
|
|||||||
description: description,
|
description: description,
|
||||||
version: version,
|
version: version,
|
||||||
author: author,
|
author: author,
|
||||||
|
entryPoint: entryPoint,
|
||||||
|
apis: apis,
|
||||||
|
abilities: abilities,
|
||||||
selected: selected,
|
selected: selected,
|
||||||
),
|
),
|
||||||
withReferenceMapper: (p0) => p0
|
withReferenceMapper: (p0) => p0
|
||||||
|
@ -1918,6 +1918,9 @@ final class Schema7 extends i0.VersionedSchema {
|
|||||||
_column_59,
|
_column_59,
|
||||||
_column_60,
|
_column_60,
|
||||||
_column_61,
|
_column_61,
|
||||||
|
_column_62,
|
||||||
|
_column_63,
|
||||||
|
_column_64,
|
||||||
],
|
],
|
||||||
attachedDatabase: database,
|
attachedDatabase: database,
|
||||||
),
|
),
|
||||||
@ -1940,6 +1943,12 @@ class Shape14 extends i0.VersionedTable {
|
|||||||
columnsByName['version']! as i1.GeneratedColumn<String>;
|
columnsByName['version']! as i1.GeneratedColumn<String>;
|
||||||
i1.GeneratedColumn<String> get author =>
|
i1.GeneratedColumn<String> get author =>
|
||||||
columnsByName['author']! as i1.GeneratedColumn<String>;
|
columnsByName['author']! as i1.GeneratedColumn<String>;
|
||||||
|
i1.GeneratedColumn<String> get entryPoint =>
|
||||||
|
columnsByName['entry_point']! as i1.GeneratedColumn<String>;
|
||||||
|
i1.GeneratedColumn<String> get apis =>
|
||||||
|
columnsByName['apis']! as i1.GeneratedColumn<String>;
|
||||||
|
i1.GeneratedColumn<String> get abilities =>
|
||||||
|
columnsByName['abilities']! as i1.GeneratedColumn<String>;
|
||||||
i1.GeneratedColumn<bool> get selected =>
|
i1.GeneratedColumn<bool> get selected =>
|
||||||
columnsByName['selected']! as i1.GeneratedColumn<bool>;
|
columnsByName['selected']! as i1.GeneratedColumn<bool>;
|
||||||
}
|
}
|
||||||
@ -1958,7 +1967,16 @@ i1.GeneratedColumn<String> _column_59(String aliasedName) =>
|
|||||||
i1.GeneratedColumn<String> _column_60(String aliasedName) =>
|
i1.GeneratedColumn<String> _column_60(String aliasedName) =>
|
||||||
i1.GeneratedColumn<String>('author', aliasedName, false,
|
i1.GeneratedColumn<String>('author', aliasedName, false,
|
||||||
type: i1.DriftSqlType.string);
|
type: i1.DriftSqlType.string);
|
||||||
i1.GeneratedColumn<bool> _column_61(String aliasedName) =>
|
i1.GeneratedColumn<String> _column_61(String aliasedName) =>
|
||||||
|
i1.GeneratedColumn<String>('entry_point', aliasedName, false,
|
||||||
|
type: i1.DriftSqlType.string);
|
||||||
|
i1.GeneratedColumn<String> _column_62(String aliasedName) =>
|
||||||
|
i1.GeneratedColumn<String>('apis', aliasedName, false,
|
||||||
|
type: i1.DriftSqlType.string);
|
||||||
|
i1.GeneratedColumn<String> _column_63(String aliasedName) =>
|
||||||
|
i1.GeneratedColumn<String>('abilities', aliasedName, false,
|
||||||
|
type: i1.DriftSqlType.string);
|
||||||
|
i1.GeneratedColumn<bool> _column_64(String aliasedName) =>
|
||||||
i1.GeneratedColumn<bool>('selected', aliasedName, false,
|
i1.GeneratedColumn<bool>('selected', aliasedName, false,
|
||||||
type: i1.DriftSqlType.bool,
|
type: i1.DriftSqlType.bool,
|
||||||
defaultConstraints: i1.GeneratedColumn.constraintIsAlways(
|
defaultConstraints: i1.GeneratedColumn.constraintIsAlways(
|
||||||
|
@ -6,5 +6,8 @@ class MetadataPluginsTable extends Table {
|
|||||||
TextColumn get description => text()();
|
TextColumn get description => text()();
|
||||||
TextColumn get version => text()();
|
TextColumn get version => text()();
|
||||||
TextColumn get author => text()();
|
TextColumn get author => text()();
|
||||||
|
TextColumn get entryPoint => text()();
|
||||||
|
TextColumn get apis => text().map(const StringListConverter())();
|
||||||
|
TextColumn get abilities => text().map(const StringListConverter())();
|
||||||
BoolColumn get selected => boolean().withDefault(const Constant(false))();
|
BoolColumn get selected => boolean().withDefault(const Constant(false))();
|
||||||
}
|
}
|
||||||
|
@ -2442,6 +2442,9 @@ mixin _$PluginConfiguration {
|
|||||||
String get description => throw _privateConstructorUsedError;
|
String get description => throw _privateConstructorUsedError;
|
||||||
String get version => throw _privateConstructorUsedError;
|
String get version => throw _privateConstructorUsedError;
|
||||||
String get author => throw _privateConstructorUsedError;
|
String get author => throw _privateConstructorUsedError;
|
||||||
|
String get entryPoint => throw _privateConstructorUsedError;
|
||||||
|
List<PluginApis> get apis => throw _privateConstructorUsedError;
|
||||||
|
List<PluginAbilities> get abilities => throw _privateConstructorUsedError;
|
||||||
|
|
||||||
/// Serializes this PluginConfiguration to a JSON map.
|
/// Serializes this PluginConfiguration to a JSON map.
|
||||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||||
@ -2464,7 +2467,10 @@ abstract class $PluginConfigurationCopyWith<$Res> {
|
|||||||
String name,
|
String name,
|
||||||
String description,
|
String description,
|
||||||
String version,
|
String version,
|
||||||
String author});
|
String author,
|
||||||
|
String entryPoint,
|
||||||
|
List<PluginApis> apis,
|
||||||
|
List<PluginAbilities> abilities});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @nodoc
|
/// @nodoc
|
||||||
@ -2487,6 +2493,9 @@ class _$PluginConfigurationCopyWithImpl<$Res, $Val extends PluginConfiguration>
|
|||||||
Object? description = null,
|
Object? description = null,
|
||||||
Object? version = null,
|
Object? version = null,
|
||||||
Object? author = null,
|
Object? author = null,
|
||||||
|
Object? entryPoint = null,
|
||||||
|
Object? apis = null,
|
||||||
|
Object? abilities = null,
|
||||||
}) {
|
}) {
|
||||||
return _then(_value.copyWith(
|
return _then(_value.copyWith(
|
||||||
type: null == type
|
type: null == type
|
||||||
@ -2509,6 +2518,18 @@ class _$PluginConfigurationCopyWithImpl<$Res, $Val extends PluginConfiguration>
|
|||||||
? _value.author
|
? _value.author
|
||||||
: author // ignore: cast_nullable_to_non_nullable
|
: author // ignore: cast_nullable_to_non_nullable
|
||||||
as String,
|
as String,
|
||||||
|
entryPoint: null == entryPoint
|
||||||
|
? _value.entryPoint
|
||||||
|
: entryPoint // ignore: cast_nullable_to_non_nullable
|
||||||
|
as String,
|
||||||
|
apis: null == apis
|
||||||
|
? _value.apis
|
||||||
|
: apis // ignore: cast_nullable_to_non_nullable
|
||||||
|
as List<PluginApis>,
|
||||||
|
abilities: null == abilities
|
||||||
|
? _value.abilities
|
||||||
|
: abilities // ignore: cast_nullable_to_non_nullable
|
||||||
|
as List<PluginAbilities>,
|
||||||
) as $Val);
|
) as $Val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2526,7 +2547,10 @@ abstract class _$$PluginConfigurationImplCopyWith<$Res>
|
|||||||
String name,
|
String name,
|
||||||
String description,
|
String description,
|
||||||
String version,
|
String version,
|
||||||
String author});
|
String author,
|
||||||
|
String entryPoint,
|
||||||
|
List<PluginApis> apis,
|
||||||
|
List<PluginAbilities> abilities});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @nodoc
|
/// @nodoc
|
||||||
@ -2547,6 +2571,9 @@ class __$$PluginConfigurationImplCopyWithImpl<$Res>
|
|||||||
Object? description = null,
|
Object? description = null,
|
||||||
Object? version = null,
|
Object? version = null,
|
||||||
Object? author = null,
|
Object? author = null,
|
||||||
|
Object? entryPoint = null,
|
||||||
|
Object? apis = null,
|
||||||
|
Object? abilities = null,
|
||||||
}) {
|
}) {
|
||||||
return _then(_$PluginConfigurationImpl(
|
return _then(_$PluginConfigurationImpl(
|
||||||
type: null == type
|
type: null == type
|
||||||
@ -2569,6 +2596,18 @@ class __$$PluginConfigurationImplCopyWithImpl<$Res>
|
|||||||
? _value.author
|
? _value.author
|
||||||
: author // ignore: cast_nullable_to_non_nullable
|
: author // ignore: cast_nullable_to_non_nullable
|
||||||
as String,
|
as String,
|
||||||
|
entryPoint: null == entryPoint
|
||||||
|
? _value.entryPoint
|
||||||
|
: entryPoint // ignore: cast_nullable_to_non_nullable
|
||||||
|
as String,
|
||||||
|
apis: null == apis
|
||||||
|
? _value._apis
|
||||||
|
: apis // ignore: cast_nullable_to_non_nullable
|
||||||
|
as List<PluginApis>,
|
||||||
|
abilities: null == abilities
|
||||||
|
? _value._abilities
|
||||||
|
: abilities // ignore: cast_nullable_to_non_nullable
|
||||||
|
as List<PluginAbilities>,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2581,8 +2620,13 @@ class _$PluginConfigurationImpl extends _PluginConfiguration {
|
|||||||
required this.name,
|
required this.name,
|
||||||
required this.description,
|
required this.description,
|
||||||
required this.version,
|
required this.version,
|
||||||
required this.author})
|
required this.author,
|
||||||
: super._();
|
required this.entryPoint,
|
||||||
|
final List<PluginApis> apis = const [],
|
||||||
|
final List<PluginAbilities> abilities = const []})
|
||||||
|
: _apis = apis,
|
||||||
|
_abilities = abilities,
|
||||||
|
super._();
|
||||||
|
|
||||||
factory _$PluginConfigurationImpl.fromJson(Map<String, dynamic> json) =>
|
factory _$PluginConfigurationImpl.fromJson(Map<String, dynamic> json) =>
|
||||||
_$$PluginConfigurationImplFromJson(json);
|
_$$PluginConfigurationImplFromJson(json);
|
||||||
@ -2597,10 +2641,29 @@ class _$PluginConfigurationImpl extends _PluginConfiguration {
|
|||||||
final String version;
|
final String version;
|
||||||
@override
|
@override
|
||||||
final String author;
|
final String author;
|
||||||
|
@override
|
||||||
|
final String entryPoint;
|
||||||
|
final List<PluginApis> _apis;
|
||||||
|
@override
|
||||||
|
@JsonKey()
|
||||||
|
List<PluginApis> get apis {
|
||||||
|
if (_apis is EqualUnmodifiableListView) return _apis;
|
||||||
|
// ignore: implicit_dynamic_type
|
||||||
|
return EqualUnmodifiableListView(_apis);
|
||||||
|
}
|
||||||
|
|
||||||
|
final List<PluginAbilities> _abilities;
|
||||||
|
@override
|
||||||
|
@JsonKey()
|
||||||
|
List<PluginAbilities> get abilities {
|
||||||
|
if (_abilities is EqualUnmodifiableListView) return _abilities;
|
||||||
|
// ignore: implicit_dynamic_type
|
||||||
|
return EqualUnmodifiableListView(_abilities);
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
return 'PluginConfiguration(type: $type, name: $name, description: $description, version: $version, author: $author)';
|
return 'PluginConfiguration(type: $type, name: $name, description: $description, version: $version, author: $author, entryPoint: $entryPoint, apis: $apis, abilities: $abilities)';
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -2613,13 +2676,26 @@ class _$PluginConfigurationImpl extends _PluginConfiguration {
|
|||||||
(identical(other.description, description) ||
|
(identical(other.description, description) ||
|
||||||
other.description == description) &&
|
other.description == description) &&
|
||||||
(identical(other.version, version) || other.version == version) &&
|
(identical(other.version, version) || other.version == version) &&
|
||||||
(identical(other.author, author) || other.author == author));
|
(identical(other.author, author) || other.author == author) &&
|
||||||
|
(identical(other.entryPoint, entryPoint) ||
|
||||||
|
other.entryPoint == entryPoint) &&
|
||||||
|
const DeepCollectionEquality().equals(other._apis, _apis) &&
|
||||||
|
const DeepCollectionEquality()
|
||||||
|
.equals(other._abilities, _abilities));
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode => Object.hash(
|
||||||
Object.hash(runtimeType, type, name, description, version, author);
|
runtimeType,
|
||||||
|
type,
|
||||||
|
name,
|
||||||
|
description,
|
||||||
|
version,
|
||||||
|
author,
|
||||||
|
entryPoint,
|
||||||
|
const DeepCollectionEquality().hash(_apis),
|
||||||
|
const DeepCollectionEquality().hash(_abilities));
|
||||||
|
|
||||||
/// Create a copy of PluginConfiguration
|
/// Create a copy of PluginConfiguration
|
||||||
/// with the given fields replaced by the non-null parameter values.
|
/// with the given fields replaced by the non-null parameter values.
|
||||||
@ -2644,7 +2720,10 @@ abstract class _PluginConfiguration extends PluginConfiguration {
|
|||||||
required final String name,
|
required final String name,
|
||||||
required final String description,
|
required final String description,
|
||||||
required final String version,
|
required final String version,
|
||||||
required final String author}) = _$PluginConfigurationImpl;
|
required final String author,
|
||||||
|
required final String entryPoint,
|
||||||
|
final List<PluginApis> apis,
|
||||||
|
final List<PluginAbilities> abilities}) = _$PluginConfigurationImpl;
|
||||||
_PluginConfiguration._() : super._();
|
_PluginConfiguration._() : super._();
|
||||||
|
|
||||||
factory _PluginConfiguration.fromJson(Map<String, dynamic> json) =
|
factory _PluginConfiguration.fromJson(Map<String, dynamic> json) =
|
||||||
@ -2660,6 +2739,12 @@ abstract class _PluginConfiguration extends PluginConfiguration {
|
|||||||
String get version;
|
String get version;
|
||||||
@override
|
@override
|
||||||
String get author;
|
String get author;
|
||||||
|
@override
|
||||||
|
String get entryPoint;
|
||||||
|
@override
|
||||||
|
List<PluginApis> get apis;
|
||||||
|
@override
|
||||||
|
List<PluginAbilities> get abilities;
|
||||||
|
|
||||||
/// Create a copy of PluginConfiguration
|
/// Create a copy of PluginConfiguration
|
||||||
/// with the given fields replaced by the non-null parameter values.
|
/// with the given fields replaced by the non-null parameter values.
|
||||||
|
@ -231,6 +231,15 @@ _$PluginConfigurationImpl _$$PluginConfigurationImplFromJson(Map json) =>
|
|||||||
description: json['description'] as String,
|
description: json['description'] as String,
|
||||||
version: json['version'] as String,
|
version: json['version'] as String,
|
||||||
author: json['author'] as String,
|
author: json['author'] as String,
|
||||||
|
entryPoint: json['entryPoint'] as String,
|
||||||
|
apis: (json['apis'] as List<dynamic>?)
|
||||||
|
?.map((e) => $enumDecode(_$PluginApisEnumMap, e))
|
||||||
|
.toList() ??
|
||||||
|
const [],
|
||||||
|
abilities: (json['abilities'] as List<dynamic>?)
|
||||||
|
?.map((e) => $enumDecode(_$PluginAbilitiesEnumMap, e))
|
||||||
|
.toList() ??
|
||||||
|
const [],
|
||||||
);
|
);
|
||||||
|
|
||||||
Map<String, dynamic> _$$PluginConfigurationImplToJson(
|
Map<String, dynamic> _$$PluginConfigurationImplToJson(
|
||||||
@ -241,8 +250,22 @@ Map<String, dynamic> _$$PluginConfigurationImplToJson(
|
|||||||
'description': instance.description,
|
'description': instance.description,
|
||||||
'version': instance.version,
|
'version': instance.version,
|
||||||
'author': instance.author,
|
'author': instance.author,
|
||||||
|
'entryPoint': instance.entryPoint,
|
||||||
|
'apis': instance.apis.map((e) => _$PluginApisEnumMap[e]!).toList(),
|
||||||
|
'abilities':
|
||||||
|
instance.abilities.map((e) => _$PluginAbilitiesEnumMap[e]!).toList(),
|
||||||
};
|
};
|
||||||
|
|
||||||
const _$PluginTypeEnumMap = {
|
const _$PluginTypeEnumMap = {
|
||||||
PluginType.metadata: 'metadata',
|
PluginType.metadata: 'metadata',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const _$PluginApisEnumMap = {
|
||||||
|
PluginApis.webview: 'webview',
|
||||||
|
PluginApis.localstorage: 'localstorage',
|
||||||
|
PluginApis.timezone: 'timezone',
|
||||||
|
};
|
||||||
|
|
||||||
|
const _$PluginAbilitiesEnumMap = {
|
||||||
|
PluginAbilities.authentication: 'authentication',
|
||||||
|
};
|
||||||
|
@ -2,6 +2,10 @@ part of 'metadata.dart';
|
|||||||
|
|
||||||
enum PluginType { metadata }
|
enum PluginType { metadata }
|
||||||
|
|
||||||
|
enum PluginApis { webview, localstorage, timezone }
|
||||||
|
|
||||||
|
enum PluginAbilities { authentication }
|
||||||
|
|
||||||
@freezed
|
@freezed
|
||||||
class PluginConfiguration with _$PluginConfiguration {
|
class PluginConfiguration with _$PluginConfiguration {
|
||||||
const PluginConfiguration._();
|
const PluginConfiguration._();
|
||||||
@ -12,6 +16,9 @@ class PluginConfiguration with _$PluginConfiguration {
|
|||||||
required String description,
|
required String description,
|
||||||
required String version,
|
required String version,
|
||||||
required String author,
|
required String author,
|
||||||
|
required String entryPoint,
|
||||||
|
@Default([]) List<PluginApis> apis,
|
||||||
|
@Default([]) List<PluginAbilities> abilities,
|
||||||
}) = _PluginConfiguration;
|
}) = _PluginConfiguration;
|
||||||
|
|
||||||
factory PluginConfiguration.fromJson(Map<String, dynamic> json) =>
|
factory PluginConfiguration.fromJson(Map<String, dynamic> json) =>
|
||||||
|
@ -101,6 +101,23 @@ class MetadataPluginNotifier extends AsyncNotifier<MetadataPluginState> {
|
|||||||
author: plugin.author,
|
author: plugin.author,
|
||||||
description: plugin.description,
|
description: plugin.description,
|
||||||
version: plugin.version,
|
version: plugin.version,
|
||||||
|
entryPoint: plugin.entryPoint,
|
||||||
|
apis: plugin.apis
|
||||||
|
.map(
|
||||||
|
(e) => PluginApis.values.firstWhereOrNull(
|
||||||
|
(api) => api.name == e,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
.nonNulls
|
||||||
|
.toList(),
|
||||||
|
abilities: plugin.abilities
|
||||||
|
.map(
|
||||||
|
(e) => PluginAbilities.values.firstWhereOrNull(
|
||||||
|
(ability) => ability.name == e,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
.nonNulls
|
||||||
|
.toList(),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
).toList();
|
).toList();
|
||||||
@ -269,6 +286,9 @@ class MetadataPluginNotifier extends AsyncNotifier<MetadataPluginState> {
|
|||||||
author: plugin.author,
|
author: plugin.author,
|
||||||
description: plugin.description,
|
description: plugin.description,
|
||||||
version: plugin.version,
|
version: plugin.version,
|
||||||
|
entryPoint: plugin.entryPoint,
|
||||||
|
apis: plugin.apis.map((e) => e.name).toList(),
|
||||||
|
abilities: plugin.abilities.map((e) => e.name).toList(),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -3450,6 +3450,15 @@ class MetadataPluginsTable extends Table
|
|||||||
late final GeneratedColumn<String> author = GeneratedColumn<String>(
|
late final GeneratedColumn<String> author = GeneratedColumn<String>(
|
||||||
'author', aliasedName, false,
|
'author', aliasedName, false,
|
||||||
type: DriftSqlType.string, requiredDuringInsert: true);
|
type: DriftSqlType.string, requiredDuringInsert: true);
|
||||||
|
late final GeneratedColumn<String> entryPoint = GeneratedColumn<String>(
|
||||||
|
'entry_point', aliasedName, false,
|
||||||
|
type: DriftSqlType.string, requiredDuringInsert: true);
|
||||||
|
late final GeneratedColumn<String> apis = GeneratedColumn<String>(
|
||||||
|
'apis', aliasedName, false,
|
||||||
|
type: DriftSqlType.string, requiredDuringInsert: true);
|
||||||
|
late final GeneratedColumn<String> abilities = GeneratedColumn<String>(
|
||||||
|
'abilities', aliasedName, false,
|
||||||
|
type: DriftSqlType.string, requiredDuringInsert: true);
|
||||||
late final GeneratedColumn<bool> selected = GeneratedColumn<bool>(
|
late final GeneratedColumn<bool> selected = GeneratedColumn<bool>(
|
||||||
'selected', aliasedName, false,
|
'selected', aliasedName, false,
|
||||||
type: DriftSqlType.bool,
|
type: DriftSqlType.bool,
|
||||||
@ -3458,8 +3467,17 @@ class MetadataPluginsTable extends Table
|
|||||||
GeneratedColumn.constraintIsAlways('CHECK ("selected" IN (0, 1))'),
|
GeneratedColumn.constraintIsAlways('CHECK ("selected" IN (0, 1))'),
|
||||||
defaultValue: const Constant(false));
|
defaultValue: const Constant(false));
|
||||||
@override
|
@override
|
||||||
List<GeneratedColumn> get $columns =>
|
List<GeneratedColumn> get $columns => [
|
||||||
[id, name, description, version, author, selected];
|
id,
|
||||||
|
name,
|
||||||
|
description,
|
||||||
|
version,
|
||||||
|
author,
|
||||||
|
entryPoint,
|
||||||
|
apis,
|
||||||
|
abilities,
|
||||||
|
selected
|
||||||
|
];
|
||||||
@override
|
@override
|
||||||
String get aliasedName => _alias ?? actualTableName;
|
String get aliasedName => _alias ?? actualTableName;
|
||||||
@override
|
@override
|
||||||
@ -3482,6 +3500,12 @@ class MetadataPluginsTable extends Table
|
|||||||
.read(DriftSqlType.string, data['${effectivePrefix}version'])!,
|
.read(DriftSqlType.string, data['${effectivePrefix}version'])!,
|
||||||
author: attachedDatabase.typeMapping
|
author: attachedDatabase.typeMapping
|
||||||
.read(DriftSqlType.string, data['${effectivePrefix}author'])!,
|
.read(DriftSqlType.string, data['${effectivePrefix}author'])!,
|
||||||
|
entryPoint: attachedDatabase.typeMapping
|
||||||
|
.read(DriftSqlType.string, data['${effectivePrefix}entry_point'])!,
|
||||||
|
apis: attachedDatabase.typeMapping
|
||||||
|
.read(DriftSqlType.string, data['${effectivePrefix}apis'])!,
|
||||||
|
abilities: attachedDatabase.typeMapping
|
||||||
|
.read(DriftSqlType.string, data['${effectivePrefix}abilities'])!,
|
||||||
selected: attachedDatabase.typeMapping
|
selected: attachedDatabase.typeMapping
|
||||||
.read(DriftSqlType.bool, data['${effectivePrefix}selected'])!,
|
.read(DriftSqlType.bool, data['${effectivePrefix}selected'])!,
|
||||||
);
|
);
|
||||||
@ -3500,6 +3524,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
final String description;
|
final String description;
|
||||||
final String version;
|
final String version;
|
||||||
final String author;
|
final String author;
|
||||||
|
final String entryPoint;
|
||||||
|
final String apis;
|
||||||
|
final String abilities;
|
||||||
final bool selected;
|
final bool selected;
|
||||||
const MetadataPluginsTableData(
|
const MetadataPluginsTableData(
|
||||||
{required this.id,
|
{required this.id,
|
||||||
@ -3507,6 +3534,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
required this.description,
|
required this.description,
|
||||||
required this.version,
|
required this.version,
|
||||||
required this.author,
|
required this.author,
|
||||||
|
required this.entryPoint,
|
||||||
|
required this.apis,
|
||||||
|
required this.abilities,
|
||||||
required this.selected});
|
required this.selected});
|
||||||
@override
|
@override
|
||||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||||
@ -3516,6 +3546,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
map['description'] = Variable<String>(description);
|
map['description'] = Variable<String>(description);
|
||||||
map['version'] = Variable<String>(version);
|
map['version'] = Variable<String>(version);
|
||||||
map['author'] = Variable<String>(author);
|
map['author'] = Variable<String>(author);
|
||||||
|
map['entry_point'] = Variable<String>(entryPoint);
|
||||||
|
map['apis'] = Variable<String>(apis);
|
||||||
|
map['abilities'] = Variable<String>(abilities);
|
||||||
map['selected'] = Variable<bool>(selected);
|
map['selected'] = Variable<bool>(selected);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
@ -3527,6 +3560,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
description: Value(description),
|
description: Value(description),
|
||||||
version: Value(version),
|
version: Value(version),
|
||||||
author: Value(author),
|
author: Value(author),
|
||||||
|
entryPoint: Value(entryPoint),
|
||||||
|
apis: Value(apis),
|
||||||
|
abilities: Value(abilities),
|
||||||
selected: Value(selected),
|
selected: Value(selected),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -3540,6 +3576,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
description: serializer.fromJson<String>(json['description']),
|
description: serializer.fromJson<String>(json['description']),
|
||||||
version: serializer.fromJson<String>(json['version']),
|
version: serializer.fromJson<String>(json['version']),
|
||||||
author: serializer.fromJson<String>(json['author']),
|
author: serializer.fromJson<String>(json['author']),
|
||||||
|
entryPoint: serializer.fromJson<String>(json['entryPoint']),
|
||||||
|
apis: serializer.fromJson<String>(json['apis']),
|
||||||
|
abilities: serializer.fromJson<String>(json['abilities']),
|
||||||
selected: serializer.fromJson<bool>(json['selected']),
|
selected: serializer.fromJson<bool>(json['selected']),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -3552,6 +3591,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
'description': serializer.toJson<String>(description),
|
'description': serializer.toJson<String>(description),
|
||||||
'version': serializer.toJson<String>(version),
|
'version': serializer.toJson<String>(version),
|
||||||
'author': serializer.toJson<String>(author),
|
'author': serializer.toJson<String>(author),
|
||||||
|
'entryPoint': serializer.toJson<String>(entryPoint),
|
||||||
|
'apis': serializer.toJson<String>(apis),
|
||||||
|
'abilities': serializer.toJson<String>(abilities),
|
||||||
'selected': serializer.toJson<bool>(selected),
|
'selected': serializer.toJson<bool>(selected),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -3562,6 +3604,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
String? description,
|
String? description,
|
||||||
String? version,
|
String? version,
|
||||||
String? author,
|
String? author,
|
||||||
|
String? entryPoint,
|
||||||
|
String? apis,
|
||||||
|
String? abilities,
|
||||||
bool? selected}) =>
|
bool? selected}) =>
|
||||||
MetadataPluginsTableData(
|
MetadataPluginsTableData(
|
||||||
id: id ?? this.id,
|
id: id ?? this.id,
|
||||||
@ -3569,6 +3614,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
description: description ?? this.description,
|
description: description ?? this.description,
|
||||||
version: version ?? this.version,
|
version: version ?? this.version,
|
||||||
author: author ?? this.author,
|
author: author ?? this.author,
|
||||||
|
entryPoint: entryPoint ?? this.entryPoint,
|
||||||
|
apis: apis ?? this.apis,
|
||||||
|
abilities: abilities ?? this.abilities,
|
||||||
selected: selected ?? this.selected,
|
selected: selected ?? this.selected,
|
||||||
);
|
);
|
||||||
MetadataPluginsTableData copyWithCompanion(
|
MetadataPluginsTableData copyWithCompanion(
|
||||||
@ -3580,6 +3628,10 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
data.description.present ? data.description.value : this.description,
|
data.description.present ? data.description.value : this.description,
|
||||||
version: data.version.present ? data.version.value : this.version,
|
version: data.version.present ? data.version.value : this.version,
|
||||||
author: data.author.present ? data.author.value : this.author,
|
author: data.author.present ? data.author.value : this.author,
|
||||||
|
entryPoint:
|
||||||
|
data.entryPoint.present ? data.entryPoint.value : this.entryPoint,
|
||||||
|
apis: data.apis.present ? data.apis.value : this.apis,
|
||||||
|
abilities: data.abilities.present ? data.abilities.value : this.abilities,
|
||||||
selected: data.selected.present ? data.selected.value : this.selected,
|
selected: data.selected.present ? data.selected.value : this.selected,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -3592,14 +3644,17 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
..write('description: $description, ')
|
..write('description: $description, ')
|
||||||
..write('version: $version, ')
|
..write('version: $version, ')
|
||||||
..write('author: $author, ')
|
..write('author: $author, ')
|
||||||
|
..write('entryPoint: $entryPoint, ')
|
||||||
|
..write('apis: $apis, ')
|
||||||
|
..write('abilities: $abilities, ')
|
||||||
..write('selected: $selected')
|
..write('selected: $selected')
|
||||||
..write(')'))
|
..write(')'))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode => Object.hash(id, name, description, version, author,
|
||||||
Object.hash(id, name, description, version, author, selected);
|
entryPoint, apis, abilities, selected);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) =>
|
bool operator ==(Object other) =>
|
||||||
identical(this, other) ||
|
identical(this, other) ||
|
||||||
@ -3609,6 +3664,9 @@ class MetadataPluginsTableData extends DataClass
|
|||||||
other.description == this.description &&
|
other.description == this.description &&
|
||||||
other.version == this.version &&
|
other.version == this.version &&
|
||||||
other.author == this.author &&
|
other.author == this.author &&
|
||||||
|
other.entryPoint == this.entryPoint &&
|
||||||
|
other.apis == this.apis &&
|
||||||
|
other.abilities == this.abilities &&
|
||||||
other.selected == this.selected);
|
other.selected == this.selected);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3619,6 +3677,9 @@ class MetadataPluginsTableCompanion
|
|||||||
final Value<String> description;
|
final Value<String> description;
|
||||||
final Value<String> version;
|
final Value<String> version;
|
||||||
final Value<String> author;
|
final Value<String> author;
|
||||||
|
final Value<String> entryPoint;
|
||||||
|
final Value<String> apis;
|
||||||
|
final Value<String> abilities;
|
||||||
final Value<bool> selected;
|
final Value<bool> selected;
|
||||||
const MetadataPluginsTableCompanion({
|
const MetadataPluginsTableCompanion({
|
||||||
this.id = const Value.absent(),
|
this.id = const Value.absent(),
|
||||||
@ -3626,6 +3687,9 @@ class MetadataPluginsTableCompanion
|
|||||||
this.description = const Value.absent(),
|
this.description = const Value.absent(),
|
||||||
this.version = const Value.absent(),
|
this.version = const Value.absent(),
|
||||||
this.author = const Value.absent(),
|
this.author = const Value.absent(),
|
||||||
|
this.entryPoint = const Value.absent(),
|
||||||
|
this.apis = const Value.absent(),
|
||||||
|
this.abilities = const Value.absent(),
|
||||||
this.selected = const Value.absent(),
|
this.selected = const Value.absent(),
|
||||||
});
|
});
|
||||||
MetadataPluginsTableCompanion.insert({
|
MetadataPluginsTableCompanion.insert({
|
||||||
@ -3634,17 +3698,26 @@ class MetadataPluginsTableCompanion
|
|||||||
required String description,
|
required String description,
|
||||||
required String version,
|
required String version,
|
||||||
required String author,
|
required String author,
|
||||||
|
required String entryPoint,
|
||||||
|
required String apis,
|
||||||
|
required String abilities,
|
||||||
this.selected = const Value.absent(),
|
this.selected = const Value.absent(),
|
||||||
}) : name = Value(name),
|
}) : name = Value(name),
|
||||||
description = Value(description),
|
description = Value(description),
|
||||||
version = Value(version),
|
version = Value(version),
|
||||||
author = Value(author);
|
author = Value(author),
|
||||||
|
entryPoint = Value(entryPoint),
|
||||||
|
apis = Value(apis),
|
||||||
|
abilities = Value(abilities);
|
||||||
static Insertable<MetadataPluginsTableData> custom({
|
static Insertable<MetadataPluginsTableData> custom({
|
||||||
Expression<int>? id,
|
Expression<int>? id,
|
||||||
Expression<String>? name,
|
Expression<String>? name,
|
||||||
Expression<String>? description,
|
Expression<String>? description,
|
||||||
Expression<String>? version,
|
Expression<String>? version,
|
||||||
Expression<String>? author,
|
Expression<String>? author,
|
||||||
|
Expression<String>? entryPoint,
|
||||||
|
Expression<String>? apis,
|
||||||
|
Expression<String>? abilities,
|
||||||
Expression<bool>? selected,
|
Expression<bool>? selected,
|
||||||
}) {
|
}) {
|
||||||
return RawValuesInsertable({
|
return RawValuesInsertable({
|
||||||
@ -3653,6 +3726,9 @@ class MetadataPluginsTableCompanion
|
|||||||
if (description != null) 'description': description,
|
if (description != null) 'description': description,
|
||||||
if (version != null) 'version': version,
|
if (version != null) 'version': version,
|
||||||
if (author != null) 'author': author,
|
if (author != null) 'author': author,
|
||||||
|
if (entryPoint != null) 'entry_point': entryPoint,
|
||||||
|
if (apis != null) 'apis': apis,
|
||||||
|
if (abilities != null) 'abilities': abilities,
|
||||||
if (selected != null) 'selected': selected,
|
if (selected != null) 'selected': selected,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -3663,6 +3739,9 @@ class MetadataPluginsTableCompanion
|
|||||||
Value<String>? description,
|
Value<String>? description,
|
||||||
Value<String>? version,
|
Value<String>? version,
|
||||||
Value<String>? author,
|
Value<String>? author,
|
||||||
|
Value<String>? entryPoint,
|
||||||
|
Value<String>? apis,
|
||||||
|
Value<String>? abilities,
|
||||||
Value<bool>? selected}) {
|
Value<bool>? selected}) {
|
||||||
return MetadataPluginsTableCompanion(
|
return MetadataPluginsTableCompanion(
|
||||||
id: id ?? this.id,
|
id: id ?? this.id,
|
||||||
@ -3670,6 +3749,9 @@ class MetadataPluginsTableCompanion
|
|||||||
description: description ?? this.description,
|
description: description ?? this.description,
|
||||||
version: version ?? this.version,
|
version: version ?? this.version,
|
||||||
author: author ?? this.author,
|
author: author ?? this.author,
|
||||||
|
entryPoint: entryPoint ?? this.entryPoint,
|
||||||
|
apis: apis ?? this.apis,
|
||||||
|
abilities: abilities ?? this.abilities,
|
||||||
selected: selected ?? this.selected,
|
selected: selected ?? this.selected,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -3692,6 +3774,15 @@ class MetadataPluginsTableCompanion
|
|||||||
if (author.present) {
|
if (author.present) {
|
||||||
map['author'] = Variable<String>(author.value);
|
map['author'] = Variable<String>(author.value);
|
||||||
}
|
}
|
||||||
|
if (entryPoint.present) {
|
||||||
|
map['entry_point'] = Variable<String>(entryPoint.value);
|
||||||
|
}
|
||||||
|
if (apis.present) {
|
||||||
|
map['apis'] = Variable<String>(apis.value);
|
||||||
|
}
|
||||||
|
if (abilities.present) {
|
||||||
|
map['abilities'] = Variable<String>(abilities.value);
|
||||||
|
}
|
||||||
if (selected.present) {
|
if (selected.present) {
|
||||||
map['selected'] = Variable<bool>(selected.value);
|
map['selected'] = Variable<bool>(selected.value);
|
||||||
}
|
}
|
||||||
@ -3706,6 +3797,9 @@ class MetadataPluginsTableCompanion
|
|||||||
..write('description: $description, ')
|
..write('description: $description, ')
|
||||||
..write('version: $version, ')
|
..write('version: $version, ')
|
||||||
..write('author: $author, ')
|
..write('author: $author, ')
|
||||||
|
..write('entryPoint: $entryPoint, ')
|
||||||
|
..write('apis: $apis, ')
|
||||||
|
..write('abilities: $abilities, ')
|
||||||
..write('selected: $selected')
|
..write('selected: $selected')
|
||||||
..write(')'))
|
..write(')'))
|
||||||
.toString();
|
.toString();
|
||||||
|
Loading…
Reference in New Issue
Block a user