Admin Portal - Profile

This commit is contained in:
hillelcoren 2021-09-30 06:16:48 +00:00
parent 0f4e8dee55
commit 552ce84449

View File

@ -29911,18 +29911,17 @@
InvoiceScheduleEntityBuilder: function InvoiceScheduleEntityBuilder() { InvoiceScheduleEntityBuilder: function InvoiceScheduleEntityBuilder() {
this._dueDate = this._sendDate = this._invoice_model$_$v = null; this._dueDate = this._sendDate = this._invoice_model$_$v = null;
}, },
_$InvoiceHistoryEntity: function _$InvoiceHistoryEntity(t0, t1, t2, t3, t4) { _$InvoiceHistoryEntity: function _$InvoiceHistoryEntity(t0, t1, t2, t3) {
var _ = this; var _ = this;
_.id = t0; _.id = t0;
_.activityId = t1; _.activityId = t1;
_.htmlBackup = t2; _.createdAt = t2;
_.createdAt = t3; _.amount = t3;
_.amount = t4;
_._invoice_model$__hashCode = null; _._invoice_model$__hashCode = null;
}, },
InvoiceHistoryEntityBuilder: function InvoiceHistoryEntityBuilder() { InvoiceHistoryEntityBuilder: function InvoiceHistoryEntityBuilder() {
var _ = this; var _ = this;
_._amount = _._invoice_model$_createdAt = _._htmlBackup = _._activityId = _._invoice_model$_id = _._invoice_model$_$v = null; _._amount = _._invoice_model$_createdAt = _._activityId = _._invoice_model$_id = _._invoice_model$_$v = null;
}, },
_InvitationEntity_Object_BaseEntity: function _InvitationEntity_Object_BaseEntity() { _InvitationEntity_Object_BaseEntity: function _InvitationEntity_Object_BaseEntity() {
}, },
@ -272529,7 +272528,13 @@
}; };
Q.InvoiceEntity_history_closure.prototype = { Q.InvoiceEntity_history_closure.prototype = {
call$1: function(activity) { call$1: function(activity) {
return activity.history != null; var t1 = activity.history;
if (t1 != null) {
t1 = t1.id;
t1 = t1.length !== 0;
} else
t1 = false;
return t1;
}, },
$signature: 433 $signature: 433
}; };
@ -273753,7 +273758,7 @@
}; };
Q._$InvoiceHistoryEntitySerializer.prototype = { Q._$InvoiceHistoryEntitySerializer.prototype = {
serialize$3$specifiedType: function(serializers, object, specifiedType) { serialize$3$specifiedType: function(serializers, object, specifiedType) {
return H.setRuntimeTypeInfo(["id", serializers.serialize$2$specifiedType(object.id, C.FullType_h8g), "activity_id", serializers.serialize$2$specifiedType(object.activityId, C.FullType_h8g), "html_backup", serializers.serialize$2$specifiedType(object.htmlBackup, C.FullType_h8g), "created_at", serializers.serialize$2$specifiedType(object.createdAt, C.FullType_kjq), "amount", serializers.serialize$2$specifiedType(object.amount, C.FullType_MME)], type$.JSArray_legacy_Object); return H.setRuntimeTypeInfo(["id", serializers.serialize$2$specifiedType(object.id, C.FullType_h8g), "activity_id", serializers.serialize$2$specifiedType(object.activityId, C.FullType_h8g), "created_at", serializers.serialize$2$specifiedType(object.createdAt, C.FullType_kjq), "amount", serializers.serialize$2$specifiedType(object.amount, C.FullType_MME)], type$.JSArray_legacy_Object);
}, },
serialize$2: function(serializers, object) { serialize$2: function(serializers, object) {
return this.serialize$3$specifiedType(serializers, object, C.FullType_null_List_empty_false); return this.serialize$3$specifiedType(serializers, object, C.FullType_null_List_empty_false);
@ -273775,10 +273780,6 @@
t1 = H._asStringS(serializers.deserialize$2$specifiedType(value, C.FullType_h8g)); t1 = H._asStringS(serializers.deserialize$2$specifiedType(value, C.FullType_h8g));
result.get$_invoice_model$_$this()._activityId = t1; result.get$_invoice_model$_$this()._activityId = t1;
break; break;
case "html_backup":
t1 = H._asStringS(serializers.deserialize$2$specifiedType(value, C.FullType_h8g));
result.get$_invoice_model$_$this()._htmlBackup = t1;
break;
case "created_at": case "created_at":
t1 = H._asIntS(serializers.deserialize$2$specifiedType(value, C.FullType_kjq)); t1 = H._asIntS(serializers.deserialize$2$specifiedType(value, C.FullType_kjq));
result.get$_invoice_model$_$this()._invoice_model$_createdAt = t1; result.get$_invoice_model$_$this()._invoice_model$_createdAt = t1;
@ -274671,12 +274672,12 @@
return false; return false;
if (other === _this) if (other === _this)
return true; return true;
return other instanceof Q.InvoiceHistoryEntity && _this.id === other.id && _this.activityId === other.activityId && _this.htmlBackup === other.htmlBackup && _this.createdAt === other.createdAt && _this.amount === other.amount; return other instanceof Q.InvoiceHistoryEntity && _this.id === other.id && _this.activityId === other.activityId && _this.createdAt === other.createdAt && _this.amount === other.amount;
}, },
get$hashCode: function(_) { get$hashCode: function(_) {
var _this = this, var _this = this,
t1 = _this._invoice_model$__hashCode; t1 = _this._invoice_model$__hashCode;
return t1 == null ? _this._invoice_model$__hashCode = Y.$jf(Y.$jc(Y.$jc(Y.$jc(Y.$jc(Y.$jc(0, C.JSString_methods.get$hashCode(_this.id)), C.JSString_methods.get$hashCode(_this.activityId)), C.JSString_methods.get$hashCode(_this.htmlBackup)), C.JSInt_methods.get$hashCode(_this.createdAt)), C.JSNumber_methods.get$hashCode(_this.amount))) : t1; return t1 == null ? _this._invoice_model$__hashCode = Y.$jf(Y.$jc(Y.$jc(Y.$jc(Y.$jc(0, C.JSString_methods.get$hashCode(_this.id)), C.JSString_methods.get$hashCode(_this.activityId)), C.JSInt_methods.get$hashCode(_this.createdAt)), C.JSNumber_methods.get$hashCode(_this.amount))) : t1;
}, },
toString$0: function(_) { toString$0: function(_) {
var _this = this, var _this = this,
@ -274684,7 +274685,6 @@
t2 = J.getInterceptor$ax(t1); t2 = J.getInterceptor$ax(t1);
t2.add$2(t1, "id", _this.id); t2.add$2(t1, "id", _this.id);
t2.add$2(t1, "activityId", _this.activityId); t2.add$2(t1, "activityId", _this.activityId);
t2.add$2(t1, "htmlBackup", _this.htmlBackup);
t2.add$2(t1, "createdAt", _this.createdAt); t2.add$2(t1, "createdAt", _this.createdAt);
t2.add$2(t1, "amount", _this.amount); t2.add$2(t1, "amount", _this.amount);
return t2.toString$0(t1); return t2.toString$0(t1);
@ -274709,7 +274709,6 @@
if ($$v != null) { if ($$v != null) {
_this._invoice_model$_id = $$v.id; _this._invoice_model$_id = $$v.id;
_this._activityId = $$v.activityId; _this._activityId = $$v.activityId;
_this._htmlBackup = $$v.htmlBackup;
_this._invoice_model$_createdAt = $$v.createdAt; _this._invoice_model$_createdAt = $$v.createdAt;
_this._amount = $$v.amount; _this._amount = $$v.amount;
_this._invoice_model$_$v = null; _this._invoice_model$_$v = null;
@ -274717,7 +274716,7 @@
return _this; return _this;
}, },
build$0: function(_) { build$0: function(_) {
var t1, t2, t3, t4, t5, _this = this, var t1, t2, t3, t4, _this = this,
_s20_ = "InvoiceHistoryEntity", _s20_ = "InvoiceHistoryEntity",
_$result = _this._invoice_model$_$v; _$result = _this._invoice_model$_$v;
if (_$result == null) { if (_$result == null) {
@ -274727,16 +274726,13 @@
t2 = _this.get$_invoice_model$_$this()._activityId; t2 = _this.get$_invoice_model$_$this()._activityId;
if (t2 == null) if (t2 == null)
H.throwExpression(Y.BuiltValueNullFieldError$(_s20_, "activityId")); H.throwExpression(Y.BuiltValueNullFieldError$(_s20_, "activityId"));
t3 = _this.get$_invoice_model$_$this()._htmlBackup; t3 = _this.get$_invoice_model$_$this()._invoice_model$_createdAt;
if (t3 == null) if (t3 == null)
H.throwExpression(Y.BuiltValueNullFieldError$(_s20_, "htmlBackup"));
t4 = _this.get$_invoice_model$_$this()._invoice_model$_createdAt;
if (t4 == null)
H.throwExpression(Y.BuiltValueNullFieldError$(_s20_, "createdAt")); H.throwExpression(Y.BuiltValueNullFieldError$(_s20_, "createdAt"));
t5 = _this.get$_invoice_model$_$this()._amount; t4 = _this.get$_invoice_model$_$this()._amount;
if (t5 == null) if (t4 == null)
H.throwExpression(Y.BuiltValueNullFieldError$(_s20_, "amount")); H.throwExpression(Y.BuiltValueNullFieldError$(_s20_, "amount"));
_$result = new Q._$InvoiceHistoryEntity(t1, t2, t3, t4, t5); _$result = new Q._$InvoiceHistoryEntity(t1, t2, t3, t4);
} }
return _this._invoice_model$_$v = _$result; return _this._invoice_model$_$v = _$result;
} }
@ -295187,7 +295183,7 @@
saveData$body$InvoiceRepository: function(credentials, invoice, action) { saveData$body$InvoiceRepository: function(credentials, invoice, action) {
var $async$goto = 0, var $async$goto = 0,
$async$completer = P._makeAsyncAwaitCompleter(type$.legacy_InvoiceEntity), $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_InvoiceEntity),
$async$returnValue, t1, data, t2, t3, url, response; $async$returnValue, t1, data, t2, url, response;
var $async$saveData$3$action = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { var $async$saveData$3$action = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
if ($async$errorCode === 1) if ($async$errorCode === 1)
return P._asyncRethrow($async$result, $async$completer); return P._asyncRethrow($async$result, $async$completer);
@ -295199,14 +295195,18 @@
t1 = $.$get$serializers(); t1 = $.$get$serializers();
data = t1.serializeWith$2($.$get$_$invoiceEntitySerializer(), invoice); data = t1.serializeWith$2($.$get$_$invoiceEntitySerializer(), invoice);
t2 = credentials.url; t2 = credentials.url;
t3 = credentials.token; url = invoice.get$isNew() ? t2 + "/invoices?include=activities.history" : t2 + "/invoices/" + invoice.id + "?include=activities.history";
if (action === C.EntityAction_markPaid)
url += "&paid=true";
else if (action === C.EntityAction_markSent)
url += "&mark_sent=true";
t2 = credentials.token;
$async$goto = invoice.get$isNew() ? 3 : 5; $async$goto = invoice.get$isNew() ? 3 : 5;
break; break;
case 3: case 3:
// then // then
url = t2 + "/invoices?include=activities.history";
$async$goto = 6; $async$goto = 6;
return P._asyncAwait(C.C_WebClient.post$3$data(url, t3, C.C_JsonCodec.encode$1(data)), $async$saveData$3$action); return P._asyncAwait(C.C_WebClient.post$3$data(url, t2, C.C_JsonCodec.encode$1(data)), $async$saveData$3$action);
case 6: case 6:
// returning from await. // returning from await.
// goto join // goto join
@ -295214,35 +295214,11 @@
break; break;
case 5: case 5:
// else // else
url = t2 + "/invoices/" + invoice.id + "?include=activities.history";
$async$goto = 7; $async$goto = 7;
return P._asyncAwait(C.C_WebClient.put$3$data(0, url, t3, C.C_JsonCodec.encode$1(data)), $async$saveData$3$action); return P._asyncAwait(C.C_WebClient.put$3$data(0, url, t2, C.C_JsonCodec.encode$1(data)), $async$saveData$3$action);
case 7: case 7:
// returning from await. // returning from await.
case 4: case 4:
// join
if (action === C.EntityAction_markPaid)
url += "&paid=true";
else if (action === C.EntityAction_markSent)
url += "&mark_sent=true";
$async$goto = invoice.get$isNew() ? 8 : 10;
break;
case 8:
// then
$async$goto = 11;
return P._asyncAwait(C.C_WebClient.post$3$data(url, t3, C.C_JsonCodec.encode$1(data)), $async$saveData$3$action);
case 11:
// returning from await.
// goto join
$async$goto = 9;
break;
case 10:
// else
$async$goto = 12;
return P._asyncAwait(C.C_WebClient.put$3$data(0, url, t3, C.C_JsonCodec.encode$1(data)), $async$saveData$3$action);
case 12:
// returning from await.
case 9:
// join // join
response = $async$result; response = $async$result;
$async$returnValue = t1.deserializeWith$1$2($.$get$_$invoiceItemResponseSerializer(), response, type$.legacy_InvoiceItemResponse).data; $async$returnValue = t1.deserializeWith$1$2($.$get$_$invoiceItemResponseSerializer(), response, type$.legacy_InvoiceItemResponse).data;
@ -359393,7 +359369,7 @@
_this._widget.toString; _this._widget.toString;
t4 = _this._variables$_controller; t4 = _this._variables$_controller;
t5 = type$.JSArray_legacy_String; t5 = type$.JSArray_legacy_String;
t6 = H.setRuntimeTypeInfo(["view_link", "view_url"], t5); t6 = H.setRuntimeTypeInfo(["view_button", "view_url"], t5);
if (_this._widget.showInvoiceAsQuote) if (_this._widget.showInvoiceAsQuote)
C.JSArray_methods.addAll$1(t6, H.setRuntimeTypeInfo(["amount", "discount", "date", "valid_until", "po_number", "public_notes", "exchange_rate", "number", "terms", "footer"], t5)); C.JSArray_methods.addAll$1(t6, H.setRuntimeTypeInfo(["amount", "discount", "date", "valid_until", "po_number", "public_notes", "exchange_rate", "number", "terms", "footer"], t5));
else else