Skip to content

Commit

Permalink
feat(nextcloud)!: Support tables 0.9
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Jan 31, 2025
1 parent 476b980 commit 06f817a
Show file tree
Hide file tree
Showing 9 changed files with 248 additions and 9 deletions.
2 changes: 1 addition & 1 deletion external/nextcloud-tables
Submodule nextcloud-tables updated 263 files
1 change: 1 addition & 0 deletions packages/nextcloud/lib/src/api/core/core.openapi.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15994,6 +15994,7 @@ sealed class $TablesCapabilities_TablesInterface {
String get version;
BuiltList<String> get apiVersions;
BuiltList<String> get features;
bool? get isCirclesEnabled;
@BuiltValueField(wireName: 'column_types')
BuiltList<String> get columnTypes;

Expand Down
27 changes: 26 additions & 1 deletion packages/nextcloud/lib/src/api/core/core.openapi.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/nextcloud/lib/src/api/core/core.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2055,6 +2055,9 @@
"type": "string"
}
},
"isCirclesEnabled": {
"type": "boolean"
},
"column_types": {
"type": "array",
"items": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"op": "replace",
"path": "/components/schemas/Capabilities/properties/tables/required",
"value": [
"enabled",
"version",
"apiVersions",
"features",
"column_types"
]
}
]
27 changes: 24 additions & 3 deletions packages/nextcloud/lib/src/api/tables/tables.openapi.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8240,7 +8240,7 @@ sealed class $Api1CreateShareRequestApplicationJsonInterface {
)! as bool;

static final _$displayMode = _$jsonSerializers.deserialize(
0,
2,
specifiedType: const FullType(int),
)! as int;

Expand Down Expand Up @@ -8271,7 +8271,7 @@ sealed class $Api1CreateShareRequestApplicationJsonInterface {
/// Permission if receiver can manage node.
bool get permissionManage;

/// context shares only, whether it should appear in nav bar. 0: no, 1: recipients, 2: all.
/// context shares only, whether it should appear in nav bar. 0: no, 1: recipients, 2: all (default). Cf. Application::NAV_ENTRY_MODE_*.
int get displayMode;

/// Rebuilds the instance.
Expand All @@ -8295,7 +8295,14 @@ sealed class $Api1CreateShareRequestApplicationJsonInterface {
}

@BuiltValueHook(finalizeBuilder: true)
static void _validate($Api1CreateShareRequestApplicationJsonInterfaceBuilder b) {}
static void _validate($Api1CreateShareRequestApplicationJsonInterfaceBuilder b) {
_i6.checkNumber(
b.displayMode,
'displayMode',
maximum: 2,
minimum: 0,
);
}
}

abstract class Api1CreateShareRequestApplicationJson
Expand Down Expand Up @@ -8582,6 +8589,7 @@ sealed class $ColumnInterface {
bool get usergroupMultipleItems;
bool get usergroupSelectUsers;
bool get usergroupSelectGroups;
bool get usergroupSelectTeams;
bool get showUserStatus;

/// Rebuilds the instance.
Expand Down Expand Up @@ -8812,6 +8820,9 @@ sealed class $Api1CreateTableColumnRequestApplicationJsonInterface {
/// Can select groups, if column type is usergroup.
bool? get usergroupSelectGroups;

/// Can select teams, if column type is usergroup.
bool? get usergroupSelectTeams;

/// Whether to show the user's status, if column type is usergroup.
bool? get usergroupShowUserStatus;

Expand Down Expand Up @@ -9065,6 +9076,9 @@ sealed class $Api1CreateColumnRequestApplicationJsonInterface {
/// Can select groups, if column type is usergroup.
bool? get usergroupSelectGroups;

/// Can select teams, if column type is usergroup.
bool? get usergroupSelectTeams;

/// Whether to show the user's status, if column type is usergroup.
bool? get usergroupShowUserStatus;

Expand Down Expand Up @@ -9198,6 +9212,9 @@ sealed class $Api1UpdateColumnRequestApplicationJsonInterface {
/// Can select groups, if column type is usergroup.
bool? get usergroupSelectGroups;

/// Can select teams, if column type is usergroup.
bool? get usergroupSelectTeams;

/// Whether to show the user's status, if column type is usergroup.
bool? get usergroupShowUserStatus;

Expand Down Expand Up @@ -11875,6 +11892,9 @@ sealed class $ApiColumnsCreateUsergroupColumnRequestApplicationJsonInterface {
/// Whether you can select groups.
bool? get usergroupSelectGroups;

/// Whether you can select teams.
bool? get usergroupSelectTeams;

/// Whether to show the user's status.
bool? get showUserStatus;

Expand Down Expand Up @@ -15532,6 +15552,7 @@ sealed class $Capabilities_TablesInterface {
String get version;
BuiltList<String> get apiVersions;
BuiltList<String> get features;
bool? get isCirclesEnabled;
@BuiltValueField(wireName: 'column_types')
BuiltList<String> get columnTypes;

Expand Down
Loading

0 comments on commit 06f817a

Please sign in to comment.