@shisyamo4131/air-guard-v2-schemas 2.4.2-dev.7 → 2.4.2-dev.71
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 +9 -0
- package/package.json +45 -47
- package/src/Agreement.js +17 -24
- package/src/AgreementV2.js +185 -0
- package/src/ArrangementNotification.js +8 -8
- package/src/Billing.js +5 -34
- package/src/Company.js +162 -25
- package/src/Customer.js +39 -59
- package/src/Employee.js +595 -297
- package/src/Insurance.js +408 -0
- package/src/Operation.js +272 -280
- package/src/OperationBilling.js +126 -192
- package/src/OperationDetail.js +115 -85
- package/src/OperationResult.js +257 -254
- package/src/OperationResultDetail.js +65 -56
- package/src/Site.js +160 -141
- package/src/SiteOperationSchedule.js +187 -247
- package/src/SiteOperationScheduleDetail.js +75 -65
- package/src/SiteOrder.js +18 -29
- package/src/User.js +5 -1
- package/src/WorkTimeBase.js +205 -0
- package/src/WorkingResult.js +83 -255
- package/src/constants/day-type.js +20 -12
- package/src/constants/index.js +4 -0
- package/src/constants/insurance-status.js +15 -0
- package/src/constants/shift-type.js +5 -2
- package/src/errorDefinitions.js +173 -0
- package/src/parts/fieldDefinitions/array.js +8 -0
- package/src/parts/fieldDefinitions/check.js +20 -0
- package/src/parts/fieldDefinitions/code.js +8 -0
- package/src/parts/fieldDefinitions/constants.js +9 -0
- package/src/parts/fieldDefinitions/dateAt.js +58 -0
- package/src/parts/fieldDefinitions/dateTimeAt.js +8 -0
- package/src/parts/fieldDefinitions/defaultDefinition.js +118 -0
- package/src/parts/fieldDefinitions/multipleLine.js +12 -0
- package/src/parts/fieldDefinitions/number.js +69 -0
- package/src/parts/fieldDefinitions/object.js +38 -0
- package/src/parts/fieldDefinitions/oneLine.js +306 -0
- package/src/parts/fieldDefinitions/radio.js +8 -0
- package/src/parts/fieldDefinitions/select.js +240 -0
- package/src/parts/fieldDefinitions/time.js +8 -0
- package/src/parts/fieldDefinitions.js +46 -669
- package/src/utils/CutoffDate.js +11 -15
- package/src/utils/index.js +44 -8
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { generalDefinitions } from "./defaultDefinition.js";
|
|
2
|
+
import {
|
|
3
|
+
VALUES as ARRANGEMENT_NOTIFICATION_STATUS_VALUES,
|
|
4
|
+
OPTIONS as ARRANGEMENT_NOTIFICATION_STATUS_OPTIONS,
|
|
5
|
+
} from "../../constants/arrangement-notification-status.js";
|
|
6
|
+
import {
|
|
7
|
+
VALUES as BILLING_UNIT_TYPE_VALUES,
|
|
8
|
+
OPTIONS as BILLING_UNIT_TYPE_OPTIONS,
|
|
9
|
+
} from "../../constants/billing-unit-type.js";
|
|
10
|
+
import {
|
|
11
|
+
VALUES as BLOOD_TYPE_VALUES,
|
|
12
|
+
OPTIONS as BLOOD_TYPE_OPTIONS,
|
|
13
|
+
} from "../../constants/blood-type.js";
|
|
14
|
+
import {
|
|
15
|
+
VALUES as CERTIFICATION_TYPE_VALUES,
|
|
16
|
+
OPTIONS as CERTIFICATION_TYPE_OPTIONS,
|
|
17
|
+
} from "../../constants/certification-type.js";
|
|
18
|
+
import {
|
|
19
|
+
VALUES as CONTRACT_STATUS_VALUES,
|
|
20
|
+
OPTIONS as CONTRACT_STATUS_OPTIONS,
|
|
21
|
+
} from "../../constants/contract-status.js";
|
|
22
|
+
import {
|
|
23
|
+
OPTIONS as DAY_TYPE_OPTIONS,
|
|
24
|
+
VALUES as DAY_TYPE_VALUES,
|
|
25
|
+
} from "../../constants/day-type.js";
|
|
26
|
+
import {
|
|
27
|
+
VALUES as EMERGENCY_CONTACT_RELATION_VALUES,
|
|
28
|
+
OPTIONS as EMERGENCY_CONTACT_RELATION_OPTIONS,
|
|
29
|
+
} from "../../constants/emergency-contact-relation.js";
|
|
30
|
+
import {
|
|
31
|
+
VALUES as EMPLOYMENT_STATUS_VALUES,
|
|
32
|
+
OPTIONS as EMPLOYMENT_STATUS_OPTIONS,
|
|
33
|
+
} from "../../constants/employment-status.js";
|
|
34
|
+
import {
|
|
35
|
+
VALUES as GENDER_VALUES,
|
|
36
|
+
OPTIONS as GENDER_OPTIONS,
|
|
37
|
+
} from "../../constants/gender.js";
|
|
38
|
+
import {
|
|
39
|
+
VALUES as INSURANCE_STATUS_VALUES,
|
|
40
|
+
OPTIONS as INSURANCE_STATUS_OPTIONS,
|
|
41
|
+
} from "../../constants/insurance-status.js";
|
|
42
|
+
import { OPTIONS as PREFECTURES_OPTIONS } from "../../constants/prefectures.js";
|
|
43
|
+
import {
|
|
44
|
+
VALUES as PAYMENT_MONTH_VALUES,
|
|
45
|
+
OPTIONS as PAYMENT_MONTH_OPTIONS,
|
|
46
|
+
} from "../../constants/payment-month.js";
|
|
47
|
+
import {
|
|
48
|
+
VALUES as SHIFT_TYPE_VALUES,
|
|
49
|
+
OPTIONS as SHIFT_TYPE_OPTIONS,
|
|
50
|
+
} from "../../constants/shift-type.js";
|
|
51
|
+
import {
|
|
52
|
+
VALUES as SITE_STATUS_VALUES,
|
|
53
|
+
OPTIONS as SITE_STATUS_OPTIONS,
|
|
54
|
+
} from "../../constants/site-status.js";
|
|
55
|
+
import CutoffDate from "../../utils/CutoffDate.js";
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* SELECT型のフィールド定義
|
|
59
|
+
*/
|
|
60
|
+
export const selectFields = {
|
|
61
|
+
select: generalDefinitions.select,
|
|
62
|
+
arrangementNotificationStatus: {
|
|
63
|
+
...generalDefinitions.select,
|
|
64
|
+
default: ARRANGEMENT_NOTIFICATION_STATUS_VALUES.ARRANGED.value,
|
|
65
|
+
label: "状態",
|
|
66
|
+
component: {
|
|
67
|
+
name: generalDefinitions.select.component.name,
|
|
68
|
+
attrs: {
|
|
69
|
+
items: ARRANGEMENT_NOTIFICATION_STATUS_OPTIONS,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
/** 請求単位 */
|
|
74
|
+
billingUnitType: {
|
|
75
|
+
...generalDefinitions.select,
|
|
76
|
+
default: BILLING_UNIT_TYPE_VALUES.PER_DAY.value,
|
|
77
|
+
label: "請求単位",
|
|
78
|
+
component: {
|
|
79
|
+
name: generalDefinitions.select.component.name,
|
|
80
|
+
attrs: {
|
|
81
|
+
items: BILLING_UNIT_TYPE_OPTIONS,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
bloodType: {
|
|
86
|
+
...generalDefinitions.select,
|
|
87
|
+
label: "血液型",
|
|
88
|
+
default: BLOOD_TYPE_VALUES.A.value,
|
|
89
|
+
component: {
|
|
90
|
+
name: generalDefinitions.select.component.name,
|
|
91
|
+
attrs: {
|
|
92
|
+
items: BLOOD_TYPE_OPTIONS,
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
certificationType: {
|
|
97
|
+
...generalDefinitions.select,
|
|
98
|
+
label: "資格種別",
|
|
99
|
+
default: null,
|
|
100
|
+
component: {
|
|
101
|
+
name: generalDefinitions.select.component.name,
|
|
102
|
+
attrs: {
|
|
103
|
+
items: CERTIFICATION_TYPE_OPTIONS,
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
// contractStatus -> Used in Customer.js and Outsourcer.js
|
|
108
|
+
contractStatus: {
|
|
109
|
+
...generalDefinitions.select,
|
|
110
|
+
default: CONTRACT_STATUS_VALUES.ACTIVE.value,
|
|
111
|
+
label: "契約状態",
|
|
112
|
+
component: {
|
|
113
|
+
name: generalDefinitions.select.component.name,
|
|
114
|
+
attrs: {
|
|
115
|
+
items: CONTRACT_STATUS_OPTIONS,
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
cutoffDate: {
|
|
120
|
+
...generalDefinitions.select,
|
|
121
|
+
default: CutoffDate.VALUES[0].value,
|
|
122
|
+
label: "締日",
|
|
123
|
+
component: {
|
|
124
|
+
name: generalDefinitions.select.component.name,
|
|
125
|
+
attrs: {
|
|
126
|
+
items: CutoffDate.OPTIONS,
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
dayType: {
|
|
131
|
+
...generalDefinitions.select,
|
|
132
|
+
default: DAY_TYPE_VALUES.WEEKDAY.value,
|
|
133
|
+
label: "曜日区分",
|
|
134
|
+
component: {
|
|
135
|
+
name: generalDefinitions.select.component.name,
|
|
136
|
+
attrs: {
|
|
137
|
+
items: DAY_TYPE_OPTIONS,
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
emergencyContactRelation: {
|
|
142
|
+
...generalDefinitions.select,
|
|
143
|
+
default: EMERGENCY_CONTACT_RELATION_VALUES.PARENT.value,
|
|
144
|
+
label: "緊急連絡先続柄",
|
|
145
|
+
component: {
|
|
146
|
+
name: generalDefinitions.select.component.name,
|
|
147
|
+
attrs: {
|
|
148
|
+
items: EMERGENCY_CONTACT_RELATION_OPTIONS,
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
employmentStatus: {
|
|
153
|
+
...generalDefinitions.select,
|
|
154
|
+
default: EMPLOYMENT_STATUS_VALUES.ACTIVE.value,
|
|
155
|
+
label: "雇用状態",
|
|
156
|
+
component: {
|
|
157
|
+
name: generalDefinitions.select.component.name,
|
|
158
|
+
attrs: {
|
|
159
|
+
items: EMPLOYMENT_STATUS_OPTIONS,
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
gender: {
|
|
164
|
+
...generalDefinitions.select,
|
|
165
|
+
default: GENDER_VALUES.MALE.value,
|
|
166
|
+
label: "性別",
|
|
167
|
+
component: {
|
|
168
|
+
name: generalDefinitions.select.component.name,
|
|
169
|
+
attrs: {
|
|
170
|
+
items: GENDER_OPTIONS,
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
insuranceStatus: {
|
|
175
|
+
...generalDefinitions.select,
|
|
176
|
+
default: INSURANCE_STATUS_VALUES.NOT_ENROLLED.value,
|
|
177
|
+
label: "保険状態",
|
|
178
|
+
component: {
|
|
179
|
+
name: generalDefinitions.select.component.name,
|
|
180
|
+
attrs: {
|
|
181
|
+
items: INSURANCE_STATUS_OPTIONS,
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
paymentDate: {
|
|
186
|
+
...generalDefinitions.select,
|
|
187
|
+
default: CutoffDate.VALUES[0].value,
|
|
188
|
+
label: "入金サイト(日)",
|
|
189
|
+
component: {
|
|
190
|
+
name: generalDefinitions.select.component.name,
|
|
191
|
+
attrs: {
|
|
192
|
+
items: CutoffDate.OPTIONS,
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
paymentMonth: {
|
|
197
|
+
...generalDefinitions.select,
|
|
198
|
+
default: PAYMENT_MONTH_VALUES[1].value,
|
|
199
|
+
label: "入金サイト(月数)",
|
|
200
|
+
component: {
|
|
201
|
+
name: generalDefinitions.select.component.name,
|
|
202
|
+
attrs: {
|
|
203
|
+
items: PAYMENT_MONTH_OPTIONS,
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
prefCode: {
|
|
208
|
+
...generalDefinitions.select,
|
|
209
|
+
label: "都道府県",
|
|
210
|
+
length: 2,
|
|
211
|
+
component: {
|
|
212
|
+
name: generalDefinitions.select.component.name,
|
|
213
|
+
attrs: {
|
|
214
|
+
items: PREFECTURES_OPTIONS,
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
shiftType: {
|
|
219
|
+
...generalDefinitions.select,
|
|
220
|
+
default: SHIFT_TYPE_VALUES.DAY.value,
|
|
221
|
+
label: "勤務区分",
|
|
222
|
+
component: {
|
|
223
|
+
name: generalDefinitions.select.component.name,
|
|
224
|
+
attrs: {
|
|
225
|
+
items: SHIFT_TYPE_OPTIONS,
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
siteStatus: {
|
|
230
|
+
...generalDefinitions.select,
|
|
231
|
+
default: SITE_STATUS_VALUES.ACTIVE.value,
|
|
232
|
+
label: "状態",
|
|
233
|
+
component: {
|
|
234
|
+
name: generalDefinitions.select.component.name,
|
|
235
|
+
attrs: {
|
|
236
|
+
items: SITE_STATUS_OPTIONS,
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
},
|
|
240
|
+
};
|