Admin Portal - Profile

This commit is contained in:
hillelcoren 2023-03-09 12:53:13 +00:00
parent 97cd9c5974
commit b98670b642

View File

@ -65354,19 +65354,18 @@
t1 = "" + t1;
} else
t1 = id;
return A._$UserEntity$_(0, "", 0, "", "", "", "", "", "", null, "", false, t1, false, false, false, "", "", false, "", "", "", "", false, 0, userCompany);
return A._$UserEntity$_(0, "", 0, "", "", "", "", "", "", null, "", false, t1, false, false, false, "", "", "", "", "", "", false, 0, userCompany);
},
UserEntity__initializeBuilder(builder) {
builder.get$_user_model$_$this()._isTwoFactorEnabled = false;
builder.get$_user_model$_$this()._hasPassword = false;
builder.get$_user_model$_$this()._phoneVerified = false;
builder.get$_user_model$_$this()._mailerConnected = false;
builder.get$_user_model$_$this()._password = "";
builder.get$_user_model$_$this()._lastEmailAddress = "";
builder.get$_user_model$_$this()._oauthUserToken = "";
return builder;
},
_$UserEntity$_(archivedAt, assignedUserId, createdAt, createdUserId, customValue1, customValue2, customValue3, customValue4, email, emailVerifiedAt, firstName, hasPassword, id, isChanged, isDeleted, isTwoFactorEnabled, lastEmailAddress, lastName, mailerConnected, oauthProvider, oauthUserToken, password, phone, phoneVerified, updatedAt, userCompany) {
_$UserEntity$_(archivedAt, assignedUserId, createdAt, createdUserId, customValue1, customValue2, customValue3, customValue4, email, emailVerifiedAt, firstName, hasPassword, id, isChanged, isDeleted, isTwoFactorEnabled, lastEmailAddress, lastName, oauthProvider, oauthUserToken, password, phone, phoneVerified, updatedAt, userCompany) {
var _s10_ = "UserEntity";
A.BuiltValueNullFieldError_checkNotNull(firstName, _s10_, "firstName");
A.BuiltValueNullFieldError_checkNotNull(lastName, _s10_, "lastName");
@ -65382,13 +65381,12 @@
A.BuiltValueNullFieldError_checkNotNull(hasPassword, _s10_, "hasPassword");
A.BuiltValueNullFieldError_checkNotNull(lastEmailAddress, _s10_, "lastEmailAddress");
A.BuiltValueNullFieldError_checkNotNull(oauthUserToken, _s10_, "oauthUserToken");
A.BuiltValueNullFieldError_checkNotNull(mailerConnected, _s10_, "mailerConnected");
A.BuiltValueNullFieldError_checkNotNull(oauthProvider, _s10_, "oauthProvider");
A.BuiltValueNullFieldError_checkNotNull(createdAt, _s10_, "createdAt");
A.BuiltValueNullFieldError_checkNotNull(updatedAt, _s10_, "updatedAt");
A.BuiltValueNullFieldError_checkNotNull(archivedAt, _s10_, "archivedAt");
A.BuiltValueNullFieldError_checkNotNull(id, _s10_, "id");
return new A._$UserEntity(firstName, lastName, email, phone, password, emailVerifiedAt, phoneVerified, customValue1, customValue2, customValue3, customValue4, isTwoFactorEnabled, hasPassword, lastEmailAddress, oauthUserToken, mailerConnected, userCompany, oauthProvider, isChanged, createdAt, updatedAt, archivedAt, isDeleted, createdUserId, assignedUserId, id);
return new A._$UserEntity(firstName, lastName, email, phone, password, emailVerifiedAt, phoneVerified, customValue1, customValue2, customValue3, customValue4, isTwoFactorEnabled, hasPassword, lastEmailAddress, oauthUserToken, userCompany, oauthProvider, isChanged, createdAt, updatedAt, archivedAt, isDeleted, createdUserId, assignedUserId, id);
},
UserListResponse: function UserListResponse() {
},
@ -65450,7 +65448,7 @@
UserCompanyItemResponseBuilder: function UserCompanyItemResponseBuilder() {
this._user_model$_data = this._user_model$_$v = null;
},
_$UserEntity: function _$UserEntity(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19, t20, t21, t22, t23, t24, t25) {
_$UserEntity: function _$UserEntity(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19, t20, t21, t22, t23, t24) {
var _ = this;
_.firstName = t0;
_.lastName = t1;
@ -65467,22 +65465,21 @@
_.hasPassword = t12;
_.lastEmailAddress = t13;
_.oauthUserToken = t14;
_.mailerConnected = t15;
_.userCompany = t16;
_.oauthProvider = t17;
_.isChanged = t18;
_.createdAt = t19;
_.updatedAt = t20;
_.archivedAt = t21;
_.isDeleted = t22;
_.createdUserId = t23;
_.assignedUserId = t24;
_.id = t25;
_.userCompany = t15;
_.oauthProvider = t16;
_.isChanged = t17;
_.createdAt = t18;
_.updatedAt = t19;
_.archivedAt = t20;
_.isDeleted = t21;
_.createdUserId = t22;
_.assignedUserId = t23;
_.id = t24;
_._user_model$__hashCode = null;
},
UserEntityBuilder: function UserEntityBuilder() {
var _ = this;
_._id = _._assignedUserId = _._createdUserId = _._isDeleted = _._archivedAt = _._user_model$_updatedAt = _._createdAt = _._user_model$_isChanged = _._oauthProvider = _._userCompany = _._mailerConnected = _._oauthUserToken = _._lastEmailAddress = _._hasPassword = _._isTwoFactorEnabled = _._customValue4 = _._customValue3 = _._customValue2 = _._customValue1 = _._phoneVerified = _._emailVerifiedAt = _._password = _._phone = _._email = _._lastName = _._firstName = _._user_model$_$v = null;
_._id = _._assignedUserId = _._createdUserId = _._isDeleted = _._archivedAt = _._user_model$_updatedAt = _._createdAt = _._user_model$_isChanged = _._oauthProvider = _._userCompany = _._oauthUserToken = _._lastEmailAddress = _._hasPassword = _._isTwoFactorEnabled = _._customValue4 = _._customValue3 = _._customValue2 = _._customValue1 = _._phoneVerified = _._emailVerifiedAt = _._password = _._phone = _._email = _._lastName = _._firstName = _._user_model$_$v = null;
},
_UserEntity_Object_BaseEntity: function _UserEntity_Object_BaseEntity() {
},
@ -376960,7 +376957,7 @@
};
A._$UserEntitySerializer.prototype = {
serialize$3$specifiedType(serializers, object, specifiedType) {
var result = A._setArrayType(["first_name", serializers.serialize$2$specifiedType(object.firstName, B.FullType_h8g), "last_name", serializers.serialize$2$specifiedType(object.lastName, B.FullType_h8g), "email", serializers.serialize$2$specifiedType(object.email, B.FullType_h8g), "phone", serializers.serialize$2$specifiedType(object.phone, B.FullType_h8g), "password", serializers.serialize$2$specifiedType(object.password, B.FullType_h8g), "verified_phone_number", serializers.serialize$2$specifiedType(object.phoneVerified, B.FullType_MtR), "custom_value1", serializers.serialize$2$specifiedType(object.customValue1, B.FullType_h8g), "custom_value2", serializers.serialize$2$specifiedType(object.customValue2, B.FullType_h8g), "custom_value3", serializers.serialize$2$specifiedType(object.customValue3, B.FullType_h8g), "custom_value4", serializers.serialize$2$specifiedType(object.customValue4, B.FullType_h8g), "google_2fa_secret", serializers.serialize$2$specifiedType(object.isTwoFactorEnabled, B.FullType_MtR), "has_password", serializers.serialize$2$specifiedType(object.hasPassword, B.FullType_MtR), "last_confirmed_email_address", serializers.serialize$2$specifiedType(object.lastEmailAddress, B.FullType_h8g), "oauth_user_token", serializers.serialize$2$specifiedType(object.oauthUserToken, B.FullType_h8g), "mailer_connected", serializers.serialize$2$specifiedType(object.mailerConnected, B.FullType_MtR), "oauth_provider_id", serializers.serialize$2$specifiedType(object.oauthProvider, B.FullType_h8g), "created_at", serializers.serialize$2$specifiedType(object.createdAt, B.FullType_kjq), "updated_at", serializers.serialize$2$specifiedType(object.updatedAt, B.FullType_kjq), "archived_at", serializers.serialize$2$specifiedType(object.archivedAt, B.FullType_kjq), "id", serializers.serialize$2$specifiedType(object.id, B.FullType_h8g)], type$.JSArray_legacy_Object),
var result = A._setArrayType(["first_name", serializers.serialize$2$specifiedType(object.firstName, B.FullType_h8g), "last_name", serializers.serialize$2$specifiedType(object.lastName, B.FullType_h8g), "email", serializers.serialize$2$specifiedType(object.email, B.FullType_h8g), "phone", serializers.serialize$2$specifiedType(object.phone, B.FullType_h8g), "password", serializers.serialize$2$specifiedType(object.password, B.FullType_h8g), "verified_phone_number", serializers.serialize$2$specifiedType(object.phoneVerified, B.FullType_MtR), "custom_value1", serializers.serialize$2$specifiedType(object.customValue1, B.FullType_h8g), "custom_value2", serializers.serialize$2$specifiedType(object.customValue2, B.FullType_h8g), "custom_value3", serializers.serialize$2$specifiedType(object.customValue3, B.FullType_h8g), "custom_value4", serializers.serialize$2$specifiedType(object.customValue4, B.FullType_h8g), "google_2fa_secret", serializers.serialize$2$specifiedType(object.isTwoFactorEnabled, B.FullType_MtR), "has_password", serializers.serialize$2$specifiedType(object.hasPassword, B.FullType_MtR), "last_confirmed_email_address", serializers.serialize$2$specifiedType(object.lastEmailAddress, B.FullType_h8g), "oauth_user_token", serializers.serialize$2$specifiedType(object.oauthUserToken, B.FullType_h8g), "oauth_provider_id", serializers.serialize$2$specifiedType(object.oauthProvider, B.FullType_h8g), "created_at", serializers.serialize$2$specifiedType(object.createdAt, B.FullType_kjq), "updated_at", serializers.serialize$2$specifiedType(object.updatedAt, B.FullType_kjq), "archived_at", serializers.serialize$2$specifiedType(object.archivedAt, B.FullType_kjq), "id", serializers.serialize$2$specifiedType(object.id, B.FullType_h8g)], type$.JSArray_legacy_Object),
value = object.emailVerifiedAt;
if (value != null) {
result.push("email_verified_at");
@ -377066,10 +377063,6 @@
t2 = A._asStringS(serializers.deserialize$2$specifiedType(value, B.FullType_h8g));
result.get$_user_model$_$this()._oauthUserToken = t2;
break;
case "mailer_connected":
t2 = A._asBoolS(serializers.deserialize$2$specifiedType(value, B.FullType_MtR));
result.get$_user_model$_$this()._mailerConnected = t2;
break;
case "company_user":
t2 = result.get$_user_model$_$this();
t3 = t2._userCompany;
@ -377512,14 +377505,14 @@
return false;
if (other === _this)
return true;
return other instanceof A.UserEntity && _this.firstName === other.firstName && _this.lastName === other.lastName && _this.email === other.email && _this.phone === other.phone && _this.password === other.password && _this.emailVerifiedAt == other.emailVerifiedAt && _this.phoneVerified === other.phoneVerified && _this.customValue1 === other.customValue1 && _this.customValue2 === other.customValue2 && _this.customValue3 === other.customValue3 && _this.customValue4 === other.customValue4 && _this.isTwoFactorEnabled === other.isTwoFactorEnabled && _this.hasPassword === other.hasPassword && _this.lastEmailAddress === other.lastEmailAddress && _this.oauthUserToken === other.oauthUserToken && _this.mailerConnected === other.mailerConnected && J.$eq$(_this.userCompany, other.userCompany) && _this.oauthProvider === other.oauthProvider && _this.isChanged == other.isChanged && _this.createdAt === other.createdAt && _this.updatedAt === other.updatedAt && _this.archivedAt === other.archivedAt && _this.isDeleted == other.isDeleted && _this.createdUserId == other.createdUserId && _this.assignedUserId == other.assignedUserId && _this.id === other.id;
return other instanceof A.UserEntity && _this.firstName === other.firstName && _this.lastName === other.lastName && _this.email === other.email && _this.phone === other.phone && _this.password === other.password && _this.emailVerifiedAt == other.emailVerifiedAt && _this.phoneVerified === other.phoneVerified && _this.customValue1 === other.customValue1 && _this.customValue2 === other.customValue2 && _this.customValue3 === other.customValue3 && _this.customValue4 === other.customValue4 && _this.isTwoFactorEnabled === other.isTwoFactorEnabled && _this.hasPassword === other.hasPassword && _this.lastEmailAddress === other.lastEmailAddress && _this.oauthUserToken === other.oauthUserToken && J.$eq$(_this.userCompany, other.userCompany) && _this.oauthProvider === other.oauthProvider && _this.isChanged == other.isChanged && _this.createdAt === other.createdAt && _this.updatedAt === other.updatedAt && _this.archivedAt === other.archivedAt && _this.isDeleted == other.isDeleted && _this.createdUserId == other.createdUserId && _this.assignedUserId == other.assignedUserId && _this.id === other.id;
},
get$hashCode(_) {
var _$hash, _this = this,
t1 = _this._user_model$__hashCode;
if (t1 != null)
return t1;
_$hash = A.$jf(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(0, B.JSString_methods.get$hashCode(_this.firstName)), B.JSString_methods.get$hashCode(_this.lastName)), B.JSString_methods.get$hashCode(_this.email)), B.JSString_methods.get$hashCode(_this.phone)), B.JSString_methods.get$hashCode(_this.password)), J.get$hashCode$(_this.emailVerifiedAt)), B.JSBool_methods.get$hashCode(_this.phoneVerified)), B.JSString_methods.get$hashCode(_this.customValue1)), B.JSString_methods.get$hashCode(_this.customValue2)), B.JSString_methods.get$hashCode(_this.customValue3)), B.JSString_methods.get$hashCode(_this.customValue4)), B.JSBool_methods.get$hashCode(_this.isTwoFactorEnabled)), B.JSBool_methods.get$hashCode(_this.hasPassword)), B.JSString_methods.get$hashCode(_this.lastEmailAddress)), B.JSString_methods.get$hashCode(_this.oauthUserToken)), B.JSBool_methods.get$hashCode(_this.mailerConnected)), J.get$hashCode$(_this.userCompany)), B.JSString_methods.get$hashCode(_this.oauthProvider)), J.get$hashCode$(_this.isChanged)), B.JSInt_methods.get$hashCode(_this.createdAt)), B.JSInt_methods.get$hashCode(_this.updatedAt)), B.JSInt_methods.get$hashCode(_this.archivedAt)), J.get$hashCode$(_this.isDeleted)), J.get$hashCode$(_this.createdUserId)), J.get$hashCode$(_this.assignedUserId)), B.JSString_methods.get$hashCode(_this.id)));
_$hash = A.$jf(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(0, B.JSString_methods.get$hashCode(_this.firstName)), B.JSString_methods.get$hashCode(_this.lastName)), B.JSString_methods.get$hashCode(_this.email)), B.JSString_methods.get$hashCode(_this.phone)), B.JSString_methods.get$hashCode(_this.password)), J.get$hashCode$(_this.emailVerifiedAt)), B.JSBool_methods.get$hashCode(_this.phoneVerified)), B.JSString_methods.get$hashCode(_this.customValue1)), B.JSString_methods.get$hashCode(_this.customValue2)), B.JSString_methods.get$hashCode(_this.customValue3)), B.JSString_methods.get$hashCode(_this.customValue4)), B.JSBool_methods.get$hashCode(_this.isTwoFactorEnabled)), B.JSBool_methods.get$hashCode(_this.hasPassword)), B.JSString_methods.get$hashCode(_this.lastEmailAddress)), B.JSString_methods.get$hashCode(_this.oauthUserToken)), J.get$hashCode$(_this.userCompany)), B.JSString_methods.get$hashCode(_this.oauthProvider)), J.get$hashCode$(_this.isChanged)), B.JSInt_methods.get$hashCode(_this.createdAt)), B.JSInt_methods.get$hashCode(_this.updatedAt)), B.JSInt_methods.get$hashCode(_this.archivedAt)), J.get$hashCode$(_this.isDeleted)), J.get$hashCode$(_this.createdUserId)), J.get$hashCode$(_this.assignedUserId)), B.JSString_methods.get$hashCode(_this.id)));
t1 = _this._user_model$__hashCode;
if (t1 == null) {
_this._user_model$__hashCode = _$hash;
@ -377546,7 +377539,6 @@
t2.add$2(t1, "hasPassword", _this.hasPassword);
t2.add$2(t1, "lastEmailAddress", _this.lastEmailAddress);
t2.add$2(t1, "oauthUserToken", _this.oauthUserToken);
t2.add$2(t1, "mailerConnected", _this.mailerConnected);
t2.add$2(t1, "userCompany", _this.userCompany);
t2.add$2(t1, "oauthProvider", _this.oauthProvider);
t2.add$2(t1, "isChanged", _this.isChanged);
@ -377616,7 +377608,6 @@
_this._hasPassword = $$v.hasPassword;
_this._lastEmailAddress = $$v.lastEmailAddress;
_this._oauthUserToken = $$v.oauthUserToken;
_this._mailerConnected = $$v.mailerConnected;
t1 = $$v.userCompany;
if (t1 == null)
t1 = null;
@ -377642,7 +377633,7 @@
return _this;
},
_user_model$_build$0() {
var _$failedField, e, _$result0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19, t20, t21, t22, t23, t24, exception, _this = this,
var _$failedField, e, _$result0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19, t20, t21, t22, t23, exception, _this = this,
_s10_ = "UserEntity",
_$result = null;
try {
@ -377663,17 +377654,16 @@
t13 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_user_model$_$this()._hasPassword, _s10_, "hasPassword");
t14 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_user_model$_$this()._lastEmailAddress, _s10_, "lastEmailAddress");
t15 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_user_model$_$this()._oauthUserToken, _s10_, "oauthUserToken");
t16 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_user_model$_$this()._mailerConnected, _s10_, "mailerConnected");
t17 = _this._userCompany;
t17 = t17 == null ? null : t17._company_model$_build$0();
t18 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_user_model$_$this()._oauthProvider, _s10_, "oauthProvider");
t19 = _this.get$_user_model$_$this()._user_model$_isChanged;
t20 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_user_model$_$this()._createdAt, _s10_, "createdAt");
t21 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_user_model$_$this()._user_model$_updatedAt, _s10_, "updatedAt");
t22 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_user_model$_$this()._archivedAt, _s10_, "archivedAt");
t23 = _this.get$_user_model$_$this()._isDeleted;
t24 = _this.get$_user_model$_$this()._createdUserId;
_$result0 = A._$UserEntity$_(t22, _this.get$_user_model$_$this()._assignedUserId, t20, t24, t8, t9, t10, t11, t3, t6, t1, t13, A.BuiltValueNullFieldError_checkNotNull(_this.get$_user_model$_$this()._id, _s10_, "id"), t19, t23, t12, t14, t2, t16, t18, t15, t5, t4, t7, t21, t17);
t16 = _this._userCompany;
t16 = t16 == null ? null : t16._company_model$_build$0();
t17 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_user_model$_$this()._oauthProvider, _s10_, "oauthProvider");
t18 = _this.get$_user_model$_$this()._user_model$_isChanged;
t19 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_user_model$_$this()._createdAt, _s10_, "createdAt");
t20 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_user_model$_$this()._user_model$_updatedAt, _s10_, "updatedAt");
t21 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_user_model$_$this()._archivedAt, _s10_, "archivedAt");
t22 = _this.get$_user_model$_$this()._isDeleted;
t23 = _this.get$_user_model$_$this()._createdUserId;
_$result0 = A._$UserEntity$_(t21, _this.get$_user_model$_$this()._assignedUserId, t19, t23, t8, t9, t10, t11, t3, t6, t1, t13, A.BuiltValueNullFieldError_checkNotNull(_this.get$_user_model$_$this()._id, _s10_, "id"), t18, t22, t12, t14, t2, t17, t15, t5, t4, t7, t20, t16);
}
_$result = _$result0;
} catch (exception) {
@ -380079,7 +380069,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/bank_integrations/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -380233,7 +380223,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/clients/bulk?per_page=100&include=gateway_tokens,activities,ledger,system_logs,documents", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -380475,7 +380465,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/company_gateways/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -380655,7 +380645,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/credits/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -380872,7 +380862,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/designs/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -381016,7 +381006,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/documents/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -381140,7 +381130,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/expense_categories/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -381294,7 +381284,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/expenses/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -381469,7 +381459,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/group_settings/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -381657,7 +381647,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/invoices/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -381897,7 +381887,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/payments/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -382081,7 +382071,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/payment_terms/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -382505,7 +382495,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/products/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -382704,7 +382694,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/projects/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -382879,7 +382869,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
t1 = type$.legacy_String;
t2 = type$.legacy_Object;
@ -383118,7 +383108,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/quotes/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -383343,7 +383333,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/recurring_expenses/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -383526,7 +383516,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/recurring_invoices/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -383708,7 +383698,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/task_schedulers/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -384120,7 +384110,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/subscriptions/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -384274,7 +384264,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/tasks/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -384483,7 +384473,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/task_statuses/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -384627,7 +384617,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/tax_rates/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -384771,7 +384761,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/tokens/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -384915,7 +384905,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/bank_transactions/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -385199,7 +385189,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/bank_transaction_rules/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -385343,7 +385333,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$5$data$idToken$password(credentials.url + "/users/bulk?per_page=100&include=company_user", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object)), idToken, password), $async$bulkAction$5);
@ -385561,7 +385551,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/vendors/bulk?per_page=100&include=activities", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -385736,7 +385726,7 @@
switch ($async$goto) {
case 0:
// Function start
if (ids.length > 100)
if (ids.length > 100 && !B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_bulkDownload], type$.JSArray_legacy_EntityAction), action))
ids = B.JSArray_methods.sublist$2(ids, 0, 100);
$async$goto = 3;
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/webhooks/bulk?per_page=100", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["ids", ids, "action", action.toApiParam$0()], type$.legacy_String, type$.legacy_Object))), $async$bulkAction$3);
@ -387276,7 +387266,7 @@
};
A.viewEntityById_closure.prototype = {
call$0() {
var t1, t2, t3, t4, t5, filterEntity, _this = this, _null = null;
var t1, t2, t3, t4, t5, filterEntity, entityTypes, _this = this, _null = null;
if (_this.addToStack) {
t1 = _this.store.__Store__dispatchers_F;
t1 === $ && A.throwUnnamedLateFieldNI();
@ -387377,10 +387367,12 @@
t2 = _this.store.__Store__state_A;
t2 === $ && A.throwUnnamedLateFieldNI();
filterEntity = type$.legacy_BaseEntity._as(t2.getEntityMap$1(t4)._map$_map.$index(0, t3));
t3 = filterEntity.get$entityType().get$relatedTypes();
t3 = new A.WhereIterable(t3, new A.viewEntityById__closure(t1), A._arrayInstanceType(t3)._eval$1("WhereIterable<1>"));
A.viewEntitiesByType(t3.get$first(t3), filterEntity);
return;
t4 = filterEntity.get$entityType().get$relatedTypes();
entityTypes = new A.WhereIterable(t4, new A.viewEntityById__closure(t1), A._arrayInstanceType(t4)._eval$1("WhereIterable<1>"));
if (!entityTypes.get$isEmpty(entityTypes)) {
A.viewEntitiesByType(entityTypes.get$first(entityTypes), filterEntity);
return;
}
}
switch (_this.entityType) {
case B.EntityType_client:
@ -387531,7 +387523,7 @@
call$1(entityType) {
var t1 = this.state,
t2 = t1.uiState.selectedCompanyIndex;
return t1.userCompanyStates._list[t2].userCompany.canViewCreateOrEdit$1(entityType);
return t1.userCompanyStates._list[t2].userCompany.company.isModuleEnabled$1(entityType);
},
$signature: 285
};
@ -445530,18 +445522,16 @@
};
A.gmailUserList_closure.prototype = {
call$1(userId) {
var t2,
var t2, t3,
t1 = this.userMap._map$_map.$index(0, userId);
if (t1 == null)
t1 = B.Type_UserEntity_IVQ;
type$.legacy_UserEntity._as(t1);
if (!t1.get$isArchived() && !t1.isDeleted)
if (t1.mailerConnected) {
t2 = t1.oauthProvider;
t1 = (t2 === "google" || t2 === "microsoft") && t1.oauthUserToken.length !== 0;
} else
t1 = false;
else
if (!t1.get$isArchived() && !t1.isDeleted) {
t2 = t1.oauthProvider;
t3 = t2 === "google";
t1 = (t3 || t2 === "microsoft") && t1.oauthUserToken.length !== 0 && t3;
} else
t1 = false;
return t1;
},
@ -445555,11 +445545,17 @@
};
A.microsoftUserList_closure.prototype = {
call$1(userId) {
var t1 = this.userMap._map$_map.$index(0, userId);
var t2,
t1 = this.userMap._map$_map.$index(0, userId);
if (t1 == null)
t1 = B.Type_UserEntity_IVQ;
type$.legacy_UserEntity._as(t1);
return !t1.get$isArchived() && !t1.isDeleted && t1.mailerConnected && t1.oauthProvider === "microsoft";
if (!t1.get$isArchived() && !t1.isDeleted) {
t2 = t1.oauthProvider;
t1 = (t2 === "google" || t2 === "microsoft") && t1.oauthUserToken.length !== 0 && t2 === "microsoft";
} else
t1 = false;
return t1;
},
$signature: 15
};