@alexisapp/leave-core 0.0.1-beta.1
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/README.md +260 -0
- package/dist/chunk-P5WZALLT.mjs +1633 -0
- package/dist/chunk-R7NHFDIU.mjs +53 -0
- package/dist/chunk-TUQKZ7GW.mjs +207 -0
- package/dist/chunk-VS74AXZ6.mjs +70 -0
- package/dist/components/index.d.ts +11 -0
- package/dist/components/index.mjs +23 -0
- package/dist/domain/index.d.ts +2 -0
- package/dist/domain/index.mjs +0 -0
- package/dist/en-GB-TSTNTOGN.mjs +81 -0
- package/dist/forms/index.d.ts +2 -0
- package/dist/forms/index.mjs +0 -0
- package/dist/graphql-BI4OTV8N.d.ts +1814 -0
- package/dist/hooks/index.d.ts +50 -0
- package/dist/hooks/index.mjs +106 -0
- package/dist/i18n/index.d.ts +18 -0
- package/dist/i18n/index.mjs +16 -0
- package/dist/index.d.ts +133 -0
- package/dist/index.mjs +109 -0
- package/dist/leaveStatusUtils-C26heVdh.d.ts +11 -0
- package/dist/mutations/index.d.ts +2 -0
- package/dist/mutations/index.mjs +0 -0
- package/dist/queries/index.d.ts +489 -0
- package/dist/queries/index.mjs +15 -0
- package/dist/stores/index.d.ts +2 -0
- package/dist/stores/index.mjs +0 -0
- package/dist/utils/index.d.ts +40 -0
- package/dist/utils/index.mjs +53 -0
- package/package.json +94 -0
- package/src/client/createKyInstance.ts +34 -0
- package/src/client/execute.ts +153 -0
- package/src/client/index.ts +4 -0
- package/src/client/initializeClient.ts +48 -0
- package/src/client/resetClient.ts +10 -0
- package/src/client/types.ts +12 -0
- package/src/components/AsyncBoundary.tsx +29 -0
- package/src/components/index.ts +1 -0
- package/src/domain/index.ts +2 -0
- package/src/errors/AuthError.ts +12 -0
- package/src/errors/DomainError.ts +15 -0
- package/src/errors/GraphQLError.ts +16 -0
- package/src/errors/LeaveError.ts +13 -0
- package/src/errors/NetworkError.ts +12 -0
- package/src/errors/classifyError.ts +46 -0
- package/src/errors/errorMessages.ts +69 -0
- package/src/errors/index.ts +13 -0
- package/src/forms/index.ts +2 -0
- package/src/graphql/codegen-gateway.ts +26 -0
- package/src/graphql/codegen-hr-core.ts +31 -0
- package/src/graphql/generated-gateway/fragment-masking.ts +84 -0
- package/src/graphql/generated-gateway/gql.ts +140 -0
- package/src/graphql/generated-gateway/graphql.ts +10828 -0
- package/src/graphql/generated-gateway/index.ts +2 -0
- package/src/graphql/generated-hr-core/fragment-masking.ts +84 -0
- package/src/graphql/generated-hr-core/gql.ts +185 -0
- package/src/graphql/generated-hr-core/graphql.ts +19385 -0
- package/src/graphql/generated-hr-core/index.ts +2 -0
- package/src/graphql/index.ts +278 -0
- package/src/graphql/operations/gateway/leave-change/mutations.graphql +74 -0
- package/src/graphql/operations/gateway/leave-change/queries.graphql +51 -0
- package/src/graphql/operations/gateway/leave-policy-employee-reference/mutations.graphql +26 -0
- package/src/graphql/operations/gateway/leave-self-certified/mutations.graphql +45 -0
- package/src/graphql/operations/gateway/leave-self-certified/queries.graphql +80 -0
- package/src/graphql/operations/gateway/leave-type-code/mutations.graphql +25 -0
- package/src/graphql/operations/gateway/self-certified-policy/mutations.graphql +29 -0
- package/src/graphql/operations/gateway/self-certified-policy/queries.graphql +34 -0
- package/src/graphql/operations/gateway/time-bank/mutations.graphql +23 -0
- package/src/graphql/operations/gateway/time-bank/queries.graphql +5 -0
- package/src/graphql/operations/gateway/time-off-settings/mutations.graphql +19 -0
- package/src/graphql/operations/gateway/time-off-settings/queries.graphql +15 -0
- package/src/graphql/operations/gateway/user/queries.graphql +11 -0
- package/src/graphql/operations/hr-core/balance/mutations.graphql +34 -0
- package/src/graphql/operations/hr-core/balance/queries.graphql +21 -0
- package/src/graphql/operations/hr-core/employee/queries.graphql +27 -0
- package/src/graphql/operations/hr-core/employment/queries.graphql +40 -0
- package/src/graphql/operations/hr-core/file/mutations.graphql +15 -0
- package/src/graphql/operations/hr-core/group/queries.graphql +13 -0
- package/src/graphql/operations/hr-core/leave/mutations.graphql +68 -0
- package/src/graphql/operations/hr-core/leave/queries.graphql +150 -0
- package/src/graphql/operations/hr-core/leave-type/queries.graphql +33 -0
- package/src/graphql/operations/hr-core/member/queries.graphql +58 -0
- package/src/graphql/operations/hr-core/office/queries.graphql +26 -0
- package/src/graphql/operations/hr-core/policy/mutations.graphql +43 -0
- package/src/graphql/operations/hr-core/policy/queries.graphql +46 -0
- package/src/graphql/operations/hr-core/scope/mutations.graphql +19 -0
- package/src/graphql/operations/hr-core/team/queries.graphql +14 -0
- package/src/graphql/operations/hr-core/user/queries.graphql +37 -0
- package/src/graphql/operations/hr-core/work-calendar/queries.graphql +60 -0
- package/src/graphql/operations/hr-core/work-week/queries.graphql +139 -0
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useBalance.ts +58 -0
- package/src/hooks/useCurrentEmployeeId.ts +15 -0
- package/src/hooks/useLeaveList.ts +91 -0
- package/src/i18n/index.ts +2 -0
- package/src/i18n/instance.ts +52 -0
- package/src/i18n/locale.ts +23 -0
- package/src/i18n/translations/en-GB.json +67 -0
- package/src/index.ts +19 -0
- package/src/mutations/index.ts +2 -0
- package/src/queries/employeeQueryFactory.ts +97 -0
- package/src/queries/index.ts +5 -0
- package/src/queries/leaveQueryFactory.ts +171 -0
- package/src/queries/policyQueryFactory.ts +87 -0
- package/src/queries/settingsQueryFactory.ts +31 -0
- package/src/queries/userQueryFactory.ts +13 -0
- package/src/stores/index.ts +2 -0
- package/src/utils/__tests__/formatDateRangeUtils.test.ts +61 -0
- package/src/utils/__tests__/leaveStatusUtils.test.ts +27 -0
- package/src/utils/__tests__/splitLeaveSectionsUtils.test.ts +71 -0
- package/src/utils/formatDateRangeUtils.ts +71 -0
- package/src/utils/index.ts +8 -0
- package/src/utils/leaveStatusUtils.ts +39 -0
- package/src/utils/splitLeaveSectionsUtils.ts +46 -0
- package/src/utils/typeSafeUtils.ts +4 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
// Gateway types — used with execute.gateway()
|
|
2
|
+
export type {
|
|
3
|
+
// Self-certified leave
|
|
4
|
+
GetLeaveSelfCertifiedQuery,
|
|
5
|
+
GetLeaveSelfCertifiedQueryVariables,
|
|
6
|
+
ListLeaveSelfCertifiedQuery,
|
|
7
|
+
ListLeaveSelfCertifiedQueryVariables,
|
|
8
|
+
ListLeaveSelfCertifiedVisibleQuery,
|
|
9
|
+
ListLeaveSelfCertifiedVisibleQueryVariables,
|
|
10
|
+
CreateLeaveSelfCertifiedMutation,
|
|
11
|
+
CreateLeaveSelfCertifiedMutationVariables,
|
|
12
|
+
UpdateLeaveSelfCertifiedMutation,
|
|
13
|
+
UpdateLeaveSelfCertifiedMutationVariables,
|
|
14
|
+
DeleteLeaveSelfCertifiedMutation,
|
|
15
|
+
DeleteLeaveSelfCertifiedMutationVariables,
|
|
16
|
+
CreateLeaveSelfCertifiedInput,
|
|
17
|
+
UpdateLeaveSelfCertifiedInput,
|
|
18
|
+
// Self-certified policy
|
|
19
|
+
GetLeaveSelfCertifiedPolicyQuery,
|
|
20
|
+
GetLeaveSelfCertifiedPolicyQueryVariables,
|
|
21
|
+
ListSelfCertifiedPoliciesQuery,
|
|
22
|
+
ListSelfCertifiedPoliciesQueryVariables,
|
|
23
|
+
CreateSelfCertifiedPolicyMutation,
|
|
24
|
+
CreateSelfCertifiedPolicyMutationVariables,
|
|
25
|
+
UpdateSelfCertifiedPolicyMutation,
|
|
26
|
+
UpdateSelfCertifiedPolicyMutationVariables,
|
|
27
|
+
DeleteSelfCertifiedPolicyMutation,
|
|
28
|
+
DeleteSelfCertifiedPolicyMutationVariables,
|
|
29
|
+
CreateLeaveSelfCertifiedPolicyInput,
|
|
30
|
+
UpdateLeaveSelfCertifiedPolicyInput,
|
|
31
|
+
// Leave changes
|
|
32
|
+
GetLeaveChangeQuery,
|
|
33
|
+
GetLeaveChangeQueryVariables,
|
|
34
|
+
ListLeaveChangesQuery,
|
|
35
|
+
ListLeaveChangesQueryVariables,
|
|
36
|
+
CreateLeaveChangeMutation,
|
|
37
|
+
CreateLeaveChangeMutationVariables,
|
|
38
|
+
UpdateLeaveChangeMutation,
|
|
39
|
+
UpdateLeaveChangeMutationVariables,
|
|
40
|
+
CreateLeaveChangeInput,
|
|
41
|
+
UpdateLeaveChangeInput,
|
|
42
|
+
CreateLeaveChangeUpdateMutation,
|
|
43
|
+
CreateLeaveChangeUpdateMutationVariables,
|
|
44
|
+
CreateLeaveChangeUpdateInput,
|
|
45
|
+
CreateLeaveChangeRevokeMutation,
|
|
46
|
+
CreateLeaveChangeRevokeMutationVariables,
|
|
47
|
+
CreateLeaveChangeRevokeInput,
|
|
48
|
+
DeleteLeaveChangeMutation,
|
|
49
|
+
DeleteLeaveChangeMutationVariables,
|
|
50
|
+
// Time bank
|
|
51
|
+
GetTimeBankBalanceQuery,
|
|
52
|
+
GetTimeBankBalanceQueryVariables,
|
|
53
|
+
TimeBankAdjustmentMutation,
|
|
54
|
+
TimeBankAdjustmentMutationVariables,
|
|
55
|
+
TimeBankAdjustmentInput,
|
|
56
|
+
TimeBankAdjustmentDeleteMutation,
|
|
57
|
+
TimeBankAdjustmentDeleteMutationVariables,
|
|
58
|
+
TimeBankExportMutation,
|
|
59
|
+
TimeBankExportMutationVariables,
|
|
60
|
+
// Time off settings
|
|
61
|
+
GetTimeOffSettingsQuery,
|
|
62
|
+
GetTimeOffSettingsQueryVariables,
|
|
63
|
+
GetTimeOffSettingsByKeyQuery,
|
|
64
|
+
GetTimeOffSettingsByKeyQueryVariables,
|
|
65
|
+
CreateTimeOffSettingsMutation,
|
|
66
|
+
CreateTimeOffSettingsMutationVariables,
|
|
67
|
+
CreateTimeOffSettingsInput,
|
|
68
|
+
UpdateTimeOffSettingsMutation,
|
|
69
|
+
UpdateTimeOffSettingsMutationVariables,
|
|
70
|
+
UpdateTimeOffSettingsInput,
|
|
71
|
+
DeleteTimeOffSettingsMutation,
|
|
72
|
+
DeleteTimeOffSettingsMutationVariables,
|
|
73
|
+
// Leave policy employee reference
|
|
74
|
+
CreateLeavePolicyEmployeeReferenceMutation,
|
|
75
|
+
CreateLeavePolicyEmployeeReferenceMutationVariables,
|
|
76
|
+
CreateLeavePolicyEmployeeReferenceRequest,
|
|
77
|
+
UpdateLeavePolicyEmployeeReferenceMutation,
|
|
78
|
+
UpdateLeavePolicyEmployeeReferenceMutationVariables,
|
|
79
|
+
UpdateLeavePolicyEmployeeReferenceRequest,
|
|
80
|
+
// Leave type code
|
|
81
|
+
CreateLeaveTypeCodeMutation,
|
|
82
|
+
CreateLeaveTypeCodeMutationVariables,
|
|
83
|
+
CreateLeaveTypeCodeInput,
|
|
84
|
+
UpdateLeaveTypeCodeMutation,
|
|
85
|
+
UpdateLeaveTypeCodeMutationVariables,
|
|
86
|
+
UpdateLeaveTypeCodeInput,
|
|
87
|
+
DeleteLeaveTypeCodeMutation,
|
|
88
|
+
DeleteLeaveTypeCodeMutationVariables,
|
|
89
|
+
// User
|
|
90
|
+
MeQuery,
|
|
91
|
+
MeQueryVariables,
|
|
92
|
+
} from './generated-gateway/graphql';
|
|
93
|
+
|
|
94
|
+
export {
|
|
95
|
+
// Self-certified leave documents
|
|
96
|
+
GetLeaveSelfCertifiedDocument,
|
|
97
|
+
ListLeaveSelfCertifiedDocument,
|
|
98
|
+
ListLeaveSelfCertifiedVisibleDocument,
|
|
99
|
+
CreateLeaveSelfCertifiedDocument,
|
|
100
|
+
UpdateLeaveSelfCertifiedDocument,
|
|
101
|
+
DeleteLeaveSelfCertifiedDocument,
|
|
102
|
+
// Self-certified policy documents
|
|
103
|
+
GetLeaveSelfCertifiedPolicyDocument,
|
|
104
|
+
ListSelfCertifiedPoliciesDocument,
|
|
105
|
+
CreateSelfCertifiedPolicyDocument,
|
|
106
|
+
UpdateSelfCertifiedPolicyDocument,
|
|
107
|
+
DeleteSelfCertifiedPolicyDocument,
|
|
108
|
+
// Leave change documents
|
|
109
|
+
GetLeaveChangeDocument,
|
|
110
|
+
ListLeaveChangesDocument,
|
|
111
|
+
CreateLeaveChangeDocument,
|
|
112
|
+
UpdateLeaveChangeDocument,
|
|
113
|
+
CreateLeaveChangeUpdateDocument,
|
|
114
|
+
CreateLeaveChangeRevokeDocument,
|
|
115
|
+
DeleteLeaveChangeDocument,
|
|
116
|
+
// Time bank documents
|
|
117
|
+
GetTimeBankBalanceDocument,
|
|
118
|
+
TimeBankAdjustmentDocument,
|
|
119
|
+
TimeBankAdjustmentDeleteDocument,
|
|
120
|
+
TimeBankExportDocument,
|
|
121
|
+
// Time off settings documents
|
|
122
|
+
GetTimeOffSettingsDocument,
|
|
123
|
+
GetTimeOffSettingsByKeyDocument,
|
|
124
|
+
CreateTimeOffSettingsDocument,
|
|
125
|
+
UpdateTimeOffSettingsDocument,
|
|
126
|
+
DeleteTimeOffSettingsDocument,
|
|
127
|
+
// Leave policy employee reference documents
|
|
128
|
+
CreateLeavePolicyEmployeeReferenceDocument,
|
|
129
|
+
UpdateLeavePolicyEmployeeReferenceDocument,
|
|
130
|
+
// Leave type code documents
|
|
131
|
+
CreateLeaveTypeCodeDocument,
|
|
132
|
+
UpdateLeaveTypeCodeDocument,
|
|
133
|
+
DeleteLeaveTypeCodeDocument,
|
|
134
|
+
// User documents
|
|
135
|
+
MeDocument,
|
|
136
|
+
} from './generated-gateway/graphql';
|
|
137
|
+
|
|
138
|
+
// HR Core types — used with execute.hrCore()
|
|
139
|
+
export type {
|
|
140
|
+
// Leave queries
|
|
141
|
+
GetLeaveQuery,
|
|
142
|
+
GetLeaveQueryVariables,
|
|
143
|
+
ListLeaveQuery,
|
|
144
|
+
ListLeaveQueryVariables,
|
|
145
|
+
GetLeaveUsageQuery,
|
|
146
|
+
GetLeaveUsageQueryVariables,
|
|
147
|
+
GetLeaveOverlapsQuery,
|
|
148
|
+
GetLeaveOverlapsQueryVariables,
|
|
149
|
+
GetLeaveApproversQuery,
|
|
150
|
+
GetLeaveApproversQueryVariables,
|
|
151
|
+
// Leave mutations
|
|
152
|
+
CreateLeaveMutation,
|
|
153
|
+
CreateLeaveMutationVariables,
|
|
154
|
+
UpdateLeaveMutation,
|
|
155
|
+
UpdateLeaveMutationVariables,
|
|
156
|
+
RemoveLeaveMutation,
|
|
157
|
+
RemoveLeaveMutationVariables,
|
|
158
|
+
AddLeaveAttachmentMutation,
|
|
159
|
+
AddLeaveAttachmentMutationVariables,
|
|
160
|
+
RemoveLeaveAttachmentMutation,
|
|
161
|
+
RemoveLeaveAttachmentMutationVariables,
|
|
162
|
+
// Leave inputs
|
|
163
|
+
LeaveCreateInput,
|
|
164
|
+
LeaveUpdateInput,
|
|
165
|
+
LeaveFilterInput,
|
|
166
|
+
// Vacation balance
|
|
167
|
+
GetEmployeeVacationBalanceQuery,
|
|
168
|
+
GetEmployeeVacationBalanceQueryVariables,
|
|
169
|
+
ListEmployeeVacationBalanceQuery,
|
|
170
|
+
ListEmployeeVacationBalanceQueryVariables,
|
|
171
|
+
// Vacation adjustments
|
|
172
|
+
ListVacationAdjustmentsQuery,
|
|
173
|
+
ListVacationAdjustmentsQueryVariables,
|
|
174
|
+
CreateVacationAdjustmentMutation,
|
|
175
|
+
CreateVacationAdjustmentMutationVariables,
|
|
176
|
+
EmployeeVacationAdjustmentCreateInput,
|
|
177
|
+
UpdateVacationAdjustmentMutation,
|
|
178
|
+
UpdateVacationAdjustmentMutationVariables,
|
|
179
|
+
EmployeeVacationAdjustmentUpdateInput,
|
|
180
|
+
// Scope
|
|
181
|
+
UpdateScopeMutation,
|
|
182
|
+
UpdateScopeMutationVariables,
|
|
183
|
+
ScopeInput,
|
|
184
|
+
// Leave policy
|
|
185
|
+
GetLeavePolicyQuery,
|
|
186
|
+
GetLeavePolicyQueryVariables,
|
|
187
|
+
ListLeavePoliciesQuery,
|
|
188
|
+
ListLeavePoliciesQueryVariables,
|
|
189
|
+
CreateLeavePolicyMutation,
|
|
190
|
+
CreateLeavePolicyMutationVariables,
|
|
191
|
+
UpdateLeavePolicyMutation,
|
|
192
|
+
UpdateLeavePolicyMutationVariables,
|
|
193
|
+
RemoveLeavePolicyMutation,
|
|
194
|
+
RemoveLeavePolicyMutationVariables,
|
|
195
|
+
LeavePolicyCreateInput,
|
|
196
|
+
LeavePolicyUpdateInput,
|
|
197
|
+
// Leave types
|
|
198
|
+
ListLeaveTypesQuery,
|
|
199
|
+
ListLeaveTypesQueryVariables,
|
|
200
|
+
GetEmployeeLeaveTypesQuery,
|
|
201
|
+
GetEmployeeLeaveTypesQueryVariables,
|
|
202
|
+
// Employee
|
|
203
|
+
GetEmployeeQuery,
|
|
204
|
+
GetEmployeeQueryVariables,
|
|
205
|
+
// Employment
|
|
206
|
+
GetEmploymentQuery,
|
|
207
|
+
GetEmploymentQueryVariables,
|
|
208
|
+
ListEmploymentsQuery,
|
|
209
|
+
ListEmploymentsQueryVariables,
|
|
210
|
+
// Work calendar
|
|
211
|
+
ListCompanyHolidaysQuery,
|
|
212
|
+
ListCompanyHolidaysQueryVariables,
|
|
213
|
+
ListPublicHolidaysQuery,
|
|
214
|
+
ListPublicHolidaysQueryVariables,
|
|
215
|
+
ListRestrictedDatesQuery,
|
|
216
|
+
ListRestrictedDatesQueryVariables,
|
|
217
|
+
// Work week
|
|
218
|
+
GetWorkWeekQuery,
|
|
219
|
+
GetWorkWeekQueryVariables,
|
|
220
|
+
ListWorkWeeksQuery,
|
|
221
|
+
ListWorkWeeksQueryVariables,
|
|
222
|
+
// File
|
|
223
|
+
UploadFileMutation,
|
|
224
|
+
UploadFileMutationVariables,
|
|
225
|
+
} from './generated-hr-core/graphql';
|
|
226
|
+
|
|
227
|
+
export {
|
|
228
|
+
LeaveStatus,
|
|
229
|
+
// Leave documents
|
|
230
|
+
GetLeaveDocument,
|
|
231
|
+
ListLeaveDocument,
|
|
232
|
+
ListLeaveVisibleDocument,
|
|
233
|
+
GetLeaveUsageDocument,
|
|
234
|
+
GetLeaveOverlapsDocument,
|
|
235
|
+
GetLeaveApproversDocument,
|
|
236
|
+
CreateLeaveDocument,
|
|
237
|
+
UpdateLeaveDocument,
|
|
238
|
+
RemoveLeaveDocument,
|
|
239
|
+
AddLeaveAttachmentDocument,
|
|
240
|
+
RemoveLeaveAttachmentDocument,
|
|
241
|
+
// Balance documents
|
|
242
|
+
GetEmployeeVacationBalanceDocument,
|
|
243
|
+
ListEmployeeVacationBalanceDocument,
|
|
244
|
+
ListVacationAdjustmentsDocument,
|
|
245
|
+
CreateVacationAdjustmentDocument,
|
|
246
|
+
UpdateVacationAdjustmentDocument,
|
|
247
|
+
// Scope documents
|
|
248
|
+
UpdateScopeDocument,
|
|
249
|
+
// Policy documents
|
|
250
|
+
GetLeavePolicyDocument,
|
|
251
|
+
ListLeavePoliciesDocument,
|
|
252
|
+
CreateLeavePolicyDocument,
|
|
253
|
+
UpdateLeavePolicyDocument,
|
|
254
|
+
RemoveLeavePolicyDocument,
|
|
255
|
+
// Leave type documents
|
|
256
|
+
ListLeaveTypesDocument,
|
|
257
|
+
GetEmployeeLeaveTypesDocument,
|
|
258
|
+
// Employee documents
|
|
259
|
+
GetEmployeeDocument,
|
|
260
|
+
// Employment documents
|
|
261
|
+
GetEmploymentDocument,
|
|
262
|
+
ListEmploymentsDocument,
|
|
263
|
+
// Work calendar documents
|
|
264
|
+
ListCompanyHolidaysDocument,
|
|
265
|
+
ListPublicHolidaysDocument,
|
|
266
|
+
ListRestrictedDatesDocument,
|
|
267
|
+
// Work week documents
|
|
268
|
+
GetWorkWeekDocument,
|
|
269
|
+
ListWorkWeeksDocument,
|
|
270
|
+
// File documents
|
|
271
|
+
UploadFileDocument,
|
|
272
|
+
} from './generated-hr-core/graphql';
|
|
273
|
+
|
|
274
|
+
// TODO: Operations not found in current schemas — may come from host app or different API
|
|
275
|
+
// - bizMemberBasicMe, bizMemberBasic, bizMemberBasicTP, bizMemberBasicActive (member queries)
|
|
276
|
+
// - bizOrgChartGetDirectSubordinates (org chart)
|
|
277
|
+
// - bizOfficeGet, bizTeamGet, Biz.group.get (office/team/group hydration)
|
|
278
|
+
// - bizEmployeeWorkDateRangeRead (work date range for calendar grid)
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
mutation CreateLeaveChange($input: CreateLeaveChangeInput!) {
|
|
2
|
+
leaveChangeCreate(input: $input) {
|
|
3
|
+
id
|
|
4
|
+
leaveIds
|
|
5
|
+
employeeId
|
|
6
|
+
companyId
|
|
7
|
+
leavePolicyId
|
|
8
|
+
status
|
|
9
|
+
type
|
|
10
|
+
requestNote
|
|
11
|
+
requestedChanges {
|
|
12
|
+
startDate
|
|
13
|
+
endDate
|
|
14
|
+
localStartDate
|
|
15
|
+
localEndDate
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
mutation UpdateLeaveChange($id: String!, $input: UpdateLeaveChangeInput!) {
|
|
21
|
+
leaveChangeUpdate(id: $id, input: $input) {
|
|
22
|
+
id
|
|
23
|
+
leaveIds
|
|
24
|
+
employeeId
|
|
25
|
+
companyId
|
|
26
|
+
leavePolicyId
|
|
27
|
+
status
|
|
28
|
+
type
|
|
29
|
+
approvalNote
|
|
30
|
+
requestNote
|
|
31
|
+
requestedChanges {
|
|
32
|
+
startDate
|
|
33
|
+
endDate
|
|
34
|
+
localStartDate
|
|
35
|
+
localEndDate
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
mutation CreateLeaveChangeUpdate($input: CreateLeaveChangeUpdateInput!) {
|
|
41
|
+
leaveChangeCreateUpdate(input: $input) {
|
|
42
|
+
id
|
|
43
|
+
leaveIds
|
|
44
|
+
employeeId
|
|
45
|
+
companyId
|
|
46
|
+
leavePolicyId
|
|
47
|
+
status
|
|
48
|
+
type
|
|
49
|
+
requestNote
|
|
50
|
+
requestedChanges {
|
|
51
|
+
startDate
|
|
52
|
+
endDate
|
|
53
|
+
localStartDate
|
|
54
|
+
localEndDate
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
mutation CreateLeaveChangeRevoke($input: CreateLeaveChangeRevokeInput!) {
|
|
60
|
+
leaveChangeCreateRevoke(input: $input) {
|
|
61
|
+
id
|
|
62
|
+
leaveIds
|
|
63
|
+
employeeId
|
|
64
|
+
companyId
|
|
65
|
+
leavePolicyId
|
|
66
|
+
status
|
|
67
|
+
type
|
|
68
|
+
requestNote
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
mutation DeleteLeaveChange($id: String!) {
|
|
73
|
+
leaveChangeDelete(id: $id)
|
|
74
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
query GetLeaveChange($id: String!) {
|
|
2
|
+
leaveChange(id: $id) {
|
|
3
|
+
id
|
|
4
|
+
leaveIds
|
|
5
|
+
employeeId
|
|
6
|
+
companyId
|
|
7
|
+
leavePolicyId
|
|
8
|
+
status
|
|
9
|
+
type
|
|
10
|
+
approvalNote
|
|
11
|
+
requestNote
|
|
12
|
+
approverUserIds
|
|
13
|
+
requestedChanges {
|
|
14
|
+
startDate
|
|
15
|
+
endDate
|
|
16
|
+
localStartDate
|
|
17
|
+
localEndDate
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
query ListLeaveChanges(
|
|
23
|
+
$filters: LeaveChangeFiltersInput
|
|
24
|
+
$limit: Float
|
|
25
|
+
$offset: Float
|
|
26
|
+
$sort: LeaveChangeSortInput
|
|
27
|
+
) {
|
|
28
|
+
leaveChangeList(filters: $filters, limit: $limit, offset: $offset, sort: $sort) {
|
|
29
|
+
data {
|
|
30
|
+
id
|
|
31
|
+
leaveIds
|
|
32
|
+
employeeId
|
|
33
|
+
companyId
|
|
34
|
+
leavePolicyId
|
|
35
|
+
status
|
|
36
|
+
type
|
|
37
|
+
approvalNote
|
|
38
|
+
requestNote
|
|
39
|
+
approverUserIds
|
|
40
|
+
requestedChanges {
|
|
41
|
+
startDate
|
|
42
|
+
endDate
|
|
43
|
+
localStartDate
|
|
44
|
+
localEndDate
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
count
|
|
48
|
+
total
|
|
49
|
+
offset
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
mutation CreateLeavePolicyEmployeeReference($input: CreateLeavePolicyEmployeeReferenceRequest!) {
|
|
2
|
+
leavePolicyEmployeeReferenceCreate(input: $input) {
|
|
3
|
+
id
|
|
4
|
+
parentId
|
|
5
|
+
referenceId
|
|
6
|
+
effectiveFrom
|
|
7
|
+
namespace {
|
|
8
|
+
leaveTypeId
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
mutation UpdateLeavePolicyEmployeeReference(
|
|
14
|
+
$id: String!
|
|
15
|
+
$input: UpdateLeavePolicyEmployeeReferenceRequest!
|
|
16
|
+
) {
|
|
17
|
+
leavePolicyEmployeeReferenceUpdate(id: $id, input: $input) {
|
|
18
|
+
id
|
|
19
|
+
parentId
|
|
20
|
+
referenceId
|
|
21
|
+
effectiveFrom
|
|
22
|
+
namespace {
|
|
23
|
+
leaveTypeId
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
mutation CreateLeaveSelfCertified($input: CreateLeaveSelfCertifiedInput!) {
|
|
2
|
+
leaveSelfCertifiedCreate(input: $input) {
|
|
3
|
+
id
|
|
4
|
+
employeeId
|
|
5
|
+
companyId
|
|
6
|
+
startDate
|
|
7
|
+
endDate
|
|
8
|
+
localStartDate
|
|
9
|
+
localEndDate
|
|
10
|
+
description
|
|
11
|
+
status
|
|
12
|
+
policyId
|
|
13
|
+
typeId
|
|
14
|
+
timezone
|
|
15
|
+
timezoneOffset
|
|
16
|
+
workingMinutes
|
|
17
|
+
created
|
|
18
|
+
updated
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
mutation UpdateLeaveSelfCertified($id: String!, $input: UpdateLeaveSelfCertifiedInput!) {
|
|
23
|
+
leaveSelfCertifiedUpdate(id: $id, input: $input) {
|
|
24
|
+
id
|
|
25
|
+
employeeId
|
|
26
|
+
companyId
|
|
27
|
+
startDate
|
|
28
|
+
endDate
|
|
29
|
+
localStartDate
|
|
30
|
+
localEndDate
|
|
31
|
+
description
|
|
32
|
+
status
|
|
33
|
+
policyId
|
|
34
|
+
typeId
|
|
35
|
+
timezone
|
|
36
|
+
timezoneOffset
|
|
37
|
+
workingMinutes
|
|
38
|
+
created
|
|
39
|
+
updated
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
mutation DeleteLeaveSelfCertified($id: String!) {
|
|
44
|
+
leaveSelfCertifiedDelete(id: $id)
|
|
45
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
query GetLeaveSelfCertified($id: String!) {
|
|
2
|
+
leaveSelfCertified(id: $id) {
|
|
3
|
+
id
|
|
4
|
+
employeeId
|
|
5
|
+
companyId
|
|
6
|
+
startDate
|
|
7
|
+
endDate
|
|
8
|
+
localStartDate
|
|
9
|
+
localEndDate
|
|
10
|
+
description
|
|
11
|
+
status
|
|
12
|
+
policyId
|
|
13
|
+
typeId
|
|
14
|
+
timezone
|
|
15
|
+
timezoneOffset
|
|
16
|
+
workingMinutes
|
|
17
|
+
created
|
|
18
|
+
updated
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
query ListLeaveSelfCertified(
|
|
23
|
+
$filters: LeaveSelfCertifiedFiltersInput
|
|
24
|
+
$limit: Float
|
|
25
|
+
$offset: Float
|
|
26
|
+
) {
|
|
27
|
+
leaveSelfCertifiedList(filters: $filters, limit: $limit, offset: $offset) {
|
|
28
|
+
data {
|
|
29
|
+
id
|
|
30
|
+
employeeId
|
|
31
|
+
companyId
|
|
32
|
+
startDate
|
|
33
|
+
endDate
|
|
34
|
+
localStartDate
|
|
35
|
+
localEndDate
|
|
36
|
+
description
|
|
37
|
+
status
|
|
38
|
+
policyId
|
|
39
|
+
typeId
|
|
40
|
+
timezone
|
|
41
|
+
timezoneOffset
|
|
42
|
+
workingMinutes
|
|
43
|
+
created
|
|
44
|
+
updated
|
|
45
|
+
}
|
|
46
|
+
count
|
|
47
|
+
total
|
|
48
|
+
offset
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
query ListLeaveSelfCertifiedVisible(
|
|
53
|
+
$filters: LeaveSelfCertifiedFiltersInput
|
|
54
|
+
$limit: Float
|
|
55
|
+
$offset: Float
|
|
56
|
+
) {
|
|
57
|
+
leaveSelfCertifiedListVisible(filters: $filters, limit: $limit, offset: $offset) {
|
|
58
|
+
data {
|
|
59
|
+
id
|
|
60
|
+
employeeId
|
|
61
|
+
companyId
|
|
62
|
+
startDate
|
|
63
|
+
endDate
|
|
64
|
+
localStartDate
|
|
65
|
+
localEndDate
|
|
66
|
+
description
|
|
67
|
+
status
|
|
68
|
+
policyId
|
|
69
|
+
typeId
|
|
70
|
+
timezone
|
|
71
|
+
timezoneOffset
|
|
72
|
+
workingMinutes
|
|
73
|
+
created
|
|
74
|
+
updated
|
|
75
|
+
}
|
|
76
|
+
count
|
|
77
|
+
total
|
|
78
|
+
offset
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
mutation CreateLeaveTypeCode($input: CreateLeaveTypeCodeInput!) {
|
|
2
|
+
leaveTypeCodeCreate(input: $input) {
|
|
3
|
+
id
|
|
4
|
+
code
|
|
5
|
+
companyId
|
|
6
|
+
leaveTypeId
|
|
7
|
+
created
|
|
8
|
+
createdById
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
mutation UpdateLeaveTypeCode($id: String!, $input: UpdateLeaveTypeCodeInput!) {
|
|
13
|
+
leaveTypeCodeUpdate(id: $id, input: $input) {
|
|
14
|
+
id
|
|
15
|
+
code
|
|
16
|
+
companyId
|
|
17
|
+
leaveTypeId
|
|
18
|
+
created
|
|
19
|
+
createdById
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
mutation DeleteLeaveTypeCode($id: String!) {
|
|
24
|
+
leaveTypeCodeDelete(id: $id)
|
|
25
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
mutation CreateSelfCertifiedPolicy($input: CreateLeaveSelfCertifiedPolicyInput!) {
|
|
2
|
+
leaveSelfCertifiedPolicyCreate(input: $input) {
|
|
3
|
+
id
|
|
4
|
+
leavePolicyId
|
|
5
|
+
allowance {
|
|
6
|
+
periodInMonths
|
|
7
|
+
maxAmountOfDaysPerRequest
|
|
8
|
+
maxAmountOfRequestsInPeriod
|
|
9
|
+
strict
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
mutation UpdateSelfCertifiedPolicy($id: String!, $input: UpdateLeaveSelfCertifiedPolicyInput!) {
|
|
15
|
+
leaveSelfCertifiedPolicyUpdate(id: $id, input: $input) {
|
|
16
|
+
id
|
|
17
|
+
leavePolicyId
|
|
18
|
+
allowance {
|
|
19
|
+
periodInMonths
|
|
20
|
+
maxAmountOfDaysPerRequest
|
|
21
|
+
maxAmountOfRequestsInPeriod
|
|
22
|
+
strict
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
mutation DeleteSelfCertifiedPolicy($id: String!) {
|
|
28
|
+
leaveSelfCertifiedPolicyDelete(id: $id)
|
|
29
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
query GetLeaveSelfCertifiedPolicy($id: String!) {
|
|
2
|
+
leaveSelfCertifiedPolicy(id: $id) {
|
|
3
|
+
id
|
|
4
|
+
leavePolicyId
|
|
5
|
+
allowance {
|
|
6
|
+
periodInMonths
|
|
7
|
+
maxAmountOfDaysPerRequest
|
|
8
|
+
maxAmountOfRequestsInPeriod
|
|
9
|
+
strict
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
query ListSelfCertifiedPolicies(
|
|
15
|
+
$filters: LeaveSelfCertifiedPolicyFiltersInput
|
|
16
|
+
$limit: Float
|
|
17
|
+
$offset: Float
|
|
18
|
+
) {
|
|
19
|
+
leaveSelfCertifiedPolicyList(filters: $filters, limit: $limit, offset: $offset) {
|
|
20
|
+
data {
|
|
21
|
+
id
|
|
22
|
+
leavePolicyId
|
|
23
|
+
allowance {
|
|
24
|
+
periodInMonths
|
|
25
|
+
maxAmountOfDaysPerRequest
|
|
26
|
+
maxAmountOfRequestsInPeriod
|
|
27
|
+
strict
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
count
|
|
31
|
+
total
|
|
32
|
+
offset
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
mutation TimeBankAdjustment($input: TimeBankAdjustmentInput!) {
|
|
2
|
+
timeBankAdjustment(input: $input) {
|
|
3
|
+
id
|
|
4
|
+
employeeId
|
|
5
|
+
companyId
|
|
6
|
+
minutes
|
|
7
|
+
comment
|
|
8
|
+
type
|
|
9
|
+
created
|
|
10
|
+
updated
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
mutation TimeBankAdjustmentDelete($id: String!) {
|
|
15
|
+
timeBankAdjustmentDelete(id: $id)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
mutation TimeBankExport($employeeIds: [String!]!) {
|
|
19
|
+
timeBankExport(employeeIds: $employeeIds) {
|
|
20
|
+
exportFileId
|
|
21
|
+
exportFileUrl
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
mutation CreateTimeOffSettings($input: CreateTimeOffSettingsInput!) {
|
|
2
|
+
timeOffSettingsCreate(input: $input) {
|
|
3
|
+
id
|
|
4
|
+
key
|
|
5
|
+
value
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
mutation UpdateTimeOffSettings($key: String!, $input: UpdateTimeOffSettingsInput!) {
|
|
10
|
+
timeOffSettingsUpdate(key: $key, input: $input) {
|
|
11
|
+
id
|
|
12
|
+
key
|
|
13
|
+
value
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
mutation DeleteTimeOffSettings($id: String!) {
|
|
18
|
+
timeOffSettingsDelete(id: $id)
|
|
19
|
+
}
|