Skip to content

Commit 3247c9d

Browse files
committed
feat(nextcloud)!: Support tables 0.9
Signed-off-by: provokateurin <kate@provokateurin.de>
1 parent 1f33395 commit 3247c9d

File tree

9 files changed

+248
-9
lines changed

9 files changed

+248
-9
lines changed

external/nextcloud-tables

Submodule nextcloud-tables updated 263 files

packages/nextcloud/lib/src/api/core/core.openapi.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15994,6 +15994,7 @@ sealed class $TablesCapabilities_TablesInterface {
1599415994
String get version;
1599515995
BuiltList<String> get apiVersions;
1599615996
BuiltList<String> get features;
15997+
bool? get isCirclesEnabled;
1599715998
@BuiltValueField(wireName: 'column_types')
1599815999
BuiltList<String> get columnTypes;
1599916000

packages/nextcloud/lib/src/api/core/core.openapi.g.dart

Lines changed: 26 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/nextcloud/lib/src/api/core/core.openapi.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,6 +2055,9 @@
20552055
"type": "string"
20562056
}
20572057
},
2058+
"isCirclesEnabled": {
2059+
"type": "boolean"
2060+
},
20582061
"column_types": {
20592062
"type": "array",
20602063
"items": {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[
2+
{
3+
"op": "replace",
4+
"path": "/components/schemas/Capabilities/properties/tables/required",
5+
"value": [
6+
"enabled",
7+
"version",
8+
"apiVersions",
9+
"features",
10+
"column_types"
11+
]
12+
}
13+
]

packages/nextcloud/lib/src/api/tables/patches/0-compatibility-0.6.json renamed to packages/nextcloud/lib/src/api/tables/patches/1-compatibility-0.6.json

File renamed without changes.

packages/nextcloud/lib/src/api/tables/tables.openapi.dart

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8240,7 +8240,7 @@ sealed class $Api1CreateShareRequestApplicationJsonInterface {
82408240
)! as bool;
82418241

82428242
static final _$displayMode = _$jsonSerializers.deserialize(
8243-
0,
8243+
2,
82448244
specifiedType: const FullType(int),
82458245
)! as int;
82468246

@@ -8271,7 +8271,7 @@ sealed class $Api1CreateShareRequestApplicationJsonInterface {
82718271
/// Permission if receiver can manage node.
82728272
bool get permissionManage;
82738273

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

82778277
/// Rebuilds the instance.
@@ -8295,7 +8295,14 @@ sealed class $Api1CreateShareRequestApplicationJsonInterface {
82958295
}
82968296

82978297
@BuiltValueHook(finalizeBuilder: true)
8298-
static void _validate($Api1CreateShareRequestApplicationJsonInterfaceBuilder b) {}
8298+
static void _validate($Api1CreateShareRequestApplicationJsonInterfaceBuilder b) {
8299+
_i6.checkNumber(
8300+
b.displayMode,
8301+
'displayMode',
8302+
maximum: 2,
8303+
minimum: 0,
8304+
);
8305+
}
82998306
}
83008307

83018308
abstract class Api1CreateShareRequestApplicationJson
@@ -8582,6 +8589,7 @@ sealed class $ColumnInterface {
85828589
bool get usergroupMultipleItems;
85838590
bool get usergroupSelectUsers;
85848591
bool get usergroupSelectGroups;
8592+
bool get usergroupSelectTeams;
85858593
bool get showUserStatus;
85868594

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

8823+
/// Can select teams, if column type is usergroup.
8824+
bool? get usergroupSelectTeams;
8825+
88158826
/// Whether to show the user's status, if column type is usergroup.
88168827
bool? get usergroupShowUserStatus;
88178828

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

9079+
/// Can select teams, if column type is usergroup.
9080+
bool? get usergroupSelectTeams;
9081+
90689082
/// Whether to show the user's status, if column type is usergroup.
90699083
bool? get usergroupShowUserStatus;
90709084

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

9215+
/// Can select teams, if column type is usergroup.
9216+
bool? get usergroupSelectTeams;
9217+
92019218
/// Whether to show the user's status, if column type is usergroup.
92029219
bool? get usergroupShowUserStatus;
92039220

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

11895+
/// Whether you can select teams.
11896+
bool? get usergroupSelectTeams;
11897+
1187811898
/// Whether to show the user's status.
1187911899
bool? get showUserStatus;
1188011900

@@ -15532,6 +15552,7 @@ sealed class $Capabilities_TablesInterface {
1553215552
String get version;
1553315553
BuiltList<String> get apiVersions;
1553415554
BuiltList<String> get features;
15555+
bool? get isCirclesEnabled;
1553515556
@BuiltValueField(wireName: 'column_types')
1553615557
BuiltList<String> get columnTypes;
1553715558

0 commit comments

Comments
 (0)