@shisyamo4131/air-guard-v2-schemas 2.4.2-dev.92 → 2.4.2-dev.94
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 +1 -1
- package/src/Site.js +28 -9
- package/src/parts/fieldDefinitions/dateAt.js +38 -5
package/package.json
CHANGED
package/src/Site.js
CHANGED
|
@@ -56,6 +56,8 @@ 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
|
+
constructionPeriodEndAt: defField("constructionPeriodEndAt"),
|
|
59
61
|
location: defField("location"),
|
|
60
62
|
remarks: defField("remarks"),
|
|
61
63
|
agreementsV2: defField("array", {
|
|
@@ -76,18 +78,22 @@ const classProps = {
|
|
|
76
78
|
* @property {string} code - 現場コード
|
|
77
79
|
* @property {string} name - 現場名
|
|
78
80
|
* @property {string} nameKana - 現場名カナ
|
|
79
|
-
* @property {string} zipcode -
|
|
80
|
-
* @property {string} prefCode -
|
|
81
|
-
* @property {string} prefecture -
|
|
82
|
-
* @property {string} city -
|
|
83
|
-
* @property {string} address -
|
|
84
|
-
* @property {string} building -
|
|
85
|
-
* @property {string} fullAddress -
|
|
81
|
+
* @property {string} zipcode - 郵便番号
|
|
82
|
+
* @property {string} prefCode - 都道府県コード
|
|
83
|
+
* @property {string} prefecture - 都道府県名(`prefCode` から派生)(読み取り専用)
|
|
84
|
+
* @property {string} city - 市区町村名
|
|
85
|
+
* @property {string} address - 町域名・番地
|
|
86
|
+
* @property {string} building - 建物名
|
|
87
|
+
* @property {string} fullAddress - 住所(郵便番号、都道府県、市区町村、番地、建物名を結合したもの)(読み取り専用)
|
|
86
88
|
* @property {object} location - Geographical location.
|
|
87
|
-
* @property {string}
|
|
89
|
+
* @property {string} securityType - 警備種別
|
|
90
|
+
* @property {string} constructionPeriodStartAt - 工期開始日
|
|
91
|
+
* @property {string} constructionPeriodEndAt - 工期終了日
|
|
92
|
+
* @property {boolean} hasConstructionPeriod - 工期が設定されているかどうかを表すフラグ(読み取り専用)
|
|
93
|
+
* @property {string} remarks - 備考
|
|
88
94
|
* @property {array} agreementsV2 - 取極めの配列(バージョン2)。`AgreementV2` クラスのインスタンスを要素とする。
|
|
89
95
|
*
|
|
90
|
-
* @property {string} status -
|
|
96
|
+
* @property {string} status - 現場のステータス(例: "ACTIVE", "TERMINATED")
|
|
91
97
|
* @property {boolean} isTemporary - 仮登録状態かどうかを表すフラグ
|
|
92
98
|
*
|
|
93
99
|
* @function getAgreement
|
|
@@ -228,6 +234,19 @@ export default class Site extends GeocodableMixin(FireModel) {
|
|
|
228
234
|
},
|
|
229
235
|
set() {},
|
|
230
236
|
},
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* 工期が設定されているかどうかを表すアクセサー
|
|
240
|
+
* - `constructionPeriodStartAt` または `constructionPeriodEndAt` のいずれかが設定されている場合に `true` を返します。
|
|
241
|
+
*/
|
|
242
|
+
hasConstructionPeriod: {
|
|
243
|
+
configurable: true,
|
|
244
|
+
enumerable: true,
|
|
245
|
+
get() {
|
|
246
|
+
return this.constructionPeriodStartAt || this.constructionPeriodEndAt;
|
|
247
|
+
},
|
|
248
|
+
set() {},
|
|
249
|
+
},
|
|
231
250
|
});
|
|
232
251
|
|
|
233
252
|
/** 2026-03-31 Deprecated */
|
|
@@ -5,59 +5,92 @@ import { generalDefinitions } from "./defaultDefinition.js";
|
|
|
5
5
|
*/
|
|
6
6
|
export const dateAtFields = {
|
|
7
7
|
dateAt: generalDefinitions.dateAt,
|
|
8
|
+
|
|
9
|
+
/** 工期(終了日) */
|
|
10
|
+
constructionPeriodEndAt: {
|
|
11
|
+
...generalDefinitions.dateAt,
|
|
12
|
+
label: "工期(終了日)",
|
|
13
|
+
default: null,
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
/** 工期(開始日) */
|
|
17
|
+
constructionPeriodStartAt: {
|
|
18
|
+
...generalDefinitions.dateAt,
|
|
19
|
+
label: "工期(開始日)",
|
|
20
|
+
default: null,
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
/** 生年月日 */
|
|
8
24
|
dateOfBirth: {
|
|
9
25
|
...generalDefinitions.dateAt,
|
|
10
26
|
label: "生年月日",
|
|
11
|
-
default: null,
|
|
27
|
+
default: null,
|
|
12
28
|
component: {
|
|
13
29
|
...generalDefinitions.dateAt.component,
|
|
14
30
|
attrs: {
|
|
15
|
-
viewMode: "year",
|
|
31
|
+
viewMode: "year",
|
|
16
32
|
},
|
|
17
33
|
},
|
|
18
34
|
},
|
|
35
|
+
|
|
36
|
+
/** 入社日 */
|
|
19
37
|
dateOfHire: {
|
|
20
38
|
...generalDefinitions.dateAt,
|
|
21
39
|
label: "入社日",
|
|
22
40
|
},
|
|
23
|
-
|
|
41
|
+
|
|
42
|
+
/** 警備員登録日 */
|
|
24
43
|
dateOfSecurityGuardRegistration: {
|
|
25
44
|
...generalDefinitions.dateAt,
|
|
26
45
|
label: "警備員登録日",
|
|
27
46
|
default: null,
|
|
28
47
|
},
|
|
48
|
+
|
|
49
|
+
/** 退職日 */
|
|
29
50
|
dateOfTermination: {
|
|
30
51
|
...generalDefinitions.dateAt,
|
|
31
52
|
label: "退職日",
|
|
32
|
-
default: null,
|
|
53
|
+
default: null,
|
|
33
54
|
},
|
|
55
|
+
|
|
56
|
+
/** 資格取得日 */
|
|
34
57
|
enrollmentDateAt: {
|
|
35
58
|
...generalDefinitions.dateAt,
|
|
36
59
|
label: "資格取得日",
|
|
37
60
|
default: null,
|
|
38
61
|
},
|
|
39
|
-
|
|
62
|
+
|
|
63
|
+
/** 有効期限 */
|
|
40
64
|
expirationDateAt: {
|
|
41
65
|
...generalDefinitions.dateAt,
|
|
42
66
|
label: "有効期限",
|
|
43
67
|
default: null,
|
|
44
68
|
},
|
|
69
|
+
|
|
70
|
+
/** 取得日 */
|
|
45
71
|
issueDateAt: {
|
|
46
72
|
...generalDefinitions.dateAt,
|
|
47
73
|
label: "取得日",
|
|
48
74
|
},
|
|
75
|
+
|
|
76
|
+
/** 資格喪失日 */
|
|
49
77
|
lossDateAt: {
|
|
50
78
|
...generalDefinitions.dateAt,
|
|
51
79
|
label: "資格喪失日",
|
|
52
80
|
default: null,
|
|
53
81
|
},
|
|
82
|
+
|
|
83
|
+
/** 通知送信日時 */
|
|
54
84
|
notificationSentAt: {
|
|
55
85
|
...generalDefinitions.dateAt,
|
|
56
86
|
label: "通知送信日時",
|
|
57
87
|
default: null,
|
|
58
88
|
},
|
|
89
|
+
|
|
90
|
+
/** 在留期間満了日 */
|
|
59
91
|
periodOfStay: {
|
|
60
92
|
...generalDefinitions.dateAt,
|
|
61
93
|
label: "在留期間満了日",
|
|
94
|
+
default: null,
|
|
62
95
|
},
|
|
63
96
|
};
|