@shisyamo4131/air-guard-v2-schemas 2.4.2-dev.92 → 2.4.2-dev.93

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.2-dev.92",
3
+ "version": "2.4.2-dev.93",
4
4
  "description": "Schemas for AirGuard V2",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/src/Site.js CHANGED
@@ -56,6 +56,12 @@ const classProps = {
56
56
  address: defField("address", { required: true }),
57
57
  building: defField("building"),
58
58
  securityType: defField("securityType", { required: true }),
59
+ constructionPeriodStartAt: defField("constructionPeriodStartAt", {
60
+ required: true,
61
+ }),
62
+ constructionPeriodEndAt: defField("constructionPeriodEndAt", {
63
+ required: true,
64
+ }),
59
65
  location: defField("location"),
60
66
  remarks: defField("remarks"),
61
67
  agreementsV2: defField("array", {
@@ -76,18 +82,22 @@ const classProps = {
76
82
  * @property {string} code - 現場コード
77
83
  * @property {string} name - 現場名
78
84
  * @property {string} nameKana - 現場名カナ
79
- * @property {string} zipcode - Postal code.
80
- * @property {string} prefCode - Prefecture code.
81
- * @property {string} prefecture - Prefecture name derived from `prefCode` (read-only)
82
- * @property {string} city - City name.
83
- * @property {string} address - Address details.
84
- * @property {string} building - Building name.
85
- * @property {string} fullAddress - Full address combining prefecture, city, and address (read-only)
85
+ * @property {string} zipcode - 郵便番号
86
+ * @property {string} prefCode - 都道府県コード
87
+ * @property {string} prefecture - 都道府県名(`prefCode` から派生)(読み取り専用)
88
+ * @property {string} city - 市区町村名
89
+ * @property {string} address - 町域名・番地
90
+ * @property {string} building - 建物名
91
+ * @property {string} fullAddress - 住所(郵便番号、都道府県、市区町村、番地、建物名を結合したもの)(読み取り専用)
86
92
  * @property {object} location - Geographical location.
87
- * @property {string} remarks - Additional remarks.
93
+ * @property {string} securityType - 警備種別
94
+ * @property {string} constructionPeriodStartAt - 工期開始日
95
+ * @property {string} constructionPeriodEndAt - 工期終了日
96
+ * @property {boolean} hasConstructionPeriod - 工期が設定されているかどうかを表すフラグ(読み取り専用)
97
+ * @property {string} remarks - 備考
88
98
  * @property {array} agreementsV2 - 取極めの配列(バージョン2)。`AgreementV2` クラスのインスタンスを要素とする。
89
99
  *
90
- * @property {string} status - Site status.
100
+ * @property {string} status - 現場のステータス(例: "ACTIVE", "TERMINATED")
91
101
  * @property {boolean} isTemporary - 仮登録状態かどうかを表すフラグ
92
102
  *
93
103
  * @function getAgreement
@@ -228,6 +238,19 @@ export default class Site extends GeocodableMixin(FireModel) {
228
238
  },
229
239
  set() {},
230
240
  },
241
+
242
+ /**
243
+ * 工期が設定されているかどうかを表すアクセサー
244
+ * - `constructionPeriodStartAt` または `constructionPeriodEndAt` のいずれかが設定されている場合に `true` を返します。
245
+ */
246
+ hasConstructionPeriod: {
247
+ configurable: true,
248
+ enumerable: true,
249
+ get() {
250
+ return this.constructionPeriodStartAt || this.constructionPeriodEndAt;
251
+ },
252
+ set() {},
253
+ },
231
254
  });
232
255
 
233
256
  /** 2026-03-31 Deprecated */
@@ -5,6 +5,14 @@ import { generalDefinitions } from "./defaultDefinition.js";
5
5
  */
6
6
  export const dateAtFields = {
7
7
  dateAt: generalDefinitions.dateAt,
8
+ constructionPeriodEndAt: {
9
+ ...generalDefinitions.dateAt,
10
+ label: "工期(終了日)",
11
+ },
12
+ constructionPeriodStartAt: {
13
+ ...generalDefinitions.dateAt,
14
+ label: "工期(開始日)",
15
+ },
8
16
  dateOfBirth: {
9
17
  ...generalDefinitions.dateAt,
10
18
  label: "生年月日",