@shisyamo4131/air-guard-v2-schemas 2.3.7-dev.3 → 2.3.7-dev.31
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/index.js +1 -0
- package/package.json +1 -1
- package/src/Company.js +27 -1
- package/src/Customer.js +50 -36
- package/src/Employee.js +368 -58
- package/src/OperationBilling.js +28 -14
- package/src/OperationResult.js +36 -16
- package/src/Site.js +42 -15
- package/src/SiteOperationSchedule.js +27 -20
- package/src/System.js +43 -0
- package/src/apis/index.js +4 -0
- package/src/constants/blood-type.js +14 -0
- package/src/constants/emergency-contact-relation.js +16 -0
- package/src/constants/index.js +8 -0
- package/src/parts/accessorDefinitions.js +13 -27
- package/src/parts/fieldDefinitions.js +118 -1
|
@@ -2,6 +2,10 @@ import {
|
|
|
2
2
|
VALUES as ARRANGEMENT_NOTIFICATION_STATUS_VALUES,
|
|
3
3
|
OPTIONS as ARRANGEMENT_NOTIFICATION_STATUS_OPTIONS,
|
|
4
4
|
} from "../constants/arrangement-notification-status.js";
|
|
5
|
+
import {
|
|
6
|
+
VALUES as BLOOD_TYPE_VALUES,
|
|
7
|
+
OPTIONS as BLOOD_TYPE_OPTIONS,
|
|
8
|
+
} from "../constants/blood-type.js";
|
|
5
9
|
import {
|
|
6
10
|
VALUES as CONTRACT_STATUS_VALUES,
|
|
7
11
|
OPTIONS as CONTRACT_STATUS_OPTIONS,
|
|
@@ -10,6 +14,10 @@ import {
|
|
|
10
14
|
OPTIONS as DAY_TYPE_OPTIONS,
|
|
11
15
|
VALUES as DAY_TYPE_VALUES,
|
|
12
16
|
} from "../constants/day-type.js";
|
|
17
|
+
import {
|
|
18
|
+
VALUES as EMERGENCY_CONTACT_RELATION_VALUES,
|
|
19
|
+
OPTIONS as EMERGENCY_CONTACT_RELATION_OPTIONS,
|
|
20
|
+
} from "../constants/emergency-contact-relation.js";
|
|
13
21
|
import {
|
|
14
22
|
VALUES as EMPLOYMENT_STATUS_VALUES,
|
|
15
23
|
OPTIONS as EMPLOYMENT_STATUS_OPTIONS,
|
|
@@ -147,11 +155,30 @@ export const fieldDefinitions = {
|
|
|
147
155
|
code: generalDefinitions.code,
|
|
148
156
|
/** dateAt */
|
|
149
157
|
dateAt: generalDefinitions.dateAt,
|
|
158
|
+
dateOfBirth: {
|
|
159
|
+
...generalDefinitions.dateAt,
|
|
160
|
+
label: "生年月日",
|
|
161
|
+
},
|
|
162
|
+
dateOfHire: {
|
|
163
|
+
...generalDefinitions.dateAt,
|
|
164
|
+
label: "入社日",
|
|
165
|
+
},
|
|
166
|
+
dateOfTermination: {
|
|
167
|
+
...generalDefinitions.dateAt,
|
|
168
|
+
label: "退職日",
|
|
169
|
+
},
|
|
170
|
+
periodOfStay: {
|
|
171
|
+
...generalDefinitions.dateAt,
|
|
172
|
+
label: "在留期間満了日",
|
|
173
|
+
},
|
|
150
174
|
/** dateTimeAt */
|
|
151
175
|
dateTimeAt: generalDefinitions.dateTimeAt,
|
|
152
176
|
/** multiple-line */
|
|
153
177
|
multipleLine: generalDefinitions.multipleLine,
|
|
154
|
-
|
|
178
|
+
remarks: {
|
|
179
|
+
...generalDefinitions.multipleLine,
|
|
180
|
+
label: "備考",
|
|
181
|
+
},
|
|
155
182
|
/** number */
|
|
156
183
|
number: generalDefinitions.number,
|
|
157
184
|
breakMinutes: {
|
|
@@ -219,6 +246,8 @@ export const fieldDefinitions = {
|
|
|
219
246
|
customerId: {
|
|
220
247
|
...generalDefinitions.oneLine,
|
|
221
248
|
label: "取引先",
|
|
249
|
+
// アプリ側で `useFetchXxxx` コンポーザブルを使用するため
|
|
250
|
+
// 使用するクラス側で api 関連の設定は不要。
|
|
222
251
|
component: {
|
|
223
252
|
name: "air-autocomplete-api",
|
|
224
253
|
attrs: {
|
|
@@ -233,6 +262,11 @@ export const fieldDefinitions = {
|
|
|
233
262
|
label: "表示名",
|
|
234
263
|
length: 6,
|
|
235
264
|
},
|
|
265
|
+
domicile: {
|
|
266
|
+
...generalDefinitions.oneLine,
|
|
267
|
+
label: "本籍地",
|
|
268
|
+
length: 30,
|
|
269
|
+
},
|
|
236
270
|
email: {
|
|
237
271
|
...generalDefinitions.oneLine,
|
|
238
272
|
label: "email",
|
|
@@ -244,6 +278,33 @@ export const fieldDefinitions = {
|
|
|
244
278
|
},
|
|
245
279
|
},
|
|
246
280
|
},
|
|
281
|
+
emergencyContactAddress: {
|
|
282
|
+
...generalDefinitions.oneLine,
|
|
283
|
+
label: "緊急連絡先住所",
|
|
284
|
+
length: 20,
|
|
285
|
+
},
|
|
286
|
+
emergencyContactName: {
|
|
287
|
+
...generalDefinitions.oneLine,
|
|
288
|
+
label: "緊急連絡先氏名",
|
|
289
|
+
length: 20,
|
|
290
|
+
},
|
|
291
|
+
emergencyContactRelationDetail: {
|
|
292
|
+
...generalDefinitions.oneLine,
|
|
293
|
+
label: "緊急連絡先続柄詳細",
|
|
294
|
+
length: 20,
|
|
295
|
+
},
|
|
296
|
+
emergencyContactPhone: {
|
|
297
|
+
...generalDefinitions.oneLine,
|
|
298
|
+
label: "緊急連絡先電話番号",
|
|
299
|
+
length: 13,
|
|
300
|
+
component: {
|
|
301
|
+
name: generalDefinitions.oneLine.component.name,
|
|
302
|
+
attrs: {
|
|
303
|
+
counter: true,
|
|
304
|
+
inputType: "tel",
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
},
|
|
247
308
|
fax: {
|
|
248
309
|
...generalDefinitions.oneLine,
|
|
249
310
|
label: "FAX番号",
|
|
@@ -276,6 +337,13 @@ export const fieldDefinitions = {
|
|
|
276
337
|
...generalDefinitions.oneLine,
|
|
277
338
|
label: "本名",
|
|
278
339
|
length: 50,
|
|
340
|
+
component: {
|
|
341
|
+
name: generalDefinitions.oneLine.component.name,
|
|
342
|
+
attrs: {
|
|
343
|
+
hint: "パスポート等の表記をご入力ください。",
|
|
344
|
+
persistentHint: true,
|
|
345
|
+
},
|
|
346
|
+
},
|
|
279
347
|
},
|
|
280
348
|
lastName: {
|
|
281
349
|
...generalDefinitions.oneLine,
|
|
@@ -293,6 +361,18 @@ export const fieldDefinitions = {
|
|
|
293
361
|
},
|
|
294
362
|
},
|
|
295
363
|
},
|
|
364
|
+
mobile: {
|
|
365
|
+
...generalDefinitions.oneLine,
|
|
366
|
+
label: "携帯電話",
|
|
367
|
+
length: 13,
|
|
368
|
+
component: {
|
|
369
|
+
name: generalDefinitions.oneLine.component.name,
|
|
370
|
+
attrs: {
|
|
371
|
+
counter: true,
|
|
372
|
+
inputType: "tel",
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
},
|
|
296
376
|
name: {
|
|
297
377
|
...generalDefinitions.oneLine,
|
|
298
378
|
label: "名前",
|
|
@@ -314,6 +394,16 @@ export const fieldDefinitions = {
|
|
|
314
394
|
label: "国籍",
|
|
315
395
|
length: 50,
|
|
316
396
|
},
|
|
397
|
+
residenceStatus: {
|
|
398
|
+
...generalDefinitions.oneLine,
|
|
399
|
+
label: "在留資格",
|
|
400
|
+
length: 10,
|
|
401
|
+
},
|
|
402
|
+
reasonOfTermination: {
|
|
403
|
+
...generalDefinitions.oneLine,
|
|
404
|
+
label: "退職理由",
|
|
405
|
+
length: 20,
|
|
406
|
+
},
|
|
317
407
|
siteId: {
|
|
318
408
|
...generalDefinitions.oneLine,
|
|
319
409
|
label: "現場",
|
|
@@ -338,6 +428,11 @@ export const fieldDefinitions = {
|
|
|
338
428
|
},
|
|
339
429
|
},
|
|
340
430
|
},
|
|
431
|
+
title: {
|
|
432
|
+
...generalDefinitions.oneLine,
|
|
433
|
+
label: "肩書",
|
|
434
|
+
length: 20,
|
|
435
|
+
},
|
|
341
436
|
workDescription: {
|
|
342
437
|
...generalDefinitions.oneLine,
|
|
343
438
|
label: "作業内容",
|
|
@@ -404,6 +499,17 @@ export const fieldDefinitions = {
|
|
|
404
499
|
},
|
|
405
500
|
},
|
|
406
501
|
},
|
|
502
|
+
bloodType: {
|
|
503
|
+
...generalDefinitions.select,
|
|
504
|
+
label: "血液型",
|
|
505
|
+
default: BLOOD_TYPE_VALUES.A.value,
|
|
506
|
+
component: {
|
|
507
|
+
name: generalDefinitions.select.component.name,
|
|
508
|
+
attrs: {
|
|
509
|
+
items: BLOOD_TYPE_OPTIONS,
|
|
510
|
+
},
|
|
511
|
+
},
|
|
512
|
+
},
|
|
407
513
|
// contractStatus -> Used in Customer.js and Outsourcer.js
|
|
408
514
|
contractStatus: {
|
|
409
515
|
...generalDefinitions.select,
|
|
@@ -427,6 +533,17 @@ export const fieldDefinitions = {
|
|
|
427
533
|
},
|
|
428
534
|
},
|
|
429
535
|
},
|
|
536
|
+
emergencyContactRelation: {
|
|
537
|
+
...generalDefinitions.select,
|
|
538
|
+
default: EMERGENCY_CONTACT_RELATION_VALUES.PARENT.value,
|
|
539
|
+
label: "緊急連絡先続柄",
|
|
540
|
+
component: {
|
|
541
|
+
name: generalDefinitions.select.component.name,
|
|
542
|
+
attrs: {
|
|
543
|
+
items: EMERGENCY_CONTACT_RELATION_OPTIONS,
|
|
544
|
+
},
|
|
545
|
+
},
|
|
546
|
+
},
|
|
430
547
|
employmentStatus: {
|
|
431
548
|
...generalDefinitions.select,
|
|
432
549
|
default: EMPLOYMENT_STATUS_VALUES.ACTIVE.value,
|