@shisyamo4131/air-guard-v2-schemas 2.3.7-dev.37 → 2.3.7-dev.39

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Employee.js +12 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shisyamo4131/air-guard-v2-schemas",
3
- "version": "2.3.7-dev.37",
3
+ "version": "2.3.7-dev.39",
4
4
  "description": "Schemas for AirGuard V2",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/src/Employee.js CHANGED
@@ -155,7 +155,7 @@ const classProps = {
155
155
  },
156
156
  },
157
157
  }),
158
- securityCertificatoions: defField("array", { customClass: Certification }),
158
+ securityCertifications: defField("array", { customClass: Certification }),
159
159
  remarks: defField("remarks"),
160
160
  };
161
161
 
@@ -237,7 +237,17 @@ export default class Employee extends FireModel {
237
237
  static STATUS_ACTIVE = EMPLOYMENT_STATUS_VALUES.ACTIVE.value;
238
238
  static STATUS_TERMINATED = EMPLOYMENT_STATUS_VALUES.TERMINATED.value;
239
239
 
240
- _skipToTerminatedCheck = false;
240
+ constructor(item = {}) {
241
+ super(item);
242
+
243
+ // Internal flag to skip terminated status check during toTerminated method
244
+ Object.defineProperty(this, "_skipToTerminatedCheck", {
245
+ writable: true,
246
+ enumerable: false,
247
+ configurable: true,
248
+ value: false,
249
+ });
250
+ }
241
251
 
242
252
  afterInitialize(item = {}) {
243
253
  super.afterInitialize(item);