Browse Source

fix(nextcloud): Fix core and provisioning_api specs

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/791/head
jld3103 1 year ago
parent
commit
68b1eef8fc
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      external/nextcloud-server
  2. 231
      packages/nextcloud/lib/src/api/core.openapi.dart
  3. 485
      packages/nextcloud/lib/src/api/core.openapi.g.dart
  4. 73
      packages/nextcloud/lib/src/api/core.openapi.json
  5. 9
      packages/nextcloud/lib/src/api/provisioning_api.openapi.dart
  6. 13
      packages/nextcloud/lib/src/api/provisioning_api.openapi.g.dart
  7. 4
      packages/nextcloud/lib/src/api/provisioning_api.openapi.json

2
external/nextcloud-server vendored

@ -1 +1 @@
Subproject commit eb1b09da6728d300aecf65fb28d3d49e546a9bee
Subproject commit 5d20baec01daec7b7aefe7cb17f8db5611dcd176

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

@ -2716,75 +2716,67 @@ abstract class CoreLoginFlowV2 implements CoreLoginFlowV2Interface, Built<CoreLo
}
@BuiltValue(instantiable: false)
abstract interface class CoreOpenGraphObject_OpenGraphObjectInterface {
abstract interface class CoreOpenGraphObjectInterface {
String get id;
String get name;
String? get description;
String? get thumb;
String get link;
CoreOpenGraphObject_OpenGraphObjectInterface rebuild(
final void Function(CoreOpenGraphObject_OpenGraphObjectInterfaceBuilder) updates,
);
CoreOpenGraphObject_OpenGraphObjectInterfaceBuilder toBuilder();
CoreOpenGraphObjectInterface rebuild(final void Function(CoreOpenGraphObjectInterfaceBuilder) updates);
CoreOpenGraphObjectInterfaceBuilder toBuilder();
}
abstract class CoreOpenGraphObject_OpenGraphObject
implements
CoreOpenGraphObject_OpenGraphObjectInterface,
Built<CoreOpenGraphObject_OpenGraphObject, CoreOpenGraphObject_OpenGraphObjectBuilder> {
factory CoreOpenGraphObject_OpenGraphObject([final void Function(CoreOpenGraphObject_OpenGraphObjectBuilder)? b]) =
_$CoreOpenGraphObject_OpenGraphObject;
abstract class CoreOpenGraphObject
implements CoreOpenGraphObjectInterface, Built<CoreOpenGraphObject, CoreOpenGraphObjectBuilder> {
factory CoreOpenGraphObject([final void Function(CoreOpenGraphObjectBuilder)? b]) = _$CoreOpenGraphObject;
// coverage:ignore-start
const CoreOpenGraphObject_OpenGraphObject._();
const CoreOpenGraphObject._();
// coverage:ignore-end
// coverage:ignore-start
factory CoreOpenGraphObject_OpenGraphObject.fromJson(final Map<String, dynamic> json) =>
factory CoreOpenGraphObject.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
static Serializer<CoreOpenGraphObject_OpenGraphObject> get serializer =>
_$coreOpenGraphObjectOpenGraphObjectSerializer;
static Serializer<CoreOpenGraphObject> get serializer => _$coreOpenGraphObjectSerializer;
}
@BuiltValue(instantiable: false)
abstract interface class CoreOpenGraphObjectInterface {
abstract interface class CoreResourceInterface {
String get richObjectType;
BuiltMap<String, JsonObject> get richObject;
CoreOpenGraphObject_OpenGraphObject get openGraphObject;
CoreOpenGraphObject get openGraphObject;
bool get accessible;
CoreOpenGraphObjectInterface rebuild(final void Function(CoreOpenGraphObjectInterfaceBuilder) updates);
CoreOpenGraphObjectInterfaceBuilder toBuilder();
CoreResourceInterface rebuild(final void Function(CoreResourceInterfaceBuilder) updates);
CoreResourceInterfaceBuilder toBuilder();
}
abstract class CoreOpenGraphObject
implements CoreOpenGraphObjectInterface, Built<CoreOpenGraphObject, CoreOpenGraphObjectBuilder> {
factory CoreOpenGraphObject([final void Function(CoreOpenGraphObjectBuilder)? b]) = _$CoreOpenGraphObject;
abstract class CoreResource implements CoreResourceInterface, Built<CoreResource, CoreResourceBuilder> {
factory CoreResource([final void Function(CoreResourceBuilder)? b]) = _$CoreResource;
// coverage:ignore-start
const CoreOpenGraphObject._();
const CoreResource._();
// coverage:ignore-end
// coverage:ignore-start
factory CoreOpenGraphObject.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!;
factory CoreResource.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
static Serializer<CoreOpenGraphObject> get serializer => _$coreOpenGraphObjectSerializer;
static Serializer<CoreResource> get serializer => _$coreResourceSerializer;
}
@BuiltValue(instantiable: false)
abstract interface class CoreCollectionInterface {
int get id;
String get name;
BuiltList<CoreOpenGraphObject> get resources;
BuiltList<CoreResource> get resources;
CoreCollectionInterface rebuild(final void Function(CoreCollectionInterfaceBuilder) updates);
CoreCollectionInterfaceBuilder toBuilder();
}
@ -5708,81 +5700,9 @@ abstract class CoreReferenceApiResolveOneResponseApplicationJson
_$coreReferenceApiResolveOneResponseApplicationJsonSerializer;
}
abstract class CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References
implements
Built<CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References,
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder> {
factory CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References([
final void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder)? b,
]) = _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References;
// coverage:ignore-start
const CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References._();
// coverage:ignore-end
// coverage:ignore-start
factory CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References.fromJson(
final Map<String, dynamic> json,
) =>
_jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
JsonObject get data;
CoreReference? get reference;
JsonObject? get jsonObject;
@BuiltValueSerializer(custom: true)
static Serializer<CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References> get serializer =>
_$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesSerializer();
}
class _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesSerializer
implements PrimitiveSerializer<CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References> {
@override
final Iterable<Type> types = const [
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References,
_$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References,
];
@override
final String wireName = 'CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References';
@override
Object serialize(
final Serializers serializers,
final CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References object, {
final FullType specifiedType = FullType.unspecified,
}) =>
object.data.value;
@override
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References deserialize(
final Serializers serializers,
final Object data, {
final FullType specifiedType = FullType.unspecified,
}) {
final result = CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder()..data = JsonObject(data);
try {
result._reference =
(_jsonSerializers.deserialize(data, specifiedType: const FullType(CoreReference))! as CoreReference)
.toBuilder();
} catch (_) {}
try {
result._jsonObject = data as JsonObject?;
} catch (_) {}
assert(
[result._reference, result._jsonObject].where((final x) => x != null).isNotEmpty,
'Need oneOf for ${result._data}',
);
return result.build();
}
}
@BuiltValue(instantiable: false)
abstract interface class CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterface {
BuiltMap<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References> get references;
BuiltMap<String, CoreReference> get references;
CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterface rebuild(
final void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterfaceBuilder) updates,
);
@ -5882,81 +5802,9 @@ abstract class CoreReferenceApiResolveResponseApplicationJson
_$coreReferenceApiResolveResponseApplicationJsonSerializer;
}
abstract class CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References
implements
Built<CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References,
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder> {
factory CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References([
final void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder)? b,
]) = _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References;
// coverage:ignore-start
const CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References._();
// coverage:ignore-end
// coverage:ignore-start
factory CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References.fromJson(
final Map<String, dynamic> json,
) =>
_jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
JsonObject get data;
CoreReference? get reference;
JsonObject? get jsonObject;
@BuiltValueSerializer(custom: true)
static Serializer<CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References> get serializer =>
_$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesSerializer();
}
class _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesSerializer
implements PrimitiveSerializer<CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References> {
@override
final Iterable<Type> types = const [
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References,
_$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References,
];
@override
final String wireName = 'CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References';
@override
Object serialize(
final Serializers serializers,
final CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References object, {
final FullType specifiedType = FullType.unspecified,
}) =>
object.data.value;
@override
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References deserialize(
final Serializers serializers,
final Object data, {
final FullType specifiedType = FullType.unspecified,
}) {
final result = CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder()..data = JsonObject(data);
try {
result._reference =
(_jsonSerializers.deserialize(data, specifiedType: const FullType(CoreReference))! as CoreReference)
.toBuilder();
} catch (_) {}
try {
result._jsonObject = data as JsonObject?;
} catch (_) {}
assert(
[result._reference, result._jsonObject].where((final x) => x != null).isNotEmpty,
'Need oneOf for ${result._data}',
);
return result.build();
}
}
@BuiltValue(instantiable: false)
abstract interface class CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterface {
BuiltMap<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References> get references;
BuiltMap<String, CoreReference> get references;
CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterface rebuild(
final void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterfaceBuilder) updates,
);
@ -7767,18 +7615,15 @@ final Serializers _serializers = (Serializers().toBuilder()
..add(CoreCollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs.serializer)
..addBuilderFactory(const FullType(CoreCollection), CoreCollection.new)
..add(CoreCollection.serializer)
..addBuilderFactory(const FullType(CoreOpenGraphObject), CoreOpenGraphObject.new)
..add(CoreOpenGraphObject.serializer)
..addBuilderFactory(const FullType(CoreResource), CoreResource.new)
..add(CoreResource.serializer)
..addBuilderFactory(
const FullType(BuiltMap, [FullType(String), FullType(JsonObject)]),
MapBuilder<String, JsonObject>.new,
)
..addBuilderFactory(const FullType(CoreOpenGraphObject_OpenGraphObject), CoreOpenGraphObject_OpenGraphObject.new)
..add(CoreOpenGraphObject_OpenGraphObject.serializer)
..addBuilderFactory(
const FullType(BuiltList, [FullType(CoreOpenGraphObject)]),
ListBuilder<CoreOpenGraphObject>.new,
)
..addBuilderFactory(const FullType(CoreOpenGraphObject), CoreOpenGraphObject.new)
..add(CoreOpenGraphObject.serializer)
..addBuilderFactory(const FullType(BuiltList, [FullType(CoreResource)]), ListBuilder<CoreResource>.new)
..addBuilderFactory(const FullType(BuiltList, [FullType(CoreCollection)]), ListBuilder<CoreCollection>.new)
..addBuilderFactory(
const FullType(CoreCollaborationResourcesListCollectionResponseApplicationJson),
@ -8125,18 +7970,6 @@ final Serializers _serializers = (Serializers().toBuilder()
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data.new,
)
..add(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data.serializer)
..addBuilderFactory(
const FullType(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References),
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References.new,
)
..add(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References.serializer)
..addBuilderFactory(
const FullType(
BuiltMap,
[FullType(String), FullType(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References)],
),
MapBuilder<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References>.new,
)
..addBuilderFactory(
const FullType(CoreReferenceApiExtractResponseApplicationJson),
CoreReferenceApiExtractResponseApplicationJson.new,
@ -8152,18 +7985,6 @@ final Serializers _serializers = (Serializers().toBuilder()
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data.new,
)
..add(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data.serializer)
..addBuilderFactory(
const FullType(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References),
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References.new,
)
..add(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References.serializer)
..addBuilderFactory(
const FullType(
BuiltMap,
[FullType(String), FullType(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References)],
),
MapBuilder<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References>.new,
)
..addBuilderFactory(
const FullType(CoreReferenceApiGetProvidersInfoResponseApplicationJson),
CoreReferenceApiGetProvidersInfoResponseApplicationJson.new,

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

@ -41,9 +41,8 @@ Serializer<CoreLoginFlowV2Credentials> _$coreLoginFlowV2CredentialsSerializer =
_$CoreLoginFlowV2CredentialsSerializer();
Serializer<CoreLoginFlowV2_Poll> _$coreLoginFlowV2PollSerializer = _$CoreLoginFlowV2_PollSerializer();
Serializer<CoreLoginFlowV2> _$coreLoginFlowV2Serializer = _$CoreLoginFlowV2Serializer();
Serializer<CoreOpenGraphObject_OpenGraphObject> _$coreOpenGraphObjectOpenGraphObjectSerializer =
_$CoreOpenGraphObject_OpenGraphObjectSerializer();
Serializer<CoreOpenGraphObject> _$coreOpenGraphObjectSerializer = _$CoreOpenGraphObjectSerializer();
Serializer<CoreResource> _$coreResourceSerializer = _$CoreResourceSerializer();
Serializer<CoreCollection> _$coreCollectionSerializer = _$CoreCollectionSerializer();
Serializer<CoreCollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs>
_$coreCollaborationResourcesSearchCollectionsResponseApplicationJsonOcsSerializer =
@ -1187,15 +1186,14 @@ class _$CoreLoginFlowV2Serializer implements StructuredSerializer<CoreLoginFlowV
}
}
class _$CoreOpenGraphObject_OpenGraphObjectSerializer
implements StructuredSerializer<CoreOpenGraphObject_OpenGraphObject> {
class _$CoreOpenGraphObjectSerializer implements StructuredSerializer<CoreOpenGraphObject> {
@override
final Iterable<Type> types = const [CoreOpenGraphObject_OpenGraphObject, _$CoreOpenGraphObject_OpenGraphObject];
final Iterable<Type> types = const [CoreOpenGraphObject, _$CoreOpenGraphObject];
@override
final String wireName = 'CoreOpenGraphObject_OpenGraphObject';
final String wireName = 'CoreOpenGraphObject';
@override
Iterable<Object?> serialize(Serializers serializers, CoreOpenGraphObject_OpenGraphObject object,
Iterable<Object?> serialize(Serializers serializers, CoreOpenGraphObject object,
{FullType specifiedType = FullType.unspecified}) {
final result = <Object?>[
'id',
@ -1222,9 +1220,9 @@ class _$CoreOpenGraphObject_OpenGraphObjectSerializer
}
@override
CoreOpenGraphObject_OpenGraphObject deserialize(Serializers serializers, Iterable<Object?> serialized,
CoreOpenGraphObject deserialize(Serializers serializers, Iterable<Object?> serialized,
{FullType specifiedType = FullType.unspecified}) {
final result = CoreOpenGraphObject_OpenGraphObjectBuilder();
final result = CoreOpenGraphObjectBuilder();
final iterator = serialized.iterator;
while (iterator.moveNext()) {
@ -1254,14 +1252,14 @@ class _$CoreOpenGraphObject_OpenGraphObjectSerializer
}
}
class _$CoreOpenGraphObjectSerializer implements StructuredSerializer<CoreOpenGraphObject> {
class _$CoreResourceSerializer implements StructuredSerializer<CoreResource> {
@override
final Iterable<Type> types = const [CoreOpenGraphObject, _$CoreOpenGraphObject];
final Iterable<Type> types = const [CoreResource, _$CoreResource];
@override
final String wireName = 'CoreOpenGraphObject';
final String wireName = 'CoreResource';
@override
Iterable<Object?> serialize(Serializers serializers, CoreOpenGraphObject object,
Iterable<Object?> serialize(Serializers serializers, CoreResource object,
{FullType specifiedType = FullType.unspecified}) {
final result = <Object?>[
'richObjectType',
@ -1270,7 +1268,7 @@ class _$CoreOpenGraphObjectSerializer implements StructuredSerializer<CoreOpenGr
serializers.serialize(object.richObject,
specifiedType: const FullType(BuiltMap, [FullType(String), FullType(JsonObject)])),
'openGraphObject',
serializers.serialize(object.openGraphObject, specifiedType: const FullType(CoreOpenGraphObject_OpenGraphObject)),
serializers.serialize(object.openGraphObject, specifiedType: const FullType(CoreOpenGraphObject)),
'accessible',
serializers.serialize(object.accessible, specifiedType: const FullType(bool)),
];
@ -1279,9 +1277,9 @@ class _$CoreOpenGraphObjectSerializer implements StructuredSerializer<CoreOpenGr
}
@override
CoreOpenGraphObject deserialize(Serializers serializers, Iterable<Object?> serialized,
CoreResource deserialize(Serializers serializers, Iterable<Object?> serialized,
{FullType specifiedType = FullType.unspecified}) {
final result = CoreOpenGraphObjectBuilder();
final result = CoreResourceBuilder();
final iterator = serialized.iterator;
while (iterator.moveNext()) {
@ -1297,9 +1295,8 @@ class _$CoreOpenGraphObjectSerializer implements StructuredSerializer<CoreOpenGr
specifiedType: const FullType(BuiltMap, [FullType(String), FullType(JsonObject)]))!);
break;
case 'openGraphObject':
result.openGraphObject.replace(
serializers.deserialize(value, specifiedType: const FullType(CoreOpenGraphObject_OpenGraphObject))!
as CoreOpenGraphObject_OpenGraphObject);
result.openGraphObject.replace(serializers.deserialize(value,
specifiedType: const FullType(CoreOpenGraphObject))! as CoreOpenGraphObject);
break;
case 'accessible':
result.accessible = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool;
@ -1326,8 +1323,7 @@ class _$CoreCollectionSerializer implements StructuredSerializer<CoreCollection>
'name',
serializers.serialize(object.name, specifiedType: const FullType(String)),
'resources',
serializers.serialize(object.resources,
specifiedType: const FullType(BuiltList, [FullType(CoreOpenGraphObject)])),
serializers.serialize(object.resources, specifiedType: const FullType(BuiltList, [FullType(CoreResource)])),
];
return result;
@ -1352,7 +1348,7 @@ class _$CoreCollectionSerializer implements StructuredSerializer<CoreCollection>
break;
case 'resources':
result.resources.replace(serializers.deserialize(value,
specifiedType: const FullType(BuiltList, [FullType(CoreOpenGraphObject)]))! as BuiltList<Object?>);
specifiedType: const FullType(BuiltList, [FullType(CoreResource)]))! as BuiltList<Object?>);
break;
}
}
@ -5336,8 +5332,7 @@ class _$CoreReferenceApiResolveResponseApplicationJson_Ocs_DataSerializer
final result = <Object?>[
'references',
serializers.serialize(object.references,
specifiedType: const FullType(BuiltMap,
[FullType(String), FullType(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References)])),
specifiedType: const FullType(BuiltMap, [FullType(String), FullType(CoreReference)])),
];
return result;
@ -5357,8 +5352,7 @@ class _$CoreReferenceApiResolveResponseApplicationJson_Ocs_DataSerializer
switch (key) {
case 'references':
result.references.replace(serializers.deserialize(value,
specifiedType: const FullType(BuiltMap,
[FullType(String), FullType(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References)]))!);
specifiedType: const FullType(BuiltMap, [FullType(String), FullType(CoreReference)]))!);
break;
}
}
@ -5479,8 +5473,7 @@ class _$CoreReferenceApiExtractResponseApplicationJson_Ocs_DataSerializer
final result = <Object?>[
'references',
serializers.serialize(object.references,
specifiedType: const FullType(BuiltMap,
[FullType(String), FullType(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References)])),
specifiedType: const FullType(BuiltMap, [FullType(String), FullType(CoreReference)])),
];
return result;
@ -5500,8 +5493,7 @@ class _$CoreReferenceApiExtractResponseApplicationJson_Ocs_DataSerializer
switch (key) {
case 'references':
result.references.replace(serializers.deserialize(value,
specifiedType: const FullType(BuiltMap,
[FullType(String), FullType(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References)]))!);
specifiedType: const FullType(BuiltMap, [FullType(String), FullType(CoreReference)]))!);
break;
}
}
@ -10013,9 +10005,9 @@ class CoreLoginFlowV2Builder
}
}
abstract mixin class CoreOpenGraphObject_OpenGraphObjectInterfaceBuilder {
void replace(CoreOpenGraphObject_OpenGraphObjectInterface other);
void update(void Function(CoreOpenGraphObject_OpenGraphObjectInterfaceBuilder) updates);
abstract mixin class CoreOpenGraphObjectInterfaceBuilder {
void replace(CoreOpenGraphObjectInterface other);
void update(void Function(CoreOpenGraphObjectInterfaceBuilder) updates);
String? get id;
set id(String? id);
@ -10032,7 +10024,7 @@ abstract mixin class CoreOpenGraphObject_OpenGraphObjectInterfaceBuilder {
set link(String? link);
}
class _$CoreOpenGraphObject_OpenGraphObject extends CoreOpenGraphObject_OpenGraphObject {
class _$CoreOpenGraphObject extends CoreOpenGraphObject {
@override
final String id;
@override
@ -10044,28 +10036,27 @@ class _$CoreOpenGraphObject_OpenGraphObject extends CoreOpenGraphObject_OpenGrap
@override
final String link;
factory _$CoreOpenGraphObject_OpenGraphObject([void Function(CoreOpenGraphObject_OpenGraphObjectBuilder)? updates]) =>
(CoreOpenGraphObject_OpenGraphObjectBuilder()..update(updates))._build();
factory _$CoreOpenGraphObject([void Function(CoreOpenGraphObjectBuilder)? updates]) =>
(CoreOpenGraphObjectBuilder()..update(updates))._build();
_$CoreOpenGraphObject_OpenGraphObject._(
{required this.id, required this.name, this.description, this.thumb, required this.link})
_$CoreOpenGraphObject._({required this.id, required this.name, this.description, this.thumb, required this.link})
: super._() {
BuiltValueNullFieldError.checkNotNull(id, r'CoreOpenGraphObject_OpenGraphObject', 'id');
BuiltValueNullFieldError.checkNotNull(name, r'CoreOpenGraphObject_OpenGraphObject', 'name');
BuiltValueNullFieldError.checkNotNull(link, r'CoreOpenGraphObject_OpenGraphObject', 'link');
BuiltValueNullFieldError.checkNotNull(id, r'CoreOpenGraphObject', 'id');
BuiltValueNullFieldError.checkNotNull(name, r'CoreOpenGraphObject', 'name');
BuiltValueNullFieldError.checkNotNull(link, r'CoreOpenGraphObject', 'link');
}
@override
CoreOpenGraphObject_OpenGraphObject rebuild(void Function(CoreOpenGraphObject_OpenGraphObjectBuilder) updates) =>
CoreOpenGraphObject rebuild(void Function(CoreOpenGraphObjectBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
CoreOpenGraphObject_OpenGraphObjectBuilder toBuilder() => CoreOpenGraphObject_OpenGraphObjectBuilder()..replace(this);
CoreOpenGraphObjectBuilder toBuilder() => CoreOpenGraphObjectBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is CoreOpenGraphObject_OpenGraphObject &&
return other is CoreOpenGraphObject &&
id == other.id &&
name == other.name &&
description == other.description &&
@ -10087,7 +10078,7 @@ class _$CoreOpenGraphObject_OpenGraphObject extends CoreOpenGraphObject_OpenGrap
@override
String toString() {
return (newBuiltValueToStringHelper(r'CoreOpenGraphObject_OpenGraphObject')
return (newBuiltValueToStringHelper(r'CoreOpenGraphObject')
..add('id', id)
..add('name', name)
..add('description', description)
@ -10097,11 +10088,9 @@ class _$CoreOpenGraphObject_OpenGraphObject extends CoreOpenGraphObject_OpenGrap
}
}
class CoreOpenGraphObject_OpenGraphObjectBuilder
implements
Builder<CoreOpenGraphObject_OpenGraphObject, CoreOpenGraphObject_OpenGraphObjectBuilder>,
CoreOpenGraphObject_OpenGraphObjectInterfaceBuilder {
_$CoreOpenGraphObject_OpenGraphObject? _$v;
class CoreOpenGraphObjectBuilder
implements Builder<CoreOpenGraphObject, CoreOpenGraphObjectBuilder>, CoreOpenGraphObjectInterfaceBuilder {
_$CoreOpenGraphObject? _$v;
String? _id;
String? get id => _$this._id;
@ -10123,9 +10112,9 @@ class CoreOpenGraphObject_OpenGraphObjectBuilder
String? get link => _$this._link;
set link(covariant String? link) => _$this._link = link;
CoreOpenGraphObject_OpenGraphObjectBuilder();
CoreOpenGraphObjectBuilder();
CoreOpenGraphObject_OpenGraphObjectBuilder get _$this {
CoreOpenGraphObjectBuilder get _$this {
final $v = _$v;
if ($v != null) {
_id = $v.id;
@ -10139,81 +10128,80 @@ class CoreOpenGraphObject_OpenGraphObjectBuilder
}
@override
void replace(covariant CoreOpenGraphObject_OpenGraphObject other) {
void replace(covariant CoreOpenGraphObject other) {
ArgumentError.checkNotNull(other, 'other');
_$v = other as _$CoreOpenGraphObject_OpenGraphObject;
_$v = other as _$CoreOpenGraphObject;
}
@override
void update(void Function(CoreOpenGraphObject_OpenGraphObjectBuilder)? updates) {
void update(void Function(CoreOpenGraphObjectBuilder)? updates) {
if (updates != null) updates(this);
}
@override
CoreOpenGraphObject_OpenGraphObject build() => _build();
CoreOpenGraphObject build() => _build();
_$CoreOpenGraphObject_OpenGraphObject _build() {
_$CoreOpenGraphObject _build() {
final _$result = _$v ??
_$CoreOpenGraphObject_OpenGraphObject._(
id: BuiltValueNullFieldError.checkNotNull(id, r'CoreOpenGraphObject_OpenGraphObject', 'id'),
name: BuiltValueNullFieldError.checkNotNull(name, r'CoreOpenGraphObject_OpenGraphObject', 'name'),
_$CoreOpenGraphObject._(
id: BuiltValueNullFieldError.checkNotNull(id, r'CoreOpenGraphObject', 'id'),
name: BuiltValueNullFieldError.checkNotNull(name, r'CoreOpenGraphObject', 'name'),
description: description,
thumb: thumb,
link: BuiltValueNullFieldError.checkNotNull(link, r'CoreOpenGraphObject_OpenGraphObject', 'link'));
link: BuiltValueNullFieldError.checkNotNull(link, r'CoreOpenGraphObject', 'link'));
replace(_$result);
return _$result;
}
}
abstract mixin class CoreOpenGraphObjectInterfaceBuilder {
void replace(CoreOpenGraphObjectInterface other);
void update(void Function(CoreOpenGraphObjectInterfaceBuilder) updates);
abstract mixin class CoreResourceInterfaceBuilder {
void replace(CoreResourceInterface other);
void update(void Function(CoreResourceInterfaceBuilder) updates);
String? get richObjectType;
set richObjectType(String? richObjectType);
MapBuilder<String, JsonObject> get richObject;
set richObject(MapBuilder<String, JsonObject>? richObject);
CoreOpenGraphObject_OpenGraphObjectBuilder get openGraphObject;
set openGraphObject(CoreOpenGraphObject_OpenGraphObjectBuilder? openGraphObject);
CoreOpenGraphObjectBuilder get openGraphObject;
set openGraphObject(CoreOpenGraphObjectBuilder? openGraphObject);
bool? get accessible;
set accessible(bool? accessible);
}
class _$CoreOpenGraphObject extends CoreOpenGraphObject {
class _$CoreResource extends CoreResource {
@override
final String richObjectType;
@override
final BuiltMap<String, JsonObject> richObject;
@override
final CoreOpenGraphObject_OpenGraphObject openGraphObject;
final CoreOpenGraphObject openGraphObject;
@override
final bool accessible;
factory _$CoreOpenGraphObject([void Function(CoreOpenGraphObjectBuilder)? updates]) =>
(CoreOpenGraphObjectBuilder()..update(updates))._build();
factory _$CoreResource([void Function(CoreResourceBuilder)? updates]) =>
(CoreResourceBuilder()..update(updates))._build();
_$CoreOpenGraphObject._(
_$CoreResource._(
{required this.richObjectType, required this.richObject, required this.openGraphObject, required this.accessible})
: super._() {
BuiltValueNullFieldError.checkNotNull(richObjectType, r'CoreOpenGraphObject', 'richObjectType');
BuiltValueNullFieldError.checkNotNull(richObject, r'CoreOpenGraphObject', 'richObject');
BuiltValueNullFieldError.checkNotNull(openGraphObject, r'CoreOpenGraphObject', 'openGraphObject');
BuiltValueNullFieldError.checkNotNull(accessible, r'CoreOpenGraphObject', 'accessible');
BuiltValueNullFieldError.checkNotNull(richObjectType, r'CoreResource', 'richObjectType');
BuiltValueNullFieldError.checkNotNull(richObject, r'CoreResource', 'richObject');
BuiltValueNullFieldError.checkNotNull(openGraphObject, r'CoreResource', 'openGraphObject');
BuiltValueNullFieldError.checkNotNull(accessible, r'CoreResource', 'accessible');
}
@override
CoreOpenGraphObject rebuild(void Function(CoreOpenGraphObjectBuilder) updates) =>
(toBuilder()..update(updates)).build();
CoreResource rebuild(void Function(CoreResourceBuilder) updates) => (toBuilder()..update(updates)).build();
@override
CoreOpenGraphObjectBuilder toBuilder() => CoreOpenGraphObjectBuilder()..replace(this);
CoreResourceBuilder toBuilder() => CoreResourceBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is CoreOpenGraphObject &&
return other is CoreResource &&
richObjectType == other.richObjectType &&
richObject == other.richObject &&
openGraphObject == other.openGraphObject &&
@ -10233,7 +10221,7 @@ class _$CoreOpenGraphObject extends CoreOpenGraphObject {
@override
String toString() {
return (newBuiltValueToStringHelper(r'CoreOpenGraphObject')
return (newBuiltValueToStringHelper(r'CoreResource')
..add('richObjectType', richObjectType)
..add('richObject', richObject)
..add('openGraphObject', openGraphObject)
@ -10242,9 +10230,8 @@ class _$CoreOpenGraphObject extends CoreOpenGraphObject {
}
}
class CoreOpenGraphObjectBuilder
implements Builder<CoreOpenGraphObject, CoreOpenGraphObjectBuilder>, CoreOpenGraphObjectInterfaceBuilder {
_$CoreOpenGraphObject? _$v;
class CoreResourceBuilder implements Builder<CoreResource, CoreResourceBuilder>, CoreResourceInterfaceBuilder {
_$CoreResource? _$v;
String? _richObjectType;
String? get richObjectType => _$this._richObjectType;
@ -10254,19 +10241,18 @@ class CoreOpenGraphObjectBuilder
MapBuilder<String, JsonObject> get richObject => _$this._richObject ??= MapBuilder<String, JsonObject>();
set richObject(covariant MapBuilder<String, JsonObject>? richObject) => _$this._richObject = richObject;
CoreOpenGraphObject_OpenGraphObjectBuilder? _openGraphObject;
CoreOpenGraphObject_OpenGraphObjectBuilder get openGraphObject =>
_$this._openGraphObject ??= CoreOpenGraphObject_OpenGraphObjectBuilder();
set openGraphObject(covariant CoreOpenGraphObject_OpenGraphObjectBuilder? openGraphObject) =>
CoreOpenGraphObjectBuilder? _openGraphObject;
CoreOpenGraphObjectBuilder get openGraphObject => _$this._openGraphObject ??= CoreOpenGraphObjectBuilder();
set openGraphObject(covariant CoreOpenGraphObjectBuilder? openGraphObject) =>
_$this._openGraphObject = openGraphObject;
bool? _accessible;
bool? get accessible => _$this._accessible;
set accessible(covariant bool? accessible) => _$this._accessible = accessible;
CoreOpenGraphObjectBuilder();
CoreResourceBuilder();
CoreOpenGraphObjectBuilder get _$this {
CoreResourceBuilder get _$this {
final $v = _$v;
if ($v != null) {
_richObjectType = $v.richObjectType;
@ -10279,29 +10265,28 @@ class CoreOpenGraphObjectBuilder
}
@override
void replace(covariant CoreOpenGraphObject other) {
void replace(covariant CoreResource other) {
ArgumentError.checkNotNull(other, 'other');
_$v = other as _$CoreOpenGraphObject;
_$v = other as _$CoreResource;
}
@override
void update(void Function(CoreOpenGraphObjectBuilder)? updates) {
void update(void Function(CoreResourceBuilder)? updates) {
if (updates != null) updates(this);
}
@override
CoreOpenGraphObject build() => _build();
CoreResource build() => _build();
_$CoreOpenGraphObject _build() {
_$CoreOpenGraphObject _$result;
_$CoreResource _build() {
_$CoreResource _$result;
try {
_$result = _$v ??
_$CoreOpenGraphObject._(
richObjectType:
BuiltValueNullFieldError.checkNotNull(richObjectType, r'CoreOpenGraphObject', 'richObjectType'),
_$CoreResource._(
richObjectType: BuiltValueNullFieldError.checkNotNull(richObjectType, r'CoreResource', 'richObjectType'),
richObject: richObject.build(),
openGraphObject: openGraphObject.build(),
accessible: BuiltValueNullFieldError.checkNotNull(accessible, r'CoreOpenGraphObject', 'accessible'));
accessible: BuiltValueNullFieldError.checkNotNull(accessible, r'CoreResource', 'accessible'));
} catch (_) {
late String _$failedField;
try {
@ -10310,7 +10295,7 @@ class CoreOpenGraphObjectBuilder
_$failedField = 'openGraphObject';
openGraphObject.build();
} catch (e) {
throw BuiltValueNestedFieldError(r'CoreOpenGraphObject', _$failedField, e.toString());
throw BuiltValueNestedFieldError(r'CoreResource', _$failedField, e.toString());
}
rethrow;
}
@ -10328,8 +10313,8 @@ abstract mixin class CoreCollectionInterfaceBuilder {
String? get name;
set name(String? name);
ListBuilder<CoreOpenGraphObject> get resources;
set resources(ListBuilder<CoreOpenGraphObject>? resources);
ListBuilder<CoreResource> get resources;
set resources(ListBuilder<CoreResource>? resources);
}
class _$CoreCollection extends CoreCollection {
@ -10338,7 +10323,7 @@ class _$CoreCollection extends CoreCollection {
@override
final String name;
@override
final BuiltList<CoreOpenGraphObject> resources;
final BuiltList<CoreResource> resources;
factory _$CoreCollection([void Function(CoreCollectionBuilder)? updates]) =>
(CoreCollectionBuilder()..update(updates))._build();
@ -10392,9 +10377,9 @@ class CoreCollectionBuilder implements Builder<CoreCollection, CoreCollectionBui
String? get name => _$this._name;
set name(covariant String? name) => _$this._name = name;
ListBuilder<CoreOpenGraphObject>? _resources;
ListBuilder<CoreOpenGraphObject> get resources => _$this._resources ??= ListBuilder<CoreOpenGraphObject>();
set resources(covariant ListBuilder<CoreOpenGraphObject>? resources) => _$this._resources = resources;
ListBuilder<CoreResource>? _resources;
ListBuilder<CoreResource> get resources => _$this._resources ??= ListBuilder<CoreResource>();
set resources(covariant ListBuilder<CoreResource>? resources) => _$this._resources = resources;
CoreCollectionBuilder();
@ -20533,145 +20518,17 @@ class CoreReferenceApiResolveOneResponseApplicationJsonBuilder
}
}
class _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References
extends CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References {
@override
final JsonObject data;
@override
final CoreReference? reference;
@override
final JsonObject? jsonObject;
factory _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References(
[void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder)? updates]) =>
(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder()..update(updates))._build();
_$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References._(
{required this.data, this.reference, this.jsonObject})
: super._() {
BuiltValueNullFieldError.checkNotNull(
data, r'CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References', 'data');
}
@override
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References rebuild(
void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder toBuilder() =>
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References &&
data == other.data &&
reference == other.reference &&
jsonObject == other.jsonObject;
}
@override
int get hashCode {
var _$hash = 0;
_$hash = $jc(_$hash, data.hashCode);
_$hash = $jc(_$hash, reference.hashCode);
_$hash = $jc(_$hash, jsonObject.hashCode);
_$hash = $jf(_$hash);
return _$hash;
}
@override
String toString() {
return (newBuiltValueToStringHelper(r'CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References')
..add('data', data)
..add('reference', reference)
..add('jsonObject', jsonObject))
.toString();
}
}
class CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder
implements
Builder<CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References,
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder> {
_$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References? _$v;
JsonObject? _data;
JsonObject? get data => _$this._data;
set data(JsonObject? data) => _$this._data = data;
CoreReferenceBuilder? _reference;
CoreReferenceBuilder get reference => _$this._reference ??= CoreReferenceBuilder();
set reference(CoreReferenceBuilder? reference) => _$this._reference = reference;
JsonObject? _jsonObject;
JsonObject? get jsonObject => _$this._jsonObject;
set jsonObject(JsonObject? jsonObject) => _$this._jsonObject = jsonObject;
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder();
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder get _$this {
final $v = _$v;
if ($v != null) {
_data = $v.data;
_reference = $v.reference?.toBuilder();
_jsonObject = $v.jsonObject;
_$v = null;
}
return this;
}
@override
void replace(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References other) {
ArgumentError.checkNotNull(other, 'other');
_$v = other as _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References;
}
@override
void update(void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder)? updates) {
if (updates != null) updates(this);
}
@override
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References build() => _build();
_$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References _build() {
_$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References _$result;
try {
_$result = _$v ??
_$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References._(
data: BuiltValueNullFieldError.checkNotNull(
data, r'CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References', 'data'),
reference: _reference?.build(),
jsonObject: jsonObject);
} catch (_) {
late String _$failedField;
try {
_$failedField = 'reference';
_reference?.build();
} catch (e) {
throw BuiltValueNestedFieldError(
r'CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}
}
abstract mixin class CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterfaceBuilder {
void replace(CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterface other);
void update(void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterfaceBuilder) updates);
MapBuilder<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References> get references;
set references(MapBuilder<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References>? references);
MapBuilder<String, CoreReference> get references;
set references(MapBuilder<String, CoreReference>? references);
}
class _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data
extends CoreReferenceApiResolveResponseApplicationJson_Ocs_Data {
@override
final BuiltMap<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References> references;
final BuiltMap<String, CoreReference> references;
factory _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data(
[void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_DataBuilder)? updates]) =>
@ -20720,13 +20577,9 @@ class CoreReferenceApiResolveResponseApplicationJson_Ocs_DataBuilder
CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterfaceBuilder {
_$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data? _$v;
MapBuilder<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References>? _references;
MapBuilder<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References> get references =>
_$this._references ??= MapBuilder<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References>();
set references(
covariant MapBuilder<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References>?
references) =>
_$this._references = references;
MapBuilder<String, CoreReference>? _references;
MapBuilder<String, CoreReference> get references => _$this._references ??= MapBuilder<String, CoreReference>();
set references(covariant MapBuilder<String, CoreReference>? references) => _$this._references = references;
CoreReferenceApiResolveResponseApplicationJson_Ocs_DataBuilder();
@ -20999,145 +20852,17 @@ class CoreReferenceApiResolveResponseApplicationJsonBuilder
}
}
class _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References
extends CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References {
@override
final JsonObject data;
@override
final CoreReference? reference;
@override
final JsonObject? jsonObject;
factory _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References(
[void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder)? updates]) =>
(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder()..update(updates))._build();
_$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References._(
{required this.data, this.reference, this.jsonObject})
: super._() {
BuiltValueNullFieldError.checkNotNull(
data, r'CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References', 'data');
}
@override
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References rebuild(
void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder toBuilder() =>
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References &&
data == other.data &&
reference == other.reference &&
jsonObject == other.jsonObject;
}
@override
int get hashCode {
var _$hash = 0;
_$hash = $jc(_$hash, data.hashCode);
_$hash = $jc(_$hash, reference.hashCode);
_$hash = $jc(_$hash, jsonObject.hashCode);
_$hash = $jf(_$hash);
return _$hash;
}
@override
String toString() {
return (newBuiltValueToStringHelper(r'CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References')
..add('data', data)
..add('reference', reference)
..add('jsonObject', jsonObject))
.toString();
}
}
class CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder
implements
Builder<CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References,
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder> {
_$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References? _$v;
JsonObject? _data;
JsonObject? get data => _$this._data;
set data(JsonObject? data) => _$this._data = data;
CoreReferenceBuilder? _reference;
CoreReferenceBuilder get reference => _$this._reference ??= CoreReferenceBuilder();
set reference(CoreReferenceBuilder? reference) => _$this._reference = reference;
JsonObject? _jsonObject;
JsonObject? get jsonObject => _$this._jsonObject;
set jsonObject(JsonObject? jsonObject) => _$this._jsonObject = jsonObject;
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder();
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder get _$this {
final $v = _$v;
if ($v != null) {
_data = $v.data;
_reference = $v.reference?.toBuilder();
_jsonObject = $v.jsonObject;
_$v = null;
}
return this;
}
@override
void replace(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References other) {
ArgumentError.checkNotNull(other, 'other');
_$v = other as _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References;
}
@override
void update(void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder)? updates) {
if (updates != null) updates(this);
}
@override
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References build() => _build();
_$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References _build() {
_$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References _$result;
try {
_$result = _$v ??
_$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References._(
data: BuiltValueNullFieldError.checkNotNull(
data, r'CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References', 'data'),
reference: _reference?.build(),
jsonObject: jsonObject);
} catch (_) {
late String _$failedField;
try {
_$failedField = 'reference';
_reference?.build();
} catch (e) {
throw BuiltValueNestedFieldError(
r'CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}
}
abstract mixin class CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterfaceBuilder {
void replace(CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterface other);
void update(void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterfaceBuilder) updates);
MapBuilder<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References> get references;
set references(MapBuilder<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References>? references);
MapBuilder<String, CoreReference> get references;
set references(MapBuilder<String, CoreReference>? references);
}
class _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data
extends CoreReferenceApiExtractResponseApplicationJson_Ocs_Data {
@override
final BuiltMap<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References> references;
final BuiltMap<String, CoreReference> references;
factory _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data(
[void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_DataBuilder)? updates]) =>
@ -21186,13 +20911,9 @@ class CoreReferenceApiExtractResponseApplicationJson_Ocs_DataBuilder
CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterfaceBuilder {
_$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data? _$v;
MapBuilder<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References>? _references;
MapBuilder<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References> get references =>
_$this._references ??= MapBuilder<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References>();
set references(
covariant MapBuilder<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References>?
references) =>
_$this._references = references;
MapBuilder<String, CoreReference>? _references;
MapBuilder<String, CoreReference> get references => _$this._references ??= MapBuilder<String, CoreReference>();
set references(covariant MapBuilder<String, CoreReference>? references) => _$this._references = references;
CoreReferenceApiExtractResponseApplicationJson_Ocs_DataBuilder();

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

@ -74,7 +74,7 @@
"resources": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OpenGraphObject"
"$ref": "#/components/schemas/Resource"
}
}
}
@ -225,24 +225,6 @@
}
},
"OpenGraphObject": {
"type": "object",
"required": [
"richObjectType",
"richObject",
"openGraphObject",
"accessible"
],
"properties": {
"richObjectType": {
"type": "string"
},
"richObject": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"openGraphObject": {
"type": "object",
"required": [
"id",
@ -271,11 +253,6 @@
}
}
},
"accessible": {
"type": "boolean"
}
}
},
"Reference": {
"type": "object",
"required": [
@ -334,6 +311,32 @@
}
}
},
"Resource": {
"type": "object",
"required": [
"richObjectType",
"richObject",
"openGraphObject",
"accessible"
],
"properties": {
"richObjectType": {
"type": "string"
},
"richObject": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"openGraphObject": {
"$ref": "#/components/schemas/OpenGraphObject"
},
"accessible": {
"type": "boolean"
}
}
},
"Status": {
"type": "object",
"required": [
@ -4015,15 +4018,8 @@
"references": {
"type": "object",
"additionalProperties": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Reference"
},
{
"type": "object"
}
]
"$ref": "#/components/schemas/Reference",
"nullable": true
}
}
}
@ -4122,15 +4118,8 @@
"references": {
"type": "object",
"additionalProperties": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Reference"
},
{
"type": "object"
}
]
"$ref": "#/components/schemas/Reference",
"nullable": true
}
}
}

9
packages/nextcloud/lib/src/api/provisioning_api.openapi.dart

@ -3525,6 +3525,7 @@ abstract class ProvisioningApiUserDetailsQuota_Quota
// coverage:ignore-end
JsonObject get data;
num? get $num;
int? get $int;
String? get string;
@BuiltValueSerializer(custom: true)
static Serializer<ProvisioningApiUserDetailsQuota_Quota> get serializer =>
@ -3557,10 +3558,16 @@ class _$ProvisioningApiUserDetailsQuota_QuotaSerializer
try {
result._$num = data as num?;
} catch (_) {}
try {
result._$int = data as int?;
} catch (_) {}
try {
result._string = data as String?;
} catch (_) {}
assert([result._$num, result._string].where((final x) => x != null).isNotEmpty, 'Need oneOf for ${result._data}');
assert(
[result._$num, result._$int, result._string].where((final x) => x != null).isNotEmpty,
'Need oneOf for ${result._data}',
);
return result.build();
}
}

13
packages/nextcloud/lib/src/api/provisioning_api.openapi.g.dart

@ -11361,13 +11361,15 @@ class _$ProvisioningApiUserDetailsQuota_Quota extends ProvisioningApiUserDetails
@override
final num? $num;
@override
final int? $int;
@override
final String? string;
factory _$ProvisioningApiUserDetailsQuota_Quota(
[void Function(ProvisioningApiUserDetailsQuota_QuotaBuilder)? updates]) =>
(ProvisioningApiUserDetailsQuota_QuotaBuilder()..update(updates))._build();
_$ProvisioningApiUserDetailsQuota_Quota._({required this.data, this.$num, this.string}) : super._() {
_$ProvisioningApiUserDetailsQuota_Quota._({required this.data, this.$num, this.$int, this.string}) : super._() {
BuiltValueNullFieldError.checkNotNull(data, r'ProvisioningApiUserDetailsQuota_Quota', 'data');
}
@ -11385,6 +11387,7 @@ class _$ProvisioningApiUserDetailsQuota_Quota extends ProvisioningApiUserDetails
return other is ProvisioningApiUserDetailsQuota_Quota &&
data == other.data &&
$num == other.$num &&
$int == other.$int &&
string == other.string;
}
@ -11393,6 +11396,7 @@ class _$ProvisioningApiUserDetailsQuota_Quota extends ProvisioningApiUserDetails
var _$hash = 0;
_$hash = $jc(_$hash, data.hashCode);
_$hash = $jc(_$hash, $num.hashCode);
_$hash = $jc(_$hash, $int.hashCode);
_$hash = $jc(_$hash, string.hashCode);
_$hash = $jf(_$hash);
return _$hash;
@ -11403,6 +11407,7 @@ class _$ProvisioningApiUserDetailsQuota_Quota extends ProvisioningApiUserDetails
return (newBuiltValueToStringHelper(r'ProvisioningApiUserDetailsQuota_Quota')
..add('data', data)
..add('\$num', $num)
..add('\$int', $int)
..add('string', string))
.toString();
}
@ -11420,6 +11425,10 @@ class ProvisioningApiUserDetailsQuota_QuotaBuilder
num? get $num => _$this._$num;
set $num(num? $num) => _$this._$num = $num;
int? _$int;
int? get $int => _$this._$int;
set $int(int? $int) => _$this._$int = $int;
String? _string;
String? get string => _$this._string;
set string(String? string) => _$this._string = string;
@ -11431,6 +11440,7 @@ class ProvisioningApiUserDetailsQuota_QuotaBuilder
if ($v != null) {
_data = $v.data;
_$num = $v.$num;
_$int = $v.$int;
_string = $v.string;
_$v = null;
}
@ -11456,6 +11466,7 @@ class ProvisioningApiUserDetailsQuota_QuotaBuilder
_$ProvisioningApiUserDetailsQuota_Quota._(
data: BuiltValueNullFieldError.checkNotNull(data, r'ProvisioningApiUserDetailsQuota_Quota', 'data'),
$num: $num,
$int: $int,
string: string);
replace(_$result);
return _$result;

4
packages/nextcloud/lib/src/api/provisioning_api.openapi.json

@ -517,6 +517,10 @@
"type": "number",
"format": "float"
},
{
"type": "integer",
"format": "int64"
},
{
"type": "string"
}

Loading…
Cancel
Save