@azrico/webobject 1.4.156 → 1.4.157

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.
@@ -17,7 +17,6 @@ export declare class WebObject extends SimpleObject {
17
17
  meta_data: {
18
18
  [key: string]: any;
19
19
  };
20
- _id: string;
21
20
  _created_date?: string | Date;
22
21
  _creator?: string;
23
22
  _users?: string[];
@@ -43,7 +43,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
43
43
  _classCallCheck(this, WebObject);
44
44
  _this = _callSuper(this, WebObject, [is_readonly]);
45
45
  _defineProperty(_assertThisInitialized(_this), "meta_data", void 0);
46
- _defineProperty(_assertThisInitialized(_this), "_id", "");
46
+ //created date
47
47
  _defineProperty(_assertThisInitialized(_this), "_created_date", void 0);
48
48
  //the owner of the object
49
49
  _defineProperty(_assertThisInitialized(_this), "_creator", void 0);
@@ -5,7 +5,6 @@ declare type FirstInTuple<T extends any[]> = ((...args: T) => any) extends (arg:
5
5
  */
6
6
  export declare class MapableObject extends ObjectWithTemp {
7
7
  readonly __uid: string;
8
- __data_id?: string;
9
8
  __table_id?: string;
10
9
  __parent__table_id?: string;
11
10
  __row_number?: number;
@@ -34,7 +34,6 @@ var MapableObject = exports.MapableObject = /*#__PURE__*/function (_ObjectWithTe
34
34
  _classCallCheck(this, MapableObject);
35
35
  _this = _callSuper(this, MapableObject);
36
36
  _defineProperty(_assertThisInitialized(_this), "__uid", void 0);
37
- _defineProperty(_assertThisInitialized(_this), "__data_id", void 0);
38
37
  _defineProperty(_assertThisInitialized(_this), "__table_id", void 0);
39
38
  _defineProperty(_assertThisInitialized(_this), "__parent__table_id", void 0);
40
39
  _defineProperty(_assertThisInitialized(_this), "__row_number", void 0);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This object can be mapped and converted
2
+ * This object supports temp values
3
3
  */
4
4
  export declare class ObjectWithTemp {
5
5
  #private;
@@ -19,7 +19,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
19
19
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
20
  function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
21
21
  /**
22
- * This object can be mapped and converted
22
+ * This object supports temp values
23
23
  */
24
24
  var _getTempProperty = /*#__PURE__*/new WeakSet();
25
25
  var _setTempProperty = /*#__PURE__*/new WeakSet();
@@ -39,6 +39,7 @@ export declare class SimpleObject extends MapableObject {
39
39
  protected __saveResultObject?: any;
40
40
  protected __saveResultIsSuccess: boolean;
41
41
  protected __saveResultType?: saveResultType;
42
+ _id: string;
42
43
  _index_key: string;
43
44
  _index_value: number;
44
45
  constructor(is_readonly?: boolean);
@@ -86,6 +86,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
86
86
  _defineProperty(_assertThisInitialized(_this), "__saveResultObject", void 0);
87
87
  _defineProperty(_assertThisInitialized(_this), "__saveResultIsSuccess", true);
88
88
  _defineProperty(_assertThisInitialized(_this), "__saveResultType", void 0);
89
+ _defineProperty(_assertThisInitialized(_this), "_id", "");
89
90
  //sequence key (usually managed by the database)
90
91
  _defineProperty(_assertThisInitialized(_this), "_index_key", "");
91
92
  //sequence value , used to index the object with increasing numbers
@@ -118,6 +119,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
118
119
  return undefined;
119
120
  });
120
121
  _this.__is_readonly = is_readonly;
122
+ if (_this._id) _this.__table_id = _this._id;
121
123
  _this.clear_changes();
122
124
  return _this;
123
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.4.156",
3
+ "version": "1.4.157",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",