ModerationQueryEventsInput constructor

  1. @JsonSerializable(includeIfNull: false)
const ModerationQueryEventsInput({
  1. List<String>? types,
  2. String? createdBy,
  3. @Default('desc') String sortDirection,
  4. DateTime? createdAfter,
  5. DateTime? createdBefore,
  6. String? subject,
  7. List<String>? collections,
  8. @ModerationQueryEventsSubjectTypeConverter() ModerationQueryEventsSubjectType? subjectType,
  9. @Default(false) bool includeAllUserRecords,
  10. @Default(50) int limit,
  11. bool? hasComment,
  12. String? comment,
  13. List<String>? addedLabels,
  14. List<String>? removedLabels,
  15. List<String>? addedTags,
  16. List<String>? removedTags,
  17. List<String>? reportTypes,
  18. List<String>? policies,
  19. List<String>? modTool,
  20. String? batchId,
  21. @ModerationQueryEventsAgeAssuranceStateConverter() ModerationQueryEventsAgeAssuranceState? ageAssuranceState,
  22. String? cursor,
  23. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ModerationQueryEventsInput({
  List<String>? types,
  String? createdBy,

  /// Sort direction for the events. Defaults to descending order of created at timestamp.
  @Default('desc') String sortDirection,

  /// Retrieve events created after a given timestamp
  DateTime? createdAfter,

  /// Retrieve events created before a given timestamp
  DateTime? createdBefore,
  String? subject,
  List<String>? collections,

  /// If specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.
  @ModerationQueryEventsSubjectTypeConverter()
  ModerationQueryEventsSubjectType? subjectType,

  /// If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned.
  @Default(false) bool includeAllUserRecords,
  @Default(50) int limit,

  /// If true, only events with comments are returned
  bool? hasComment,

  /// If specified, only events with comments containing the keyword are returned. Apply || separator to use multiple keywords and match using OR condition.
  String? comment,
  List<String>? addedLabels,
  List<String>? removedLabels,
  List<String>? addedTags,
  List<String>? removedTags,
  List<String>? reportTypes,

  /// If specified, only events where the action policies match any of the given policies are returned
  List<String>? policies,
  List<String>? modTool,

  /// If specified, only events where the batchId matches the given value are returned
  String? batchId,

  /// If specified, only events where the age assurance state matches the given value are returned
  @ModerationQueryEventsAgeAssuranceStateConverter()
  ModerationQueryEventsAgeAssuranceState? ageAssuranceState,
  String? cursor,

  Map<String, dynamic>? $unknown,
}) = _ModerationQueryEventsInput;