@azrico/webobject 1.4.100 → 1.4.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -194,6 +194,9 @@ export declare class SimpleObject extends MapableObject {
|
|
|
194
194
|
setSaveResult(toObj: any, type?: saveResultType | "auto", registerErrors?: boolean): saveResultType;
|
|
195
195
|
getSaveResult(original?: boolean): any;
|
|
196
196
|
getSaveResultType(): saveResultType;
|
|
197
|
+
getSaveResultIsSuccess(): boolean;
|
|
198
|
+
/** did we create on the last save */
|
|
199
|
+
getIsLastSaveCreate(): boolean;
|
|
197
200
|
static setTemp(obj: SimpleObject | any, key: string, value: any, sendChanges?: sendChangesType): Promise<void>;
|
|
198
201
|
static factoryClear(obj: SimpleObject): void;
|
|
199
202
|
static delete_cache(context?: string): Promise<void>;
|
|
@@ -891,6 +891,17 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
|
|
|
891
891
|
value: function getSaveResultType() {
|
|
892
892
|
return this.__saveResultType || "nothing";
|
|
893
893
|
}
|
|
894
|
+
}, {
|
|
895
|
+
key: "getSaveResultIsSuccess",
|
|
896
|
+
value: function getSaveResultIsSuccess() {
|
|
897
|
+
return this.__saveResultIsSuccess;
|
|
898
|
+
}
|
|
899
|
+
/** did we create on the last save */
|
|
900
|
+
}, {
|
|
901
|
+
key: "getIsLastSaveCreate",
|
|
902
|
+
value: function getIsLastSaveCreate() {
|
|
903
|
+
return this.getSaveResultIsSuccess() && this.getSaveResult().insertedId;
|
|
904
|
+
}
|
|
894
905
|
/* -------------------------------------------------------------------------- */
|
|
895
906
|
/* statics */
|
|
896
907
|
/* -------------------------------------------------------------------------- */
|