Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Aug 21, 2024
2 parents 25f9fa6 + 19cce0f commit 8e9a425
Show file tree
Hide file tree
Showing 8 changed files with 694 additions and 114 deletions.
63 changes: 62 additions & 1 deletion lib/data/models/health_check_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ abstract class HealthCheckResponse
pdfEngine: '',
pendingJobs: 0,
phantomEnabled: false,
pendingMigration: false,
phpVersion: HealthCheckPHPResponse(),
queueData: HealthCheckQueueResponse(),
queue: '',
systemHealth: false,
trailingSlash: false,
Expand All @@ -38,6 +40,9 @@ abstract class HealthCheckResponse
@BuiltValueField(wireName: 'php_version')
HealthCheckPHPResponse get phpVersion;

@BuiltValueField(wireName: 'queue_data')
HealthCheckQueueResponse get queueData;

@BuiltValueField(wireName: 'env_writable')
bool get envWritable;

Expand Down Expand Up @@ -74,12 +79,17 @@ abstract class HealthCheckResponse
@BuiltValueField(wireName: 'exchange_rate_api_not_configured')
bool get exchangeRateApiNotConfigured;

@BuiltValueField(wireName: 'pending_migration')
bool get pendingMigration;

String get queue;

// ignore: unused_element
static void _initializeBuilder(HealthCheckResponseBuilder builder) => builder
..trailingSlash = false
..filePermissions = '';
..pendingMigration = false
..filePermissions = ''
..queueData.replace(HealthCheckQueueResponse());

static Serializer<HealthCheckResponse> get serializer =>
_$healthCheckResponseSerializer;
Expand Down Expand Up @@ -124,3 +134,54 @@ abstract class HealthCheckPHPResponse
static Serializer<HealthCheckPHPResponse> get serializer =>
_$healthCheckPHPResponseSerializer;
}

abstract class HealthCheckQueueResponse
implements
Built<HealthCheckQueueResponse, HealthCheckQueueResponseBuilder> {
factory HealthCheckQueueResponse() {
return _$HealthCheckQueueResponse._(
failed: 0,
pending: 0,
lastError: '',
);
}

HealthCheckQueueResponse._();

@override
@memoized
int get hashCode;

int get failed;

int get pending;

@BuiltValueField(wireName: 'last_error')
String get lastError;

static Serializer<HealthCheckQueueResponse> get serializer =>
_$healthCheckQueueResponseSerializer;
}

abstract class HealthCheckLastErrorResponse
implements
Built<HealthCheckLastErrorResponse,
HealthCheckLastErrorResponseBuilder> {
factory HealthCheckLastErrorResponse() {
return _$HealthCheckLastErrorResponse._(
lastError: '',
);
}

HealthCheckLastErrorResponse._();

@override
@memoized
int get hashCode;

@BuiltValueField(wireName: 'last_error')
String get lastError;

static Serializer<HealthCheckLastErrorResponse> get serializer =>
_$healthCheckLastErrorResponseSerializer;
}
Loading

0 comments on commit 8e9a425

Please sign in to comment.