@shisyamo4131/air-guard-v2-schemas 2.4.0 → 2.4.1-dev.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shisyamo4131/air-guard-v2-schemas",
3
- "version": "2.4.0",
3
+ "version": "2.4.1-dev.0",
4
4
  "description": "Schemas for AirGuard V2",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/src/Company.js CHANGED
@@ -14,6 +14,7 @@ import { defAccessor } from "./parts/accessorDefinitions.js";
14
14
  import Agreement from "./Agreement.js";
15
15
  import SiteOrder from "./SiteOrder.js";
16
16
  import RoundSetting from "./RoundSetting.js";
17
+ import { GeocodableMixin } from "./mixins/GeocodableMixin.js";
17
18
 
18
19
  const classProps = {
19
20
  companyName: defField("name", { label: "会社名", required: true }),
@@ -121,7 +122,7 @@ const classProps = {
121
122
  maintenanceStartedBy: defField("oneLine", { default: null, hidden: true }),
122
123
  };
123
124
 
124
- export default class Company extends FireModel {
125
+ export default class Company extends GeocodableMixin(FireModel) {
125
126
  static className = "会社";
126
127
  static collectionPath = "Companies";
127
128
  static usePrefix = false;
package/src/Customer.js CHANGED
@@ -14,6 +14,7 @@ import {
14
14
  CONTRACT_STATUS_VALUES,
15
15
  PAYMENT_MONTH_OPTIONS,
16
16
  } from "./constants/index.js";
17
+ import { GeocodableMixin } from "./mixins/GeocodableMixin.js";
17
18
 
18
19
  const classProps = {
19
20
  code: defField("code", { label: "取引先コード" }),
@@ -82,7 +83,7 @@ const classProps = {
82
83
  * @param {Date} baseDate - base date in UTC (JST - 9 hours)
83
84
  * @returns {Date} payment due date in UTC (JST - 9 hours)
84
85
  *****************************************************************************/
85
- export default class Customer extends FireModel {
86
+ export default class Customer extends GeocodableMixin(FireModel) {
86
87
  static className = "取引先";
87
88
  static collectionPath = "Customers";
88
89
  static useAutonumber = false;
package/src/Employee.js CHANGED
@@ -9,6 +9,7 @@ import { defAccessor } from "./parts/accessorDefinitions.js";
9
9
  import { VALUES as EMPLOYMENT_STATUS_VALUES } from "./constants/employment-status.js";
10
10
  import { VALUES as BLOOD_TYPE_VALUES } from "./constants/blood-type.js";
11
11
  import Certification from "./Certification.js";
12
+ import { GeocodableMixin } from "./mixins/GeocodableMixin.js";
12
13
 
13
14
  const classProps = {
14
15
  code: defField("code", { label: "従業員コード" }),
@@ -213,7 +214,7 @@ const classProps = {
213
214
  *
214
215
  * @function toTerminated - Change the current employee instance to terminated status.
215
216
  *****************************************************************************/
216
- export default class Employee extends FireModel {
217
+ export default class Employee extends GeocodableMixin(FireModel) {
217
218
  static className = "従業員";
218
219
  static collectionPath = "Employees";
219
220
  static useAutonumber = false;
package/src/Site.js CHANGED
@@ -18,6 +18,7 @@ import { defAccessor } from "./parts/accessorDefinitions.js";
18
18
  import Customer from "./Customer.js";
19
19
  import Agreement from "./Agreement.js";
20
20
  import { VALUES } from "./constants/site-status.js";
21
+ import { GeocodableMixin } from "./mixins/GeocodableMixin.js";
21
22
 
22
23
  const classProps = {
23
24
  customerId: defField("customerId", {
@@ -99,7 +100,7 @@ const classProps = {
99
100
  * @param {Agreement} agreement - Agreement instance to remove.
100
101
  * @throws {Error} If agreement not found.
101
102
  *****************************************************************************/
102
- export default class Site extends FireModel {
103
+ export default class Site extends GeocodableMixin(FireModel) {
103
104
  static className = "現場";
104
105
  static collectionPath = "Sites";
105
106
  static useAutonumber = false;