@shisyamo4131/air-guard-v2-schemas 2.3.7-dev.4 → 2.3.7-dev.40

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.
@@ -2,6 +2,14 @@ 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";
9
+ import {
10
+ VALUES as CERTIFICATION_TYPE_VALUES,
11
+ OPTIONS as CERTIFICATION_TYPE_OPTIONS,
12
+ } from "../constants/certification-type.js";
5
13
  import {
6
14
  VALUES as CONTRACT_STATUS_VALUES,
7
15
  OPTIONS as CONTRACT_STATUS_OPTIONS,
@@ -10,6 +18,10 @@ import {
10
18
  OPTIONS as DAY_TYPE_OPTIONS,
11
19
  VALUES as DAY_TYPE_VALUES,
12
20
  } from "../constants/day-type.js";
21
+ import {
22
+ VALUES as EMERGENCY_CONTACT_RELATION_VALUES,
23
+ OPTIONS as EMERGENCY_CONTACT_RELATION_OPTIONS,
24
+ } from "../constants/emergency-contact-relation.js";
13
25
  import {
14
26
  VALUES as EMPLOYMENT_STATUS_VALUES,
15
27
  OPTIONS as EMPLOYMENT_STATUS_OPTIONS,
@@ -147,11 +159,30 @@ export const fieldDefinitions = {
147
159
  code: generalDefinitions.code,
148
160
  /** dateAt */
149
161
  dateAt: generalDefinitions.dateAt,
162
+ dateOfBirth: {
163
+ ...generalDefinitions.dateAt,
164
+ label: "生年月日",
165
+ },
166
+ dateOfHire: {
167
+ ...generalDefinitions.dateAt,
168
+ label: "入社日",
169
+ },
170
+ dateOfTermination: {
171
+ ...generalDefinitions.dateAt,
172
+ label: "退職日",
173
+ },
174
+ periodOfStay: {
175
+ ...generalDefinitions.dateAt,
176
+ label: "在留期間満了日",
177
+ },
150
178
  /** dateTimeAt */
151
179
  dateTimeAt: generalDefinitions.dateTimeAt,
152
180
  /** multiple-line */
153
181
  multipleLine: generalDefinitions.multipleLine,
154
-
182
+ remarks: {
183
+ ...generalDefinitions.multipleLine,
184
+ label: "備考",
185
+ },
155
186
  /** number */
156
187
  number: generalDefinitions.number,
157
188
  breakMinutes: {
@@ -219,6 +250,8 @@ export const fieldDefinitions = {
219
250
  customerId: {
220
251
  ...generalDefinitions.oneLine,
221
252
  label: "取引先",
253
+ // アプリ側で `useFetchXxxx` コンポーザブルを使用するため
254
+ // 使用するクラス側で api 関連の設定は不要。
222
255
  component: {
223
256
  name: "air-autocomplete-api",
224
257
  attrs: {
@@ -233,6 +266,11 @@ export const fieldDefinitions = {
233
266
  label: "表示名",
234
267
  length: 6,
235
268
  },
269
+ domicile: {
270
+ ...generalDefinitions.oneLine,
271
+ label: "本籍地",
272
+ length: 30,
273
+ },
236
274
  email: {
237
275
  ...generalDefinitions.oneLine,
238
276
  label: "email",
@@ -244,6 +282,33 @@ export const fieldDefinitions = {
244
282
  },
245
283
  },
246
284
  },
285
+ emergencyContactAddress: {
286
+ ...generalDefinitions.oneLine,
287
+ label: "緊急連絡先住所",
288
+ length: 20,
289
+ },
290
+ emergencyContactName: {
291
+ ...generalDefinitions.oneLine,
292
+ label: "緊急連絡先氏名",
293
+ length: 20,
294
+ },
295
+ emergencyContactRelationDetail: {
296
+ ...generalDefinitions.oneLine,
297
+ label: "緊急連絡先続柄詳細",
298
+ length: 20,
299
+ },
300
+ emergencyContactPhone: {
301
+ ...generalDefinitions.oneLine,
302
+ label: "緊急連絡先電話番号",
303
+ length: 13,
304
+ component: {
305
+ name: generalDefinitions.oneLine.component.name,
306
+ attrs: {
307
+ counter: true,
308
+ inputType: "tel",
309
+ },
310
+ },
311
+ },
247
312
  fax: {
248
313
  ...generalDefinitions.oneLine,
249
314
  label: "FAX番号",
@@ -276,6 +341,13 @@ export const fieldDefinitions = {
276
341
  ...generalDefinitions.oneLine,
277
342
  label: "本名",
278
343
  length: 50,
344
+ component: {
345
+ name: generalDefinitions.oneLine.component.name,
346
+ attrs: {
347
+ hint: "パスポート等の表記をご入力ください。",
348
+ persistentHint: true,
349
+ },
350
+ },
279
351
  },
280
352
  lastName: {
281
353
  ...generalDefinitions.oneLine,
@@ -293,6 +365,18 @@ export const fieldDefinitions = {
293
365
  },
294
366
  },
295
367
  },
368
+ mobile: {
369
+ ...generalDefinitions.oneLine,
370
+ label: "携帯電話",
371
+ length: 13,
372
+ component: {
373
+ name: generalDefinitions.oneLine.component.name,
374
+ attrs: {
375
+ counter: true,
376
+ inputType: "tel",
377
+ },
378
+ },
379
+ },
296
380
  name: {
297
381
  ...generalDefinitions.oneLine,
298
382
  label: "名前",
@@ -314,6 +398,16 @@ export const fieldDefinitions = {
314
398
  label: "国籍",
315
399
  length: 50,
316
400
  },
401
+ residenceStatus: {
402
+ ...generalDefinitions.oneLine,
403
+ label: "在留資格",
404
+ length: 10,
405
+ },
406
+ reasonOfTermination: {
407
+ ...generalDefinitions.oneLine,
408
+ label: "退職理由",
409
+ length: 20,
410
+ },
317
411
  siteId: {
318
412
  ...generalDefinitions.oneLine,
319
413
  label: "現場",
@@ -338,6 +432,11 @@ export const fieldDefinitions = {
338
432
  },
339
433
  },
340
434
  },
435
+ title: {
436
+ ...generalDefinitions.oneLine,
437
+ label: "肩書",
438
+ length: 20,
439
+ },
341
440
  workDescription: {
342
441
  ...generalDefinitions.oneLine,
343
442
  label: "作業内容",
@@ -352,9 +451,9 @@ export const fieldDefinitions = {
352
451
  attrs: {
353
452
  counter: true,
354
453
  inputType: "zipcode",
355
- "onUpdate:address": (item, updater) => {
454
+ "onUpdate:address": ({ item, updateProperties }) => {
356
455
  return (result) => {
357
- updater({
456
+ updateProperties({
358
457
  prefCode: result.prefcode,
359
458
  prefecture: result.address1,
360
459
  city: result.address2,
@@ -404,6 +503,28 @@ export const fieldDefinitions = {
404
503
  },
405
504
  },
406
505
  },
506
+ bloodType: {
507
+ ...generalDefinitions.select,
508
+ label: "血液型",
509
+ default: BLOOD_TYPE_VALUES.A.value,
510
+ component: {
511
+ name: generalDefinitions.select.component.name,
512
+ attrs: {
513
+ items: BLOOD_TYPE_OPTIONS,
514
+ },
515
+ },
516
+ },
517
+ certificationType: {
518
+ ...generalDefinitions.select,
519
+ label: "資格種別",
520
+ default: null,
521
+ component: {
522
+ name: generalDefinitions.select.component.name,
523
+ attrs: {
524
+ items: CERTIFICATION_TYPE_OPTIONS,
525
+ },
526
+ },
527
+ },
407
528
  // contractStatus -> Used in Customer.js and Outsourcer.js
408
529
  contractStatus: {
409
530
  ...generalDefinitions.select,
@@ -427,6 +548,17 @@ export const fieldDefinitions = {
427
548
  },
428
549
  },
429
550
  },
551
+ emergencyContactRelation: {
552
+ ...generalDefinitions.select,
553
+ default: EMERGENCY_CONTACT_RELATION_VALUES.PARENT.value,
554
+ label: "緊急連絡先続柄",
555
+ component: {
556
+ name: generalDefinitions.select.component.name,
557
+ attrs: {
558
+ items: EMERGENCY_CONTACT_RELATION_OPTIONS,
559
+ },
560
+ },
561
+ },
430
562
  employmentStatus: {
431
563
  ...generalDefinitions.select,
432
564
  default: EMPLOYMENT_STATUS_VALUES.ACTIVE.value,