This commit is contained in:
Hillel Coren 2021-02-28 20:36:49 +02:00
parent 153ba70484
commit 511f18dcad
3 changed files with 93 additions and 24 deletions

View File

@ -246,6 +246,9 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
'invoice_task_timelog',
serializers.serialize(object.invoiceTaskTimelog,
specifiedType: const FullType(bool)),
'invoice_task_datelog',
serializers.serialize(object.invoiceTaskDatelog,
specifiedType: const FullType(bool)),
'auto_start_tasks',
serializers.serialize(object.autoStartTasks,
specifiedType: const FullType(bool)),
@ -616,6 +619,10 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
result.invoiceTaskTimelog = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool;
break;
case 'invoice_task_datelog':
result.invoiceTaskDatelog = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool;
break;
case 'auto_start_tasks':
result.autoStartTasks = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool;
@ -3088,6 +3095,8 @@ class _$CompanyEntity extends CompanyEntity {
@override
final bool invoiceTaskTimelog;
@override
final bool invoiceTaskDatelog;
@override
final bool autoStartTasks;
@override
final bool showTasksTable;
@ -3182,6 +3191,7 @@ class _$CompanyEntity extends CompanyEntity {
this.invoiceExpenseDocuments,
this.invoiceTaskDocuments,
this.invoiceTaskTimelog,
this.invoiceTaskDatelog,
this.autoStartTasks,
this.showTasksTable,
this.settings,
@ -3398,6 +3408,9 @@ class _$CompanyEntity extends CompanyEntity {
if (invoiceTaskTimelog == null) {
throw new BuiltValueNullFieldError('CompanyEntity', 'invoiceTaskTimelog');
}
if (invoiceTaskDatelog == null) {
throw new BuiltValueNullFieldError('CompanyEntity', 'invoiceTaskDatelog');
}
if (autoStartTasks == null) {
throw new BuiltValueNullFieldError('CompanyEntity', 'autoStartTasks');
}
@ -3501,6 +3514,7 @@ class _$CompanyEntity extends CompanyEntity {
invoiceExpenseDocuments == other.invoiceExpenseDocuments &&
invoiceTaskDocuments == other.invoiceTaskDocuments &&
invoiceTaskTimelog == other.invoiceTaskTimelog &&
invoiceTaskDatelog == other.invoiceTaskDatelog &&
autoStartTasks == other.autoStartTasks &&
showTasksTable == other.showTasksTable &&
settings == other.settings &&
@ -3538,12 +3552,12 @@ class _$CompanyEntity extends CompanyEntity {
$jc(
$jc(
$jc(
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, enableCustomSurchargeTaxes1.hashCode), enableCustomSurchargeTaxes2.hashCode), enableCustomSurchargeTaxes3.hashCode), enableCustomSurchargeTaxes4.hashCode), sizeId.hashCode), industryId.hashCode), subdomain.hashCode), portalMode.hashCode), portalDomain.hashCode), updateProducts.hashCode), convertProductExchangeRate.hashCode), fillProducts.hashCode), enableProductCost.hashCode), enableProductQuantity.hashCode), enableProductDiscount.hashCode), defaultTaskIsDateBased.hashCode), defaultQuantity.hashCode), showProductDetails.hashCode), clientCanRegister.hashCode), isLarge.hashCode), isDisabled.hashCode), enableShopApi.hashCode), companyKey.hashCode), firstDayOfWeek.hashCode), firstMonthOfYear.hashCode), numberOfInvoiceTaxRates.hashCode), numberOfItemTaxRates.hashCode), expenseInclusiveTaxes.hashCode), sessionTimeout.hashCode), oauthPasswordRequired.hashCode), groups.hashCode), activities.hashCode), taxRates.hashCode), taskStatuses.hashCode), taskStatusMap.hashCode), companyGateways.hashCode), expenseCategories.hashCode), users.hashCode), clients.hashCode), products.hashCode), invoices.hashCode), recurringInvoices.hashCode), payments.hashCode), quotes.hashCode), credits.hashCode), tasks.hashCode), projects.hashCode), expenses.hashCode), vendors.hashCode), designs.hashCode), documents.hashCode), tokens.hashCode), webhooks.hashCode), paymentTerms.hashCode), customFields.hashCode), slackWebhookUrl.hashCode), googleAnalyticsKey.hashCode),
markExpensesInvoiceable.hashCode),
markExpensesPaid.hashCode),
invoiceExpenseDocuments.hashCode),
invoiceTaskDocuments.hashCode),
invoiceTaskTimelog.hashCode),
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, enableCustomSurchargeTaxes1.hashCode), enableCustomSurchargeTaxes2.hashCode), enableCustomSurchargeTaxes3.hashCode), enableCustomSurchargeTaxes4.hashCode), sizeId.hashCode), industryId.hashCode), subdomain.hashCode), portalMode.hashCode), portalDomain.hashCode), updateProducts.hashCode), convertProductExchangeRate.hashCode), fillProducts.hashCode), enableProductCost.hashCode), enableProductQuantity.hashCode), enableProductDiscount.hashCode), defaultTaskIsDateBased.hashCode), defaultQuantity.hashCode), showProductDetails.hashCode), clientCanRegister.hashCode), isLarge.hashCode), isDisabled.hashCode), enableShopApi.hashCode), companyKey.hashCode), firstDayOfWeek.hashCode), firstMonthOfYear.hashCode), numberOfInvoiceTaxRates.hashCode), numberOfItemTaxRates.hashCode), expenseInclusiveTaxes.hashCode), sessionTimeout.hashCode), oauthPasswordRequired.hashCode), groups.hashCode), activities.hashCode), taxRates.hashCode), taskStatuses.hashCode), taskStatusMap.hashCode), companyGateways.hashCode), expenseCategories.hashCode), users.hashCode), clients.hashCode), products.hashCode), invoices.hashCode), recurringInvoices.hashCode), payments.hashCode), quotes.hashCode), credits.hashCode), tasks.hashCode), projects.hashCode), expenses.hashCode), vendors.hashCode), designs.hashCode), documents.hashCode), tokens.hashCode), webhooks.hashCode), paymentTerms.hashCode), customFields.hashCode), slackWebhookUrl.hashCode), googleAnalyticsKey.hashCode), markExpensesInvoiceable.hashCode),
markExpensesPaid.hashCode),
invoiceExpenseDocuments.hashCode),
invoiceTaskDocuments.hashCode),
invoiceTaskTimelog.hashCode),
invoiceTaskDatelog.hashCode),
autoStartTasks.hashCode),
showTasksTable.hashCode),
settings.hashCode),
@ -3625,6 +3639,7 @@ class _$CompanyEntity extends CompanyEntity {
..add('invoiceExpenseDocuments', invoiceExpenseDocuments)
..add('invoiceTaskDocuments', invoiceTaskDocuments)
..add('invoiceTaskTimelog', invoiceTaskTimelog)
..add('invoiceTaskDatelog', invoiceTaskDatelog)
..add('autoStartTasks', autoStartTasks)
..add('showTasksTable', showTasksTable)
..add('settings', settings)
@ -3964,6 +3979,11 @@ class CompanyEntityBuilder
set invoiceTaskTimelog(bool invoiceTaskTimelog) =>
_$this._invoiceTaskTimelog = invoiceTaskTimelog;
bool _invoiceTaskDatelog;
bool get invoiceTaskDatelog => _$this._invoiceTaskDatelog;
set invoiceTaskDatelog(bool invoiceTaskDatelog) =>
_$this._invoiceTaskDatelog = invoiceTaskDatelog;
bool _autoStartTasks;
bool get autoStartTasks => _$this._autoStartTasks;
set autoStartTasks(bool autoStartTasks) =>
@ -4095,6 +4115,7 @@ class CompanyEntityBuilder
_invoiceExpenseDocuments = _$v.invoiceExpenseDocuments;
_invoiceTaskDocuments = _$v.invoiceTaskDocuments;
_invoiceTaskTimelog = _$v.invoiceTaskTimelog;
_invoiceTaskDatelog = _$v.invoiceTaskDatelog;
_autoStartTasks = _$v.autoStartTasks;
_showTasksTable = _$v.showTasksTable;
_settings = _$v.settings?.toBuilder();
@ -4195,6 +4216,7 @@ class CompanyEntityBuilder
invoiceExpenseDocuments: invoiceExpenseDocuments,
invoiceTaskDocuments: invoiceTaskDocuments,
invoiceTaskTimelog: invoiceTaskTimelog,
invoiceTaskDatelog: invoiceTaskDatelog,
autoStartTasks: autoStartTasks,
showTasksTable: showTasksTable,
settings: settings.build(),

View File

@ -929,6 +929,12 @@ class _$InvitationEntitySerializer
'id',
serializers.serialize(object.id, specifiedType: const FullType(String)),
];
if (object.emailStatus != null) {
result
..add('email_status')
..add(serializers.serialize(object.emailStatus,
specifiedType: const FullType(String)));
}
if (object.isChanged != null) {
result
..add('isChanged')
@ -998,6 +1004,10 @@ class _$InvitationEntitySerializer
result.openedDate = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'email_status':
result.emailStatus = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'isChanged':
result.isChanged = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool;
@ -2823,6 +2833,8 @@ class _$InvitationEntity extends InvitationEntity {
@override
final String openedDate;
@override
final String emailStatus;
@override
final bool isChanged;
@override
final int createdAt;
@ -2852,6 +2864,7 @@ class _$InvitationEntity extends InvitationEntity {
this.sentDate,
this.viewedDate,
this.openedDate,
this.emailStatus,
this.isChanged,
this.createdAt,
this.updatedAt,
@ -2912,6 +2925,7 @@ class _$InvitationEntity extends InvitationEntity {
sentDate == other.sentDate &&
viewedDate == other.viewedDate &&
openedDate == other.openedDate &&
emailStatus == other.emailStatus &&
isChanged == other.isChanged &&
createdAt == other.createdAt &&
updatedAt == other.updatedAt &&
@ -2940,13 +2954,15 @@ class _$InvitationEntity extends InvitationEntity {
$jc(
$jc(
$jc(
$jc(0,
key.hashCode),
link.hashCode),
contactId.hashCode),
sentDate.hashCode),
viewedDate.hashCode),
openedDate.hashCode),
$jc(
$jc(0,
key.hashCode),
link.hashCode),
contactId.hashCode),
sentDate.hashCode),
viewedDate.hashCode),
openedDate.hashCode),
emailStatus.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
@ -2967,6 +2983,7 @@ class _$InvitationEntity extends InvitationEntity {
..add('sentDate', sentDate)
..add('viewedDate', viewedDate)
..add('openedDate', openedDate)
..add('emailStatus', emailStatus)
..add('isChanged', isChanged)
..add('createdAt', createdAt)
..add('updatedAt', updatedAt)
@ -3008,6 +3025,10 @@ class InvitationEntityBuilder
String get openedDate => _$this._openedDate;
set openedDate(String openedDate) => _$this._openedDate = openedDate;
String _emailStatus;
String get emailStatus => _$this._emailStatus;
set emailStatus(String emailStatus) => _$this._emailStatus = emailStatus;
bool _isChanged;
bool get isChanged => _$this._isChanged;
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
@ -3056,6 +3077,7 @@ class InvitationEntityBuilder
_sentDate = _$v.sentDate;
_viewedDate = _$v.viewedDate;
_openedDate = _$v.openedDate;
_emailStatus = _$v.emailStatus;
_isChanged = _$v.isChanged;
_createdAt = _$v.createdAt;
_updatedAt = _$v.updatedAt;
@ -3093,6 +3115,7 @@ class InvitationEntityBuilder
sentDate: sentDate,
viewedDate: viewedDate,
openedDate: openedDate,
emailStatus: emailStatus,
isChanged: isChanged,
createdAt: createdAt,
updatedAt: updatedAt,

View File

@ -182,6 +182,9 @@ class _$UserEntitySerializer implements StructuredSerializer<UserEntity> {
'custom_value4',
serializers.serialize(object.customValue4,
specifiedType: const FullType(String)),
'google_2fa_secret',
serializers.serialize(object.isTwoFactorEnabled,
specifiedType: const FullType(bool)),
'oauth_provider_id',
serializers.serialize(object.oauthProvider,
specifiedType: const FullType(String)),
@ -293,6 +296,10 @@ class _$UserEntitySerializer implements StructuredSerializer<UserEntity> {
result.customValue4 = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'google_2fa_secret':
result.isTwoFactorEnabled = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool;
break;
case 'company_user':
result.userCompany.replace(serializers.deserialize(value,
specifiedType: const FullType(UserCompanyEntity))
@ -647,6 +654,8 @@ class _$UserEntity extends UserEntity {
@override
final String customValue4;
@override
final bool isTwoFactorEnabled;
@override
final UserCompanyEntity userCompany;
@override
final String oauthProvider;
@ -681,6 +690,7 @@ class _$UserEntity extends UserEntity {
this.customValue2,
this.customValue3,
this.customValue4,
this.isTwoFactorEnabled,
this.userCompany,
this.oauthProvider,
this.isChanged,
@ -716,6 +726,9 @@ class _$UserEntity extends UserEntity {
if (customValue4 == null) {
throw new BuiltValueNullFieldError('UserEntity', 'customValue4');
}
if (isTwoFactorEnabled == null) {
throw new BuiltValueNullFieldError('UserEntity', 'isTwoFactorEnabled');
}
if (oauthProvider == null) {
throw new BuiltValueNullFieldError('UserEntity', 'oauthProvider');
}
@ -754,6 +767,7 @@ class _$UserEntity extends UserEntity {
customValue2 == other.customValue2 &&
customValue3 == other.customValue3 &&
customValue4 == other.customValue4 &&
isTwoFactorEnabled == other.isTwoFactorEnabled &&
userCompany == other.userCompany &&
oauthProvider == other.oauthProvider &&
isChanged == other.isChanged &&
@ -787,16 +801,16 @@ class _$UserEntity extends UserEntity {
$jc(
$jc(
$jc(
$jc($jc(0, firstName.hashCode),
lastName.hashCode),
email.hashCode),
phone.hashCode),
password.hashCode),
emailVerifiedAt.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
$jc($jc($jc(0, firstName.hashCode), lastName.hashCode),
email.hashCode),
phone.hashCode),
password.hashCode),
emailVerifiedAt.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
isTwoFactorEnabled.hashCode),
userCompany.hashCode),
oauthProvider.hashCode),
isChanged.hashCode),
@ -822,6 +836,7 @@ class _$UserEntity extends UserEntity {
..add('customValue2', customValue2)
..add('customValue3', customValue3)
..add('customValue4', customValue4)
..add('isTwoFactorEnabled', isTwoFactorEnabled)
..add('userCompany', userCompany)
..add('oauthProvider', oauthProvider)
..add('isChanged', isChanged)
@ -880,6 +895,11 @@ class UserEntityBuilder implements Builder<UserEntity, UserEntityBuilder> {
String get customValue4 => _$this._customValue4;
set customValue4(String customValue4) => _$this._customValue4 = customValue4;
bool _isTwoFactorEnabled;
bool get isTwoFactorEnabled => _$this._isTwoFactorEnabled;
set isTwoFactorEnabled(bool isTwoFactorEnabled) =>
_$this._isTwoFactorEnabled = isTwoFactorEnabled;
UserCompanyEntityBuilder _userCompany;
UserCompanyEntityBuilder get userCompany =>
_$this._userCompany ??= new UserCompanyEntityBuilder();
@ -925,7 +945,9 @@ class UserEntityBuilder implements Builder<UserEntity, UserEntityBuilder> {
String get id => _$this._id;
set id(String id) => _$this._id = id;
UserEntityBuilder();
UserEntityBuilder() {
UserEntity._initializeBuilder(this);
}
UserEntityBuilder get _$this {
if (_$v != null) {
@ -939,6 +961,7 @@ class UserEntityBuilder implements Builder<UserEntity, UserEntityBuilder> {
_customValue2 = _$v.customValue2;
_customValue3 = _$v.customValue3;
_customValue4 = _$v.customValue4;
_isTwoFactorEnabled = _$v.isTwoFactorEnabled;
_userCompany = _$v.userCompany?.toBuilder();
_oauthProvider = _$v.oauthProvider;
_isChanged = _$v.isChanged;
@ -983,6 +1006,7 @@ class UserEntityBuilder implements Builder<UserEntity, UserEntityBuilder> {
customValue2: customValue2,
customValue3: customValue3,
customValue4: customValue4,
isTwoFactorEnabled: isTwoFactorEnabled,
userCompany: _userCompany?.build(),
oauthProvider: oauthProvider,
isChanged: isChanged,