Update models
This commit is contained in:
parent
a289da6550
commit
21b409f6df
|
|
@ -181,6 +181,8 @@ class _$DesignEntitySerializer implements StructuredSerializer<DesignEntity> {
|
||||||
'is_custom',
|
'is_custom',
|
||||||
serializers.serialize(object.isCustom,
|
serializers.serialize(object.isCustom,
|
||||||
specifiedType: const FullType(bool)),
|
specifiedType: const FullType(bool)),
|
||||||
|
'is_free',
|
||||||
|
serializers.serialize(object.isFree, specifiedType: const FullType(bool)),
|
||||||
'created_at',
|
'created_at',
|
||||||
serializers.serialize(object.createdAt,
|
serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)),
|
specifiedType: const FullType(int)),
|
||||||
|
|
@ -244,6 +246,10 @@ class _$DesignEntitySerializer implements StructuredSerializer<DesignEntity> {
|
||||||
result.isCustom = serializers.deserialize(value,
|
result.isCustom = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(bool)) as bool;
|
specifiedType: const FullType(bool)) as bool;
|
||||||
break;
|
break;
|
||||||
|
case 'is_free':
|
||||||
|
result.isFree = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(bool)) as bool;
|
||||||
|
break;
|
||||||
case 'isChanged':
|
case 'isChanged':
|
||||||
result.isChanged = serializers.deserialize(value,
|
result.isChanged = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(bool)) as bool;
|
specifiedType: const FullType(bool)) as bool;
|
||||||
|
|
@ -609,6 +615,8 @@ class _$DesignEntity extends DesignEntity {
|
||||||
@override
|
@override
|
||||||
final bool isCustom;
|
final bool isCustom;
|
||||||
@override
|
@override
|
||||||
|
final bool isFree;
|
||||||
|
@override
|
||||||
final bool isChanged;
|
final bool isChanged;
|
||||||
@override
|
@override
|
||||||
final int createdAt;
|
final int createdAt;
|
||||||
|
|
@ -632,6 +640,7 @@ class _$DesignEntity extends DesignEntity {
|
||||||
{this.name,
|
{this.name,
|
||||||
this.design,
|
this.design,
|
||||||
this.isCustom,
|
this.isCustom,
|
||||||
|
this.isFree,
|
||||||
this.isChanged,
|
this.isChanged,
|
||||||
this.createdAt,
|
this.createdAt,
|
||||||
this.updatedAt,
|
this.updatedAt,
|
||||||
|
|
@ -650,6 +659,9 @@ class _$DesignEntity extends DesignEntity {
|
||||||
if (isCustom == null) {
|
if (isCustom == null) {
|
||||||
throw new BuiltValueNullFieldError('DesignEntity', 'isCustom');
|
throw new BuiltValueNullFieldError('DesignEntity', 'isCustom');
|
||||||
}
|
}
|
||||||
|
if (isFree == null) {
|
||||||
|
throw new BuiltValueNullFieldError('DesignEntity', 'isFree');
|
||||||
|
}
|
||||||
if (createdAt == null) {
|
if (createdAt == null) {
|
||||||
throw new BuiltValueNullFieldError('DesignEntity', 'createdAt');
|
throw new BuiltValueNullFieldError('DesignEntity', 'createdAt');
|
||||||
}
|
}
|
||||||
|
|
@ -678,6 +690,7 @@ class _$DesignEntity extends DesignEntity {
|
||||||
name == other.name &&
|
name == other.name &&
|
||||||
design == other.design &&
|
design == other.design &&
|
||||||
isCustom == other.isCustom &&
|
isCustom == other.isCustom &&
|
||||||
|
isFree == other.isFree &&
|
||||||
isChanged == other.isChanged &&
|
isChanged == other.isChanged &&
|
||||||
createdAt == other.createdAt &&
|
createdAt == other.createdAt &&
|
||||||
updatedAt == other.updatedAt &&
|
updatedAt == other.updatedAt &&
|
||||||
|
|
@ -700,9 +713,11 @@ class _$DesignEntity extends DesignEntity {
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc($jc(0, name.hashCode),
|
$jc(
|
||||||
design.hashCode),
|
$jc($jc(0, name.hashCode),
|
||||||
isCustom.hashCode),
|
design.hashCode),
|
||||||
|
isCustom.hashCode),
|
||||||
|
isFree.hashCode),
|
||||||
isChanged.hashCode),
|
isChanged.hashCode),
|
||||||
createdAt.hashCode),
|
createdAt.hashCode),
|
||||||
updatedAt.hashCode),
|
updatedAt.hashCode),
|
||||||
|
|
@ -719,6 +734,7 @@ class _$DesignEntity extends DesignEntity {
|
||||||
..add('name', name)
|
..add('name', name)
|
||||||
..add('design', design)
|
..add('design', design)
|
||||||
..add('isCustom', isCustom)
|
..add('isCustom', isCustom)
|
||||||
|
..add('isFree', isFree)
|
||||||
..add('isChanged', isChanged)
|
..add('isChanged', isChanged)
|
||||||
..add('createdAt', createdAt)
|
..add('createdAt', createdAt)
|
||||||
..add('updatedAt', updatedAt)
|
..add('updatedAt', updatedAt)
|
||||||
|
|
@ -748,6 +764,10 @@ class DesignEntityBuilder
|
||||||
bool get isCustom => _$this._isCustom;
|
bool get isCustom => _$this._isCustom;
|
||||||
set isCustom(bool isCustom) => _$this._isCustom = isCustom;
|
set isCustom(bool isCustom) => _$this._isCustom = isCustom;
|
||||||
|
|
||||||
|
bool _isFree;
|
||||||
|
bool get isFree => _$this._isFree;
|
||||||
|
set isFree(bool isFree) => _$this._isFree = isFree;
|
||||||
|
|
||||||
bool _isChanged;
|
bool _isChanged;
|
||||||
bool get isChanged => _$this._isChanged;
|
bool get isChanged => _$this._isChanged;
|
||||||
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
|
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
|
||||||
|
|
@ -782,13 +802,16 @@ class DesignEntityBuilder
|
||||||
String get id => _$this._id;
|
String get id => _$this._id;
|
||||||
set id(String id) => _$this._id = id;
|
set id(String id) => _$this._id = id;
|
||||||
|
|
||||||
DesignEntityBuilder();
|
DesignEntityBuilder() {
|
||||||
|
DesignEntity._initializeBuilder(this);
|
||||||
|
}
|
||||||
|
|
||||||
DesignEntityBuilder get _$this {
|
DesignEntityBuilder get _$this {
|
||||||
if (_$v != null) {
|
if (_$v != null) {
|
||||||
_name = _$v.name;
|
_name = _$v.name;
|
||||||
_design = _$v.design?.toBuilder();
|
_design = _$v.design?.toBuilder();
|
||||||
_isCustom = _$v.isCustom;
|
_isCustom = _$v.isCustom;
|
||||||
|
_isFree = _$v.isFree;
|
||||||
_isChanged = _$v.isChanged;
|
_isChanged = _$v.isChanged;
|
||||||
_createdAt = _$v.createdAt;
|
_createdAt = _$v.createdAt;
|
||||||
_updatedAt = _$v.updatedAt;
|
_updatedAt = _$v.updatedAt;
|
||||||
|
|
@ -824,6 +847,7 @@ class DesignEntityBuilder
|
||||||
name: name,
|
name: name,
|
||||||
design: design.build(),
|
design: design.build(),
|
||||||
isCustom: isCustom,
|
isCustom: isCustom,
|
||||||
|
isFree: isFree,
|
||||||
isChanged: isChanged,
|
isChanged: isChanged,
|
||||||
createdAt: createdAt,
|
createdAt: createdAt,
|
||||||
updatedAt: updatedAt,
|
updatedAt: updatedAt,
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,9 @@ class _$HealthCheckResponseSerializer
|
||||||
'pdf_engine',
|
'pdf_engine',
|
||||||
serializers.serialize(object.pdfEngine,
|
serializers.serialize(object.pdfEngine,
|
||||||
specifiedType: const FullType(String)),
|
specifiedType: const FullType(String)),
|
||||||
|
'queue',
|
||||||
|
serializers.serialize(object.queue,
|
||||||
|
specifiedType: const FullType(String)),
|
||||||
];
|
];
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
@ -121,6 +124,10 @@ class _$HealthCheckResponseSerializer
|
||||||
result.pdfEngine = serializers.deserialize(value,
|
result.pdfEngine = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(String)) as String;
|
specifiedType: const FullType(String)) as String;
|
||||||
break;
|
break;
|
||||||
|
case 'queue':
|
||||||
|
result.queue = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -217,6 +224,8 @@ class _$HealthCheckResponse extends HealthCheckResponse {
|
||||||
final int pendingJobs;
|
final int pendingJobs;
|
||||||
@override
|
@override
|
||||||
final String pdfEngine;
|
final String pdfEngine;
|
||||||
|
@override
|
||||||
|
final String queue;
|
||||||
|
|
||||||
factory _$HealthCheckResponse(
|
factory _$HealthCheckResponse(
|
||||||
[void Function(HealthCheckResponseBuilder) updates]) =>
|
[void Function(HealthCheckResponseBuilder) updates]) =>
|
||||||
|
|
@ -233,7 +242,8 @@ class _$HealthCheckResponse extends HealthCheckResponse {
|
||||||
this.execEnabled,
|
this.execEnabled,
|
||||||
this.emailDriver,
|
this.emailDriver,
|
||||||
this.pendingJobs,
|
this.pendingJobs,
|
||||||
this.pdfEngine})
|
this.pdfEngine,
|
||||||
|
this.queue})
|
||||||
: super._() {
|
: super._() {
|
||||||
if (systemHealth == null) {
|
if (systemHealth == null) {
|
||||||
throw new BuiltValueNullFieldError('HealthCheckResponse', 'systemHealth');
|
throw new BuiltValueNullFieldError('HealthCheckResponse', 'systemHealth');
|
||||||
|
|
@ -269,6 +279,9 @@ class _$HealthCheckResponse extends HealthCheckResponse {
|
||||||
if (pdfEngine == null) {
|
if (pdfEngine == null) {
|
||||||
throw new BuiltValueNullFieldError('HealthCheckResponse', 'pdfEngine');
|
throw new BuiltValueNullFieldError('HealthCheckResponse', 'pdfEngine');
|
||||||
}
|
}
|
||||||
|
if (queue == null) {
|
||||||
|
throw new BuiltValueNullFieldError('HealthCheckResponse', 'queue');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -294,7 +307,8 @@ class _$HealthCheckResponse extends HealthCheckResponse {
|
||||||
execEnabled == other.execEnabled &&
|
execEnabled == other.execEnabled &&
|
||||||
emailDriver == other.emailDriver &&
|
emailDriver == other.emailDriver &&
|
||||||
pendingJobs == other.pendingJobs &&
|
pendingJobs == other.pendingJobs &&
|
||||||
pdfEngine == other.pdfEngine;
|
pdfEngine == other.pdfEngine &&
|
||||||
|
queue == other.queue;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __hashCode;
|
int __hashCode;
|
||||||
|
|
@ -309,17 +323,19 @@ class _$HealthCheckResponse extends HealthCheckResponse {
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc($jc(0, systemHealth.hashCode),
|
$jc(
|
||||||
phpVersion.hashCode),
|
$jc($jc(0, systemHealth.hashCode),
|
||||||
envWritable.hashCode),
|
phpVersion.hashCode),
|
||||||
dbCheck.hashCode),
|
envWritable.hashCode),
|
||||||
cacheEnabled.hashCode),
|
dbCheck.hashCode),
|
||||||
phantomEnabled.hashCode),
|
cacheEnabled.hashCode),
|
||||||
openBasedir.hashCode),
|
phantomEnabled.hashCode),
|
||||||
execEnabled.hashCode),
|
openBasedir.hashCode),
|
||||||
emailDriver.hashCode),
|
execEnabled.hashCode),
|
||||||
pendingJobs.hashCode),
|
emailDriver.hashCode),
|
||||||
pdfEngine.hashCode));
|
pendingJobs.hashCode),
|
||||||
|
pdfEngine.hashCode),
|
||||||
|
queue.hashCode));
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -335,7 +351,8 @@ class _$HealthCheckResponse extends HealthCheckResponse {
|
||||||
..add('execEnabled', execEnabled)
|
..add('execEnabled', execEnabled)
|
||||||
..add('emailDriver', emailDriver)
|
..add('emailDriver', emailDriver)
|
||||||
..add('pendingJobs', pendingJobs)
|
..add('pendingJobs', pendingJobs)
|
||||||
..add('pdfEngine', pdfEngine))
|
..add('pdfEngine', pdfEngine)
|
||||||
|
..add('queue', queue))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -391,6 +408,10 @@ class HealthCheckResponseBuilder
|
||||||
String get pdfEngine => _$this._pdfEngine;
|
String get pdfEngine => _$this._pdfEngine;
|
||||||
set pdfEngine(String pdfEngine) => _$this._pdfEngine = pdfEngine;
|
set pdfEngine(String pdfEngine) => _$this._pdfEngine = pdfEngine;
|
||||||
|
|
||||||
|
String _queue;
|
||||||
|
String get queue => _$this._queue;
|
||||||
|
set queue(String queue) => _$this._queue = queue;
|
||||||
|
|
||||||
HealthCheckResponseBuilder();
|
HealthCheckResponseBuilder();
|
||||||
|
|
||||||
HealthCheckResponseBuilder get _$this {
|
HealthCheckResponseBuilder get _$this {
|
||||||
|
|
@ -406,6 +427,7 @@ class HealthCheckResponseBuilder
|
||||||
_emailDriver = _$v.emailDriver;
|
_emailDriver = _$v.emailDriver;
|
||||||
_pendingJobs = _$v.pendingJobs;
|
_pendingJobs = _$v.pendingJobs;
|
||||||
_pdfEngine = _$v.pdfEngine;
|
_pdfEngine = _$v.pdfEngine;
|
||||||
|
_queue = _$v.queue;
|
||||||
_$v = null;
|
_$v = null;
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
|
@ -440,7 +462,8 @@ class HealthCheckResponseBuilder
|
||||||
execEnabled: execEnabled,
|
execEnabled: execEnabled,
|
||||||
emailDriver: emailDriver,
|
emailDriver: emailDriver,
|
||||||
pendingJobs: pendingJobs,
|
pendingJobs: pendingJobs,
|
||||||
pdfEngine: pdfEngine);
|
pdfEngine: pdfEngine,
|
||||||
|
queue: queue);
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
String _$failedField;
|
String _$failedField;
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
|
|
@ -731,6 +731,9 @@ class _$InvoiceItemEntitySerializer
|
||||||
specifiedType: const FullType(String)),
|
specifiedType: const FullType(String)),
|
||||||
'cost',
|
'cost',
|
||||||
serializers.serialize(object.cost, specifiedType: const FullType(double)),
|
serializers.serialize(object.cost, specifiedType: const FullType(double)),
|
||||||
|
'product_cost',
|
||||||
|
serializers.serialize(object.productCost,
|
||||||
|
specifiedType: const FullType(String)),
|
||||||
'quantity',
|
'quantity',
|
||||||
serializers.serialize(object.quantity,
|
serializers.serialize(object.quantity,
|
||||||
specifiedType: const FullType(double)),
|
specifiedType: const FullType(double)),
|
||||||
|
|
@ -819,6 +822,10 @@ class _$InvoiceItemEntitySerializer
|
||||||
result.cost = serializers.deserialize(value,
|
result.cost = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(double)) as double;
|
specifiedType: const FullType(double)) as double;
|
||||||
break;
|
break;
|
||||||
|
case 'product_cost':
|
||||||
|
result.productCost = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
case 'quantity':
|
case 'quantity':
|
||||||
result.quantity = serializers.deserialize(value,
|
result.quantity = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(double)) as double;
|
specifiedType: const FullType(double)) as double;
|
||||||
|
|
@ -2466,6 +2473,8 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
||||||
@override
|
@override
|
||||||
final double cost;
|
final double cost;
|
||||||
@override
|
@override
|
||||||
|
final String productCost;
|
||||||
|
@override
|
||||||
final double quantity;
|
final double quantity;
|
||||||
@override
|
@override
|
||||||
final String taxName1;
|
final String taxName1;
|
||||||
|
|
@ -2506,6 +2515,7 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
||||||
{this.productKey,
|
{this.productKey,
|
||||||
this.notes,
|
this.notes,
|
||||||
this.cost,
|
this.cost,
|
||||||
|
this.productCost,
|
||||||
this.quantity,
|
this.quantity,
|
||||||
this.taxName1,
|
this.taxName1,
|
||||||
this.taxRate1,
|
this.taxRate1,
|
||||||
|
|
@ -2532,6 +2542,9 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
||||||
if (cost == null) {
|
if (cost == null) {
|
||||||
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'cost');
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'cost');
|
||||||
}
|
}
|
||||||
|
if (productCost == null) {
|
||||||
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'productCost');
|
||||||
|
}
|
||||||
if (quantity == null) {
|
if (quantity == null) {
|
||||||
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'quantity');
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'quantity');
|
||||||
}
|
}
|
||||||
|
|
@ -2585,6 +2598,7 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
||||||
productKey == other.productKey &&
|
productKey == other.productKey &&
|
||||||
notes == other.notes &&
|
notes == other.notes &&
|
||||||
cost == other.cost &&
|
cost == other.cost &&
|
||||||
|
productCost == other.productCost &&
|
||||||
quantity == other.quantity &&
|
quantity == other.quantity &&
|
||||||
taxName1 == other.taxName1 &&
|
taxName1 == other.taxName1 &&
|
||||||
taxRate1 == other.taxRate1 &&
|
taxRate1 == other.taxRate1 &&
|
||||||
|
|
@ -2624,18 +2638,12 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc($jc(0, productKey.hashCode),
|
||||||
0,
|
notes.hashCode),
|
||||||
productKey
|
cost.hashCode),
|
||||||
.hashCode),
|
productCost.hashCode),
|
||||||
notes
|
quantity.hashCode),
|
||||||
.hashCode),
|
taxName1.hashCode),
|
||||||
cost
|
|
||||||
.hashCode),
|
|
||||||
quantity
|
|
||||||
.hashCode),
|
|
||||||
taxName1
|
|
||||||
.hashCode),
|
|
||||||
taxRate1.hashCode),
|
taxRate1.hashCode),
|
||||||
taxName2.hashCode),
|
taxName2.hashCode),
|
||||||
taxRate2.hashCode),
|
taxRate2.hashCode),
|
||||||
|
|
@ -2658,6 +2666,7 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
||||||
..add('productKey', productKey)
|
..add('productKey', productKey)
|
||||||
..add('notes', notes)
|
..add('notes', notes)
|
||||||
..add('cost', cost)
|
..add('cost', cost)
|
||||||
|
..add('productCost', productCost)
|
||||||
..add('quantity', quantity)
|
..add('quantity', quantity)
|
||||||
..add('taxName1', taxName1)
|
..add('taxName1', taxName1)
|
||||||
..add('taxRate1', taxRate1)
|
..add('taxRate1', taxRate1)
|
||||||
|
|
@ -2694,6 +2703,10 @@ class InvoiceItemEntityBuilder
|
||||||
double get cost => _$this._cost;
|
double get cost => _$this._cost;
|
||||||
set cost(double cost) => _$this._cost = cost;
|
set cost(double cost) => _$this._cost = cost;
|
||||||
|
|
||||||
|
String _productCost;
|
||||||
|
String get productCost => _$this._productCost;
|
||||||
|
set productCost(String productCost) => _$this._productCost = productCost;
|
||||||
|
|
||||||
double _quantity;
|
double _quantity;
|
||||||
double get quantity => _$this._quantity;
|
double get quantity => _$this._quantity;
|
||||||
set quantity(double quantity) => _$this._quantity = quantity;
|
set quantity(double quantity) => _$this._quantity = quantity;
|
||||||
|
|
@ -2758,13 +2771,16 @@ class InvoiceItemEntityBuilder
|
||||||
int get createdAt => _$this._createdAt;
|
int get createdAt => _$this._createdAt;
|
||||||
set createdAt(int createdAt) => _$this._createdAt = createdAt;
|
set createdAt(int createdAt) => _$this._createdAt = createdAt;
|
||||||
|
|
||||||
InvoiceItemEntityBuilder();
|
InvoiceItemEntityBuilder() {
|
||||||
|
InvoiceItemEntity._initializeBuilder(this);
|
||||||
|
}
|
||||||
|
|
||||||
InvoiceItemEntityBuilder get _$this {
|
InvoiceItemEntityBuilder get _$this {
|
||||||
if (_$v != null) {
|
if (_$v != null) {
|
||||||
_productKey = _$v.productKey;
|
_productKey = _$v.productKey;
|
||||||
_notes = _$v.notes;
|
_notes = _$v.notes;
|
||||||
_cost = _$v.cost;
|
_cost = _$v.cost;
|
||||||
|
_productCost = _$v.productCost;
|
||||||
_quantity = _$v.quantity;
|
_quantity = _$v.quantity;
|
||||||
_taxName1 = _$v.taxName1;
|
_taxName1 = _$v.taxName1;
|
||||||
_taxRate1 = _$v.taxRate1;
|
_taxRate1 = _$v.taxRate1;
|
||||||
|
|
@ -2806,6 +2822,7 @@ class InvoiceItemEntityBuilder
|
||||||
productKey: productKey,
|
productKey: productKey,
|
||||||
notes: notes,
|
notes: notes,
|
||||||
cost: cost,
|
cost: cost,
|
||||||
|
productCost: productCost,
|
||||||
quantity: quantity,
|
quantity: quantity,
|
||||||
taxName1: taxName1,
|
taxName1: taxName1,
|
||||||
taxRate1: taxRate1,
|
taxRate1: taxRate1,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue