@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.
Files changed (114) hide show
  1. package/README.md +260 -0
  2. package/dist/chunk-P5WZALLT.mjs +1633 -0
  3. package/dist/chunk-R7NHFDIU.mjs +53 -0
  4. package/dist/chunk-TUQKZ7GW.mjs +207 -0
  5. package/dist/chunk-VS74AXZ6.mjs +70 -0
  6. package/dist/components/index.d.ts +11 -0
  7. package/dist/components/index.mjs +23 -0
  8. package/dist/domain/index.d.ts +2 -0
  9. package/dist/domain/index.mjs +0 -0
  10. package/dist/en-GB-TSTNTOGN.mjs +81 -0
  11. package/dist/forms/index.d.ts +2 -0
  12. package/dist/forms/index.mjs +0 -0
  13. package/dist/graphql-BI4OTV8N.d.ts +1814 -0
  14. package/dist/hooks/index.d.ts +50 -0
  15. package/dist/hooks/index.mjs +106 -0
  16. package/dist/i18n/index.d.ts +18 -0
  17. package/dist/i18n/index.mjs +16 -0
  18. package/dist/index.d.ts +133 -0
  19. package/dist/index.mjs +109 -0
  20. package/dist/leaveStatusUtils-C26heVdh.d.ts +11 -0
  21. package/dist/mutations/index.d.ts +2 -0
  22. package/dist/mutations/index.mjs +0 -0
  23. package/dist/queries/index.d.ts +489 -0
  24. package/dist/queries/index.mjs +15 -0
  25. package/dist/stores/index.d.ts +2 -0
  26. package/dist/stores/index.mjs +0 -0
  27. package/dist/utils/index.d.ts +40 -0
  28. package/dist/utils/index.mjs +53 -0
  29. package/package.json +94 -0
  30. package/src/client/createKyInstance.ts +34 -0
  31. package/src/client/execute.ts +153 -0
  32. package/src/client/index.ts +4 -0
  33. package/src/client/initializeClient.ts +48 -0
  34. package/src/client/resetClient.ts +10 -0
  35. package/src/client/types.ts +12 -0
  36. package/src/components/AsyncBoundary.tsx +29 -0
  37. package/src/components/index.ts +1 -0
  38. package/src/domain/index.ts +2 -0
  39. package/src/errors/AuthError.ts +12 -0
  40. package/src/errors/DomainError.ts +15 -0
  41. package/src/errors/GraphQLError.ts +16 -0
  42. package/src/errors/LeaveError.ts +13 -0
  43. package/src/errors/NetworkError.ts +12 -0
  44. package/src/errors/classifyError.ts +46 -0
  45. package/src/errors/errorMessages.ts +69 -0
  46. package/src/errors/index.ts +13 -0
  47. package/src/forms/index.ts +2 -0
  48. package/src/graphql/codegen-gateway.ts +26 -0
  49. package/src/graphql/codegen-hr-core.ts +31 -0
  50. package/src/graphql/generated-gateway/fragment-masking.ts +84 -0
  51. package/src/graphql/generated-gateway/gql.ts +140 -0
  52. package/src/graphql/generated-gateway/graphql.ts +10828 -0
  53. package/src/graphql/generated-gateway/index.ts +2 -0
  54. package/src/graphql/generated-hr-core/fragment-masking.ts +84 -0
  55. package/src/graphql/generated-hr-core/gql.ts +185 -0
  56. package/src/graphql/generated-hr-core/graphql.ts +19385 -0
  57. package/src/graphql/generated-hr-core/index.ts +2 -0
  58. package/src/graphql/index.ts +278 -0
  59. package/src/graphql/operations/gateway/leave-change/mutations.graphql +74 -0
  60. package/src/graphql/operations/gateway/leave-change/queries.graphql +51 -0
  61. package/src/graphql/operations/gateway/leave-policy-employee-reference/mutations.graphql +26 -0
  62. package/src/graphql/operations/gateway/leave-self-certified/mutations.graphql +45 -0
  63. package/src/graphql/operations/gateway/leave-self-certified/queries.graphql +80 -0
  64. package/src/graphql/operations/gateway/leave-type-code/mutations.graphql +25 -0
  65. package/src/graphql/operations/gateway/self-certified-policy/mutations.graphql +29 -0
  66. package/src/graphql/operations/gateway/self-certified-policy/queries.graphql +34 -0
  67. package/src/graphql/operations/gateway/time-bank/mutations.graphql +23 -0
  68. package/src/graphql/operations/gateway/time-bank/queries.graphql +5 -0
  69. package/src/graphql/operations/gateway/time-off-settings/mutations.graphql +19 -0
  70. package/src/graphql/operations/gateway/time-off-settings/queries.graphql +15 -0
  71. package/src/graphql/operations/gateway/user/queries.graphql +11 -0
  72. package/src/graphql/operations/hr-core/balance/mutations.graphql +34 -0
  73. package/src/graphql/operations/hr-core/balance/queries.graphql +21 -0
  74. package/src/graphql/operations/hr-core/employee/queries.graphql +27 -0
  75. package/src/graphql/operations/hr-core/employment/queries.graphql +40 -0
  76. package/src/graphql/operations/hr-core/file/mutations.graphql +15 -0
  77. package/src/graphql/operations/hr-core/group/queries.graphql +13 -0
  78. package/src/graphql/operations/hr-core/leave/mutations.graphql +68 -0
  79. package/src/graphql/operations/hr-core/leave/queries.graphql +150 -0
  80. package/src/graphql/operations/hr-core/leave-type/queries.graphql +33 -0
  81. package/src/graphql/operations/hr-core/member/queries.graphql +58 -0
  82. package/src/graphql/operations/hr-core/office/queries.graphql +26 -0
  83. package/src/graphql/operations/hr-core/policy/mutations.graphql +43 -0
  84. package/src/graphql/operations/hr-core/policy/queries.graphql +46 -0
  85. package/src/graphql/operations/hr-core/scope/mutations.graphql +19 -0
  86. package/src/graphql/operations/hr-core/team/queries.graphql +14 -0
  87. package/src/graphql/operations/hr-core/user/queries.graphql +37 -0
  88. package/src/graphql/operations/hr-core/work-calendar/queries.graphql +60 -0
  89. package/src/graphql/operations/hr-core/work-week/queries.graphql +139 -0
  90. package/src/hooks/index.ts +3 -0
  91. package/src/hooks/useBalance.ts +58 -0
  92. package/src/hooks/useCurrentEmployeeId.ts +15 -0
  93. package/src/hooks/useLeaveList.ts +91 -0
  94. package/src/i18n/index.ts +2 -0
  95. package/src/i18n/instance.ts +52 -0
  96. package/src/i18n/locale.ts +23 -0
  97. package/src/i18n/translations/en-GB.json +67 -0
  98. package/src/index.ts +19 -0
  99. package/src/mutations/index.ts +2 -0
  100. package/src/queries/employeeQueryFactory.ts +97 -0
  101. package/src/queries/index.ts +5 -0
  102. package/src/queries/leaveQueryFactory.ts +171 -0
  103. package/src/queries/policyQueryFactory.ts +87 -0
  104. package/src/queries/settingsQueryFactory.ts +31 -0
  105. package/src/queries/userQueryFactory.ts +13 -0
  106. package/src/stores/index.ts +2 -0
  107. package/src/utils/__tests__/formatDateRangeUtils.test.ts +61 -0
  108. package/src/utils/__tests__/leaveStatusUtils.test.ts +27 -0
  109. package/src/utils/__tests__/splitLeaveSectionsUtils.test.ts +71 -0
  110. package/src/utils/formatDateRangeUtils.ts +71 -0
  111. package/src/utils/index.ts +8 -0
  112. package/src/utils/leaveStatusUtils.ts +39 -0
  113. package/src/utils/splitLeaveSectionsUtils.ts +46 -0
  114. package/src/utils/typeSafeUtils.ts +4 -0
@@ -0,0 +1,1814 @@
1
+ import { DocumentTypeDecoration } from '@graphql-typed-document-node/core';
2
+
3
+ type Maybe$1<T> = T | null;
4
+ type InputMaybe$1<T> = Maybe$1<T>;
5
+ type Exact$1<T extends {
6
+ [key: string]: unknown;
7
+ }> = {
8
+ [K in keyof T]: T[K];
9
+ };
10
+ /** All built-in and custom scalars, mapped to their actual values */
11
+ type Scalars$1 = {
12
+ ID: {
13
+ input: string;
14
+ output: string;
15
+ };
16
+ String: {
17
+ input: string;
18
+ output: string;
19
+ };
20
+ Boolean: {
21
+ input: boolean;
22
+ output: boolean;
23
+ };
24
+ Int: {
25
+ input: number;
26
+ output: number;
27
+ };
28
+ Float: {
29
+ input: number;
30
+ output: number;
31
+ };
32
+ /** A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format. */
33
+ DateTime: {
34
+ input: string;
35
+ output: string;
36
+ };
37
+ /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
38
+ JSON: {
39
+ input: Record<string, unknown>;
40
+ output: Record<string, unknown>;
41
+ };
42
+ /** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
43
+ JSONObject: {
44
+ input: Record<string, unknown>;
45
+ output: Record<string, unknown>;
46
+ };
47
+ };
48
+ type FilterDateInput = {
49
+ eq?: InputMaybe$1<Scalars$1['DateTime']['input']>;
50
+ gt?: InputMaybe$1<Scalars$1['DateTime']['input']>;
51
+ gte?: InputMaybe$1<Scalars$1['DateTime']['input']>;
52
+ lt?: InputMaybe$1<Scalars$1['DateTime']['input']>;
53
+ lte?: InputMaybe$1<Scalars$1['DateTime']['input']>;
54
+ };
55
+ type FilterStringInput = {
56
+ all?: InputMaybe$1<Array<Scalars$1['String']['input']>>;
57
+ eq?: InputMaybe$1<Scalars$1['String']['input']>;
58
+ in?: InputMaybe$1<Array<Scalars$1['String']['input']>>;
59
+ ne?: InputMaybe$1<Scalars$1['String']['input']>;
60
+ nin?: InputMaybe$1<Array<Scalars$1['String']['input']>>;
61
+ regex?: InputMaybe$1<Scalars$1['String']['input']>;
62
+ };
63
+ type LeaveChangeFiltersInput = {
64
+ employeeId?: InputMaybe$1<FilterStringInput>;
65
+ id?: InputMaybe$1<FilterStringInput>;
66
+ leaveIds?: InputMaybe$1<FilterStringInput>;
67
+ status?: InputMaybe$1<FilterStringInput>;
68
+ type?: InputMaybe$1<FilterStringInput>;
69
+ };
70
+ type LeaveChangeSortInput = {
71
+ created?: InputMaybe$1<SortByOperator>;
72
+ };
73
+ type LeaveSelfCertifiedFiltersInput = {
74
+ approvers?: InputMaybe$1<FilterStringInput>;
75
+ companyId?: InputMaybe$1<FilterStringInput>;
76
+ employeeId?: InputMaybe$1<FilterStringInput>;
77
+ endDate?: InputMaybe$1<FilterDateInput>;
78
+ id?: InputMaybe$1<FilterStringInput>;
79
+ startDate?: InputMaybe$1<FilterDateInput>;
80
+ status?: InputMaybe$1<LeaveSelfCertifiedStatusFilterInput>;
81
+ typeId?: InputMaybe$1<FilterStringInput>;
82
+ userId?: InputMaybe$1<FilterStringInput>;
83
+ };
84
+ type LeaveSelfCertifiedPolicyFiltersInput = {
85
+ id?: InputMaybe$1<FilterStringInput>;
86
+ leavePolicyId?: InputMaybe$1<FilterStringInput>;
87
+ };
88
+ /** Status of a self-certified leave request */
89
+ declare enum LeaveSelfCertifiedStatus {
90
+ Approved = "APPROVED",
91
+ Cancelled = "CANCELLED",
92
+ Denied = "DENIED",
93
+ Migrated = "MIGRATED",
94
+ Pending = "PENDING"
95
+ }
96
+ type LeaveSelfCertifiedStatusFilterInput = {
97
+ eq?: InputMaybe$1<LeaveSelfCertifiedStatus>;
98
+ in?: InputMaybe$1<Array<LeaveSelfCertifiedStatus>>;
99
+ neq?: InputMaybe$1<LeaveSelfCertifiedStatus>;
100
+ nin?: InputMaybe$1<Array<LeaveSelfCertifiedStatus>>;
101
+ };
102
+ declare enum MembershipRole {
103
+ Accountant = "ACCOUNTANT",
104
+ Admin = "ADMIN",
105
+ Member = "MEMBER",
106
+ Owner = "OWNER"
107
+ }
108
+ declare enum SortByOperator {
109
+ Asc = "ASC",
110
+ Desc = "DESC"
111
+ }
112
+ declare enum TimeOffSettingName {
113
+ DisplayVacationBalanceBreakdown = "DisplayVacationBalanceBreakdown"
114
+ }
115
+ type GetLeaveChangeQuery = {
116
+ __typename?: 'Query';
117
+ leaveChange: {
118
+ __typename?: 'LeaveChange';
119
+ id: string;
120
+ leaveIds: Array<string>;
121
+ employeeId: string;
122
+ companyId: string;
123
+ leavePolicyId: string;
124
+ status: string;
125
+ type: string;
126
+ approvalNote?: string | null;
127
+ requestNote?: string | null;
128
+ approverUserIds: Array<string>;
129
+ requestedChanges?: {
130
+ __typename?: 'LeaveChangeRequestedChanges';
131
+ startDate?: string | null;
132
+ endDate?: string | null;
133
+ localStartDate?: string | null;
134
+ localEndDate?: string | null;
135
+ } | null;
136
+ };
137
+ };
138
+ type ListLeaveChangesQueryVariables = Exact$1<{
139
+ filters?: InputMaybe$1<LeaveChangeFiltersInput>;
140
+ limit?: InputMaybe$1<Scalars$1['Float']['input']>;
141
+ offset?: InputMaybe$1<Scalars$1['Float']['input']>;
142
+ sort?: InputMaybe$1<LeaveChangeSortInput>;
143
+ }>;
144
+ type ListLeaveChangesQuery = {
145
+ __typename?: 'Query';
146
+ leaveChangeList: {
147
+ __typename?: 'LeaveChangeList';
148
+ count: number;
149
+ total: number;
150
+ offset?: number | null;
151
+ data: Array<{
152
+ __typename?: 'LeaveChange';
153
+ id: string;
154
+ leaveIds: Array<string>;
155
+ employeeId: string;
156
+ companyId: string;
157
+ leavePolicyId: string;
158
+ status: string;
159
+ type: string;
160
+ approvalNote?: string | null;
161
+ requestNote?: string | null;
162
+ approverUserIds: Array<string>;
163
+ requestedChanges?: {
164
+ __typename?: 'LeaveChangeRequestedChanges';
165
+ startDate?: string | null;
166
+ endDate?: string | null;
167
+ localStartDate?: string | null;
168
+ localEndDate?: string | null;
169
+ } | null;
170
+ }>;
171
+ };
172
+ };
173
+ type GetLeaveSelfCertifiedQuery = {
174
+ __typename?: 'Query';
175
+ leaveSelfCertified: {
176
+ __typename?: 'LeaveSelfCertified';
177
+ id: string;
178
+ employeeId: string;
179
+ companyId: string;
180
+ startDate: string;
181
+ endDate?: string | null;
182
+ localStartDate: string;
183
+ localEndDate?: string | null;
184
+ description?: string | null;
185
+ status: string;
186
+ policyId?: string | null;
187
+ typeId: string;
188
+ timezone: string;
189
+ timezoneOffset: number;
190
+ workingMinutes: number;
191
+ created?: string | null;
192
+ updated?: string | null;
193
+ };
194
+ };
195
+ type ListLeaveSelfCertifiedQueryVariables = Exact$1<{
196
+ filters?: InputMaybe$1<LeaveSelfCertifiedFiltersInput>;
197
+ limit?: InputMaybe$1<Scalars$1['Float']['input']>;
198
+ offset?: InputMaybe$1<Scalars$1['Float']['input']>;
199
+ }>;
200
+ type ListLeaveSelfCertifiedQuery = {
201
+ __typename?: 'Query';
202
+ leaveSelfCertifiedList: {
203
+ __typename?: 'LeaveSelfCertifiedList';
204
+ count: number;
205
+ total: number;
206
+ offset?: number | null;
207
+ data: Array<{
208
+ __typename?: 'LeaveSelfCertified';
209
+ id: string;
210
+ employeeId: string;
211
+ companyId: string;
212
+ startDate: string;
213
+ endDate?: string | null;
214
+ localStartDate: string;
215
+ localEndDate?: string | null;
216
+ description?: string | null;
217
+ status: string;
218
+ policyId?: string | null;
219
+ typeId: string;
220
+ timezone: string;
221
+ timezoneOffset: number;
222
+ workingMinutes: number;
223
+ created?: string | null;
224
+ updated?: string | null;
225
+ }>;
226
+ };
227
+ };
228
+ type ListLeaveSelfCertifiedVisibleQueryVariables = Exact$1<{
229
+ filters?: InputMaybe$1<LeaveSelfCertifiedFiltersInput>;
230
+ limit?: InputMaybe$1<Scalars$1['Float']['input']>;
231
+ offset?: InputMaybe$1<Scalars$1['Float']['input']>;
232
+ }>;
233
+ type ListLeaveSelfCertifiedVisibleQuery = {
234
+ __typename?: 'Query';
235
+ leaveSelfCertifiedListVisible: {
236
+ __typename?: 'LeaveSelfCertifiedList';
237
+ count: number;
238
+ total: number;
239
+ offset?: number | null;
240
+ data: Array<{
241
+ __typename?: 'LeaveSelfCertified';
242
+ id: string;
243
+ employeeId: string;
244
+ companyId: string;
245
+ startDate: string;
246
+ endDate?: string | null;
247
+ localStartDate: string;
248
+ localEndDate?: string | null;
249
+ description?: string | null;
250
+ status: string;
251
+ policyId?: string | null;
252
+ typeId: string;
253
+ timezone: string;
254
+ timezoneOffset: number;
255
+ workingMinutes: number;
256
+ created?: string | null;
257
+ updated?: string | null;
258
+ }>;
259
+ };
260
+ };
261
+ type GetLeaveSelfCertifiedPolicyQuery = {
262
+ __typename?: 'Query';
263
+ leaveSelfCertifiedPolicy: {
264
+ __typename?: 'LeaveSelfCertifiedPolicy';
265
+ id: string;
266
+ leavePolicyId: string;
267
+ allowance: {
268
+ __typename?: 'LeaveSelfCertifiedPolicyAllowance';
269
+ periodInMonths: number;
270
+ maxAmountOfDaysPerRequest: number;
271
+ maxAmountOfRequestsInPeriod: number;
272
+ strict: boolean;
273
+ };
274
+ };
275
+ };
276
+ type ListSelfCertifiedPoliciesQueryVariables = Exact$1<{
277
+ filters?: InputMaybe$1<LeaveSelfCertifiedPolicyFiltersInput>;
278
+ limit?: InputMaybe$1<Scalars$1['Float']['input']>;
279
+ offset?: InputMaybe$1<Scalars$1['Float']['input']>;
280
+ }>;
281
+ type ListSelfCertifiedPoliciesQuery = {
282
+ __typename?: 'Query';
283
+ leaveSelfCertifiedPolicyList: {
284
+ __typename?: 'LeaveSelfCertifiedPolicyList';
285
+ count: number;
286
+ total: number;
287
+ offset?: number | null;
288
+ data: Array<{
289
+ __typename?: 'LeaveSelfCertifiedPolicy';
290
+ id: string;
291
+ leavePolicyId: string;
292
+ allowance: {
293
+ __typename?: 'LeaveSelfCertifiedPolicyAllowance';
294
+ periodInMonths: number;
295
+ maxAmountOfDaysPerRequest: number;
296
+ maxAmountOfRequestsInPeriod: number;
297
+ strict: boolean;
298
+ };
299
+ }>;
300
+ };
301
+ };
302
+ type GetTimeBankBalanceQuery = {
303
+ __typename?: 'Query';
304
+ timeBankBalance: {
305
+ __typename?: 'TimeBankBalance';
306
+ minutes: number;
307
+ };
308
+ };
309
+ type GetTimeOffSettingsQuery = {
310
+ __typename?: 'Query';
311
+ timeOffSettingsGet?: {
312
+ __typename?: 'TimeOffSettings';
313
+ id: string;
314
+ key: TimeOffSettingName;
315
+ value: string;
316
+ } | null;
317
+ };
318
+ type GetTimeOffSettingsByKeyQuery = {
319
+ __typename?: 'Query';
320
+ timeOffSettingsGetByKey?: {
321
+ __typename?: 'TimeOffSettings';
322
+ id: string;
323
+ key: TimeOffSettingName;
324
+ value: string;
325
+ } | null;
326
+ };
327
+ type MeQuery = {
328
+ __typename?: 'Query';
329
+ me: {
330
+ __typename?: 'User';
331
+ id: string;
332
+ membership?: {
333
+ __typename?: 'Membership';
334
+ id: string;
335
+ employeeId?: string | null;
336
+ companyId: string;
337
+ role: MembershipRole;
338
+ } | null;
339
+ };
340
+ };
341
+ declare class TypedDocumentString$1<TResult, TVariables> extends String implements DocumentTypeDecoration<TResult, TVariables> {
342
+ __apiType?: NonNullable<DocumentTypeDecoration<TResult, TVariables>['__apiType']>;
343
+ private value;
344
+ __meta__?: Record<string, any> | undefined;
345
+ constructor(value: string, __meta__?: Record<string, any> | undefined);
346
+ toString(): string & DocumentTypeDecoration<TResult, TVariables>;
347
+ }
348
+
349
+ type Maybe<T> = T | null;
350
+ type InputMaybe<T> = Maybe<T>;
351
+ type Exact<T extends {
352
+ [key: string]: unknown;
353
+ }> = {
354
+ [K in keyof T]: T[K];
355
+ };
356
+ /** All built-in and custom scalars, mapped to their actual values */
357
+ type Scalars = {
358
+ ID: {
359
+ input: string;
360
+ output: string;
361
+ };
362
+ String: {
363
+ input: string;
364
+ output: string;
365
+ };
366
+ Boolean: {
367
+ input: boolean;
368
+ output: boolean;
369
+ };
370
+ Int: {
371
+ input: number;
372
+ output: number;
373
+ };
374
+ Float: {
375
+ input: number;
376
+ output: number;
377
+ };
378
+ /** A date string, such as 2007-12-03, compliant with the `full-date` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */
379
+ Date: {
380
+ input: string;
381
+ output: string;
382
+ };
383
+ /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */
384
+ DateTime: {
385
+ input: string;
386
+ output: string;
387
+ };
388
+ Email: {
389
+ input: string;
390
+ output: string;
391
+ };
392
+ /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
393
+ JSON: {
394
+ input: Record<string, unknown>;
395
+ output: Record<string, unknown>;
396
+ };
397
+ /** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
398
+ JSONObject: {
399
+ input: Record<string, unknown>;
400
+ output: Record<string, unknown>;
401
+ };
402
+ /** Arbitrary object */
403
+ Object: {
404
+ input: Record<string, unknown>;
405
+ output: Record<string, unknown>;
406
+ };
407
+ ObjectId: {
408
+ input: string;
409
+ output: string;
410
+ };
411
+ /** The `Upload` scalar type represents a file upload. */
412
+ Upload: {
413
+ input: File;
414
+ output: File;
415
+ };
416
+ };
417
+ type CompanyHolidayFilterInput = {
418
+ /** Filter on companyId */
419
+ companyId?: InputMaybe<FilterStringFieldInput>;
420
+ /** Filter on created */
421
+ created?: InputMaybe<FilterDateFieldInput>;
422
+ /** Filter on endDate */
423
+ endDate?: InputMaybe<FilterDateFieldInput>;
424
+ /** Filter on name */
425
+ name?: InputMaybe<FilterStringFieldInput>;
426
+ /** Filter on startDate */
427
+ startDate?: InputMaybe<FilterDateFieldInput>;
428
+ /** Filter on updated */
429
+ updated?: InputMaybe<FilterDateFieldInput>;
430
+ };
431
+ type CompanyHolidaySortInput = {
432
+ /** Sort on created */
433
+ created?: InputMaybe<SortOptions>;
434
+ /** Sort on end date */
435
+ endDate?: InputMaybe<SortOptions>;
436
+ /** Sort on id */
437
+ id?: InputMaybe<SortOptions>;
438
+ /** Sort on name */
439
+ name?: InputMaybe<SortOptions>;
440
+ /** Sort on start date */
441
+ startDate?: InputMaybe<SortOptions>;
442
+ /** Sort on updated */
443
+ updated?: InputMaybe<SortOptions>;
444
+ };
445
+ declare enum ConnectorEnum {
446
+ Fortnox = "Fortnox",
447
+ PeAccounting = "PEAccounting",
448
+ Teamtailor = "Teamtailor"
449
+ }
450
+ /** Countries */
451
+ declare enum CountryEnum {
452
+ /** Andorra */
453
+ Ad = "AD",
454
+ /** United Arab Emirates */
455
+ Ae = "AE",
456
+ /** Afghanistan */
457
+ Af = "AF",
458
+ /** Antigua and Barbuda */
459
+ Ag = "AG",
460
+ /** Anguilla */
461
+ Ai = "AI",
462
+ /** Albania */
463
+ Al = "AL",
464
+ /** Armenia */
465
+ Am = "AM",
466
+ /** Netherlands Antilles */
467
+ An = "AN",
468
+ /** Angola */
469
+ Ao = "AO",
470
+ /** Antarctica */
471
+ Aq = "AQ",
472
+ /** Argentina */
473
+ Ar = "AR",
474
+ /** American Samoa */
475
+ As = "AS",
476
+ /** Austria */
477
+ At = "AT",
478
+ /** Australia */
479
+ Au = "AU",
480
+ /** Aruba */
481
+ Aw = "AW",
482
+ /** Åland Islands */
483
+ Ax = "AX",
484
+ /** Azerbaijan */
485
+ Az = "AZ",
486
+ /** Bosnia and Herzegovina */
487
+ Ba = "BA",
488
+ /** Barbados */
489
+ Bb = "BB",
490
+ /** Bangladesh */
491
+ Bd = "BD",
492
+ /** Belgium */
493
+ Be = "BE",
494
+ /** Burkina Faso */
495
+ Bf = "BF",
496
+ /** Bulgaria */
497
+ Bg = "BG",
498
+ /** Bahrain */
499
+ Bh = "BH",
500
+ /** Burundi */
501
+ Bi = "BI",
502
+ /** Benin */
503
+ Bj = "BJ",
504
+ /** Bermuda */
505
+ Bm = "BM",
506
+ /** Brunei Darussalam */
507
+ Bn = "BN",
508
+ /** Bolivia */
509
+ Bo = "BO",
510
+ /** Brazil */
511
+ Br = "BR",
512
+ /** Bahamas */
513
+ Bs = "BS",
514
+ /** Bhutan */
515
+ Bt = "BT",
516
+ /** Bouvet Island */
517
+ Bv = "BV",
518
+ /** Botswana */
519
+ Bw = "BW",
520
+ /** Belarus */
521
+ By = "BY",
522
+ /** Belize */
523
+ Bz = "BZ",
524
+ /** Canada */
525
+ Ca = "CA",
526
+ /** Cocos (Keeling) Islands */
527
+ Cc = "CC",
528
+ /** Congo, The Democratic Republic of the */
529
+ Cd = "CD",
530
+ /** Central African Republic */
531
+ Cf = "CF",
532
+ /** Congo */
533
+ Cg = "CG",
534
+ /** Switzerland */
535
+ Ch = "CH",
536
+ /** Cote D'Ivoire */
537
+ Ci = "CI",
538
+ /** Cook Islands */
539
+ Ck = "CK",
540
+ /** Chile */
541
+ Cl = "CL",
542
+ /** Cameroon */
543
+ Cm = "CM",
544
+ /** China */
545
+ Cn = "CN",
546
+ /** Colombia */
547
+ Co = "CO",
548
+ /** Costa Rica */
549
+ Cr = "CR",
550
+ /** Serbia and Montenegro */
551
+ Cs = "CS",
552
+ /** Cuba */
553
+ Cu = "CU",
554
+ /** Cape Verde */
555
+ Cv = "CV",
556
+ /** Christmas Island */
557
+ Cx = "CX",
558
+ /** Cyprus */
559
+ Cy = "CY",
560
+ /** Czech Republic */
561
+ Cz = "CZ",
562
+ /** Germany */
563
+ De = "DE",
564
+ /** Djibouti */
565
+ Dj = "DJ",
566
+ /** Denmark */
567
+ Dk = "DK",
568
+ /** Dominica */
569
+ Dm = "DM",
570
+ /** Dominican Republic */
571
+ Do = "DO",
572
+ /** Algeria */
573
+ Dz = "DZ",
574
+ /** Ecuador */
575
+ Ec = "EC",
576
+ /** Estonia */
577
+ Ee = "EE",
578
+ /** Egypt */
579
+ Eg = "EG",
580
+ /** Western Sahara */
581
+ Eh = "EH",
582
+ /** Eritrea */
583
+ Er = "ER",
584
+ /** Spain */
585
+ Es = "ES",
586
+ /** Ethiopia */
587
+ Et = "ET",
588
+ /** Finland */
589
+ Fi = "FI",
590
+ /** Fiji */
591
+ Fj = "FJ",
592
+ /** Falkland Islands (Malvinas) */
593
+ Fk = "FK",
594
+ /** Micronesia, Federated States of */
595
+ Fm = "FM",
596
+ /** Faroe Islands */
597
+ Fo = "FO",
598
+ /** France */
599
+ Fr = "FR",
600
+ /** Gabon */
601
+ Ga = "GA",
602
+ /** United Kingdom */
603
+ Gb = "GB",
604
+ /** Grenada */
605
+ Gd = "GD",
606
+ /** Georgia */
607
+ Ge = "GE",
608
+ /** French Guiana */
609
+ Gf = "GF",
610
+ /** Guernsey */
611
+ Gg = "GG",
612
+ /** Ghana */
613
+ Gh = "GH",
614
+ /** Gibraltar */
615
+ Gi = "GI",
616
+ /** Greenland */
617
+ Gl = "GL",
618
+ /** Gambia */
619
+ Gm = "GM",
620
+ /** Guinea */
621
+ Gn = "GN",
622
+ /** Guadeloupe */
623
+ Gp = "GP",
624
+ /** Equatorial Guinea */
625
+ Gq = "GQ",
626
+ /** Greece */
627
+ Gr = "GR",
628
+ /** South Georgia and the South Sandwich Islands */
629
+ Gs = "GS",
630
+ /** Guatemala */
631
+ Gt = "GT",
632
+ /** Guam */
633
+ Gu = "GU",
634
+ /** Guinea-Bissau */
635
+ Gw = "GW",
636
+ /** Guyana */
637
+ Gy = "GY",
638
+ /** Hong Kong */
639
+ Hk = "HK",
640
+ /** Heard Island and Mcdonald Islands */
641
+ Hm = "HM",
642
+ /** Honduras */
643
+ Hn = "HN",
644
+ /** Croatia */
645
+ Hr = "HR",
646
+ /** Haiti */
647
+ Ht = "HT",
648
+ /** Hungary */
649
+ Hu = "HU",
650
+ /** Indonesia */
651
+ Id = "ID",
652
+ /** Ireland */
653
+ Ie = "IE",
654
+ /** Israel */
655
+ Il = "IL",
656
+ /** Isle of Man */
657
+ Im = "IM",
658
+ /** India */
659
+ In = "IN",
660
+ /** British Indian Ocean Territory */
661
+ Io = "IO",
662
+ /** Iraq */
663
+ Iq = "IQ",
664
+ /** Iran, Islamic Republic Of */
665
+ Ir = "IR",
666
+ /** Iceland */
667
+ Is = "IS",
668
+ /** Italy */
669
+ It = "IT",
670
+ /** Jersey */
671
+ Je = "JE",
672
+ /** Jamaica */
673
+ Jm = "JM",
674
+ /** Jordan */
675
+ Jo = "JO",
676
+ /** Japan */
677
+ Jp = "JP",
678
+ /** Kenya */
679
+ Ke = "KE",
680
+ /** Kyrgyzstan */
681
+ Kg = "KG",
682
+ /** Cambodia */
683
+ Kh = "KH",
684
+ /** Kiribati */
685
+ Ki = "KI",
686
+ /** Comoros */
687
+ Km = "KM",
688
+ /** Saint Kitts and Nevis */
689
+ Kn = "KN",
690
+ /** North Korea */
691
+ Kp = "KP",
692
+ /** South Korea */
693
+ Kr = "KR",
694
+ /** Kuwait */
695
+ Kw = "KW",
696
+ /** Cayman Islands */
697
+ Ky = "KY",
698
+ /** Kazakhstan */
699
+ Kz = "KZ",
700
+ /** Lao People's Democratic Republic */
701
+ La = "LA",
702
+ /** Lebanon */
703
+ Lb = "LB",
704
+ /** Saint Lucia */
705
+ Lc = "LC",
706
+ /** Liechtenstein */
707
+ Li = "LI",
708
+ /** Sri Lanka */
709
+ Lk = "LK",
710
+ /** Liberia */
711
+ Lr = "LR",
712
+ /** Lesotho */
713
+ Ls = "LS",
714
+ /** Lithuania */
715
+ Lt = "LT",
716
+ /** Luxembourg */
717
+ Lu = "LU",
718
+ /** Latvia */
719
+ Lv = "LV",
720
+ /** Libyan Arab Jamahiriya */
721
+ Ly = "LY",
722
+ /** Morocco */
723
+ Ma = "MA",
724
+ /** Monaco */
725
+ Mc = "MC",
726
+ /** Moldova, Republic of */
727
+ Md = "MD",
728
+ /** Montenegro */
729
+ Me = "ME",
730
+ /** Madagascar */
731
+ Mg = "MG",
732
+ /** Marshall Islands */
733
+ Mh = "MH",
734
+ /** North Macedonia */
735
+ Mk = "MK",
736
+ /** Mali */
737
+ Ml = "ML",
738
+ /** Myanmar */
739
+ Mm = "MM",
740
+ /** Mongolia */
741
+ Mn = "MN",
742
+ /** Macao */
743
+ Mo = "MO",
744
+ /** Northern Mariana Islands */
745
+ Mp = "MP",
746
+ /** Martinique */
747
+ Mq = "MQ",
748
+ /** Mauritania */
749
+ Mr = "MR",
750
+ /** Montserrat */
751
+ Ms = "MS",
752
+ /** Malta */
753
+ Mt = "MT",
754
+ /** Mauritius */
755
+ Mu = "MU",
756
+ /** Maldives */
757
+ Mv = "MV",
758
+ /** Malawi */
759
+ Mw = "MW",
760
+ /** Mexico */
761
+ Mx = "MX",
762
+ /** Malaysia */
763
+ My = "MY",
764
+ /** Mozambique */
765
+ Mz = "MZ",
766
+ /** Namibia */
767
+ Na = "NA",
768
+ /** New Caledonia */
769
+ Nc = "NC",
770
+ /** Niger */
771
+ Ne = "NE",
772
+ /** Norfolk Island */
773
+ Nf = "NF",
774
+ /** Nigeria */
775
+ Ng = "NG",
776
+ /** Nicaragua */
777
+ Ni = "NI",
778
+ /** Netherlands */
779
+ Nl = "NL",
780
+ /** Norway */
781
+ No = "NO",
782
+ /** Nepal */
783
+ Np = "NP",
784
+ /** Nauru */
785
+ Nr = "NR",
786
+ /** Niue */
787
+ Nu = "NU",
788
+ /** New Zealand */
789
+ Nz = "NZ",
790
+ /** Oman */
791
+ Om = "OM",
792
+ /** Panama */
793
+ Pa = "PA",
794
+ /** Peru */
795
+ Pe = "PE",
796
+ /** French Polynesia */
797
+ Pf = "PF",
798
+ /** Papua New Guinea */
799
+ Pg = "PG",
800
+ /** Philippines */
801
+ Ph = "PH",
802
+ /** Pakistan */
803
+ Pk = "PK",
804
+ /** Poland */
805
+ Pl = "PL",
806
+ /** Saint Pierre and Miquelon */
807
+ Pm = "PM",
808
+ /** Pitcairn */
809
+ Pn = "PN",
810
+ /** Puerto Rico */
811
+ Pr = "PR",
812
+ /** Palestinian Territory, Occupied */
813
+ Ps = "PS",
814
+ /** Portugal */
815
+ Pt = "PT",
816
+ /** Palau */
817
+ Pw = "PW",
818
+ /** Paraguay */
819
+ Py = "PY",
820
+ /** Qatar */
821
+ Qa = "QA",
822
+ /** Reunion */
823
+ Re = "RE",
824
+ /** Romania */
825
+ Ro = "RO",
826
+ /** Serbia */
827
+ Rs = "RS",
828
+ /** Russian Federation */
829
+ Ru = "RU",
830
+ /** Rwanda */
831
+ Rw = "RW",
832
+ /** Saudi Arabia */
833
+ Sa = "SA",
834
+ /** Solomon Islands */
835
+ Sb = "SB",
836
+ /** Seychelles */
837
+ Sc = "SC",
838
+ /** Sudan */
839
+ Sd = "SD",
840
+ /** Sweden */
841
+ Se = "SE",
842
+ /** Singapore */
843
+ Sg = "SG",
844
+ /** Saint Helena */
845
+ Sh = "SH",
846
+ /** Slovenia */
847
+ Si = "SI",
848
+ /** Svalbard and Jan Mayen */
849
+ Sj = "SJ",
850
+ /** Slovakia */
851
+ Sk = "SK",
852
+ /** Sierra Leone */
853
+ Sl = "SL",
854
+ /** San Marino */
855
+ Sm = "SM",
856
+ /** Senegal */
857
+ Sn = "SN",
858
+ /** Somalia */
859
+ So = "SO",
860
+ /** Suriname */
861
+ Sr = "SR",
862
+ /** Sao Tome and Principe */
863
+ St = "ST",
864
+ /** El Salvador */
865
+ Sv = "SV",
866
+ /** Syrian Arab Republic */
867
+ Sy = "SY",
868
+ /** Swaziland */
869
+ Sz = "SZ",
870
+ /** Turks and Caicos Islands */
871
+ Tc = "TC",
872
+ /** Chad */
873
+ Td = "TD",
874
+ /** French Southern Territories */
875
+ Tf = "TF",
876
+ /** Togo */
877
+ Tg = "TG",
878
+ /** Thailand */
879
+ Th = "TH",
880
+ /** Tajikistan */
881
+ Tj = "TJ",
882
+ /** Tokelau */
883
+ Tk = "TK",
884
+ /** Timor-Leste */
885
+ Tl = "TL",
886
+ /** Turkmenistan */
887
+ Tm = "TM",
888
+ /** Tunisia */
889
+ Tn = "TN",
890
+ /** Tonga */
891
+ To = "TO",
892
+ /** Turkey */
893
+ Tr = "TR",
894
+ /** Trinidad and Tobago */
895
+ Tt = "TT",
896
+ /** Tuvalu */
897
+ Tv = "TV",
898
+ /** Taiwan, Province of China */
899
+ Tw = "TW",
900
+ /** Tanzania, United Republic of */
901
+ Tz = "TZ",
902
+ /** Ukraine */
903
+ Ua = "UA",
904
+ /** Uganda */
905
+ Ug = "UG",
906
+ /** United States Minor Outlying Islands */
907
+ Um = "UM",
908
+ /** United States */
909
+ Us = "US",
910
+ /** Uruguay */
911
+ Uy = "UY",
912
+ /** Uzbekistan */
913
+ Uz = "UZ",
914
+ /** Holy See (Vatican City State) */
915
+ Va = "VA",
916
+ /** Saint Vincent and the Grenadines */
917
+ Vc = "VC",
918
+ /** Venezuela */
919
+ Ve = "VE",
920
+ /** Virgin Islands, British */
921
+ Vg = "VG",
922
+ /** Virgin Islands, U.S. */
923
+ Vi = "VI",
924
+ /** Vietnam */
925
+ Vn = "VN",
926
+ /** Vanuatu */
927
+ Vu = "VU",
928
+ /** Wallis and Futuna */
929
+ Wf = "WF",
930
+ /** Samoa */
931
+ Ws = "WS",
932
+ /** Republic of Kosovo */
933
+ Xk = "XK",
934
+ /** Yemen */
935
+ Ye = "YE",
936
+ /** Mayotte */
937
+ Yt = "YT",
938
+ /** South Africa */
939
+ Za = "ZA",
940
+ /** Zambia */
941
+ Zm = "ZM",
942
+ /** Zimbabwe */
943
+ Zw = "ZW"
944
+ }
945
+ /** Employee Status */
946
+ declare enum EmployeeStatus {
947
+ Active = "ACTIVE",
948
+ InviteAccepted = "INVITE_ACCEPTED",
949
+ InviteFailed = "INVITE_FAILED",
950
+ InviteRevoked = "INVITE_REVOKED",
951
+ InviteScheduled = "INVITE_SCHEDULED",
952
+ InviteSent = "INVITE_SENT",
953
+ NotInvited = "NOT_INVITED",
954
+ Offboarded = "OFFBOARDED",
955
+ OffboardingScheduled = "OFFBOARDING_SCHEDULED",
956
+ OnboardingCompleted = "ONBOARDING_COMPLETED",
957
+ OnboardingInitiated = "ONBOARDING_INITIATED",
958
+ OnboardingStarted = "ONBOARDING_STARTED"
959
+ }
960
+ type EmployeeVacationBalanceFilterInput = {
961
+ /** Filter on companyId */
962
+ companyId?: InputMaybe<FilterObjectIdFieldInput>;
963
+ /** Filter on employeeId */
964
+ employeeId?: InputMaybe<FilterObjectIdFieldInput>;
965
+ /** Filter on id */
966
+ id?: InputMaybe<FilterObjectIdFieldInput>;
967
+ /** Filter on vacationYearEnd */
968
+ vacationYearEnd?: InputMaybe<FilterDateFieldInput>;
969
+ /** Filter on vacationYearStart */
970
+ vacationYearStart?: InputMaybe<FilterDateFieldInput>;
971
+ };
972
+ type EmploymentFilter = {
973
+ /** Filter on created */
974
+ created?: InputMaybe<FilterDateFieldInput>;
975
+ /** Filter on id */
976
+ id?: InputMaybe<FilterStringFieldInput>;
977
+ /** Filter on updated */
978
+ updated?: InputMaybe<FilterDateFieldInput>;
979
+ };
980
+ type EmploymentSortInput = {
981
+ /** Sort on created */
982
+ created?: InputMaybe<SortOptions>;
983
+ /** Sort on id */
984
+ id?: InputMaybe<SortOptions>;
985
+ /** Sort on updated */
986
+ updated?: InputMaybe<SortOptions>;
987
+ };
988
+ /** The file info */
989
+ type File = {
990
+ __typename?: 'File';
991
+ companyId: Scalars['String']['output'];
992
+ /** The date file was created */
993
+ created: Scalars['DateTime']['output'];
994
+ extension: Scalars['String']['output'];
995
+ fileName: Scalars['String']['output'];
996
+ /** The file id */
997
+ id?: Maybe<Scalars['ID']['output']>;
998
+ mimeType: Scalars['String']['output'];
999
+ type: FileType;
1000
+ /** The date file was last updated */
1001
+ updated: Scalars['DateTime']['output'];
1002
+ /** File url */
1003
+ url?: Maybe<Scalars['String']['output']>;
1004
+ userId: Scalars['String']['output'];
1005
+ };
1006
+ declare enum FileType {
1007
+ CompanyBackground = "COMPANY_BACKGROUND",
1008
+ CompanyLogo = "COMPANY_LOGO",
1009
+ Document = "DOCUMENT",
1010
+ EmployeeExport = "EMPLOYEE_EXPORT",
1011
+ EmployeeImport = "EMPLOYEE_IMPORT",
1012
+ LeaveAttachment = "LEAVE_ATTACHMENT",
1013
+ Signature = "SIGNATURE",
1014
+ SignedDocument = "SIGNED_DOCUMENT",
1015
+ UserAvatar = "USER_AVATAR"
1016
+ }
1017
+ type FilterBooleanFieldInput = {
1018
+ /** Matches values that are equal to a specified value */
1019
+ eq?: InputMaybe<Scalars['Boolean']['input']>;
1020
+ /** Matches values that are not the specified value */
1021
+ ne?: InputMaybe<Scalars['Boolean']['input']>;
1022
+ };
1023
+ type FilterConnectorFieldInput = {
1024
+ /** Matches values that are equal to a specified value */
1025
+ eq?: InputMaybe<ConnectorEnum>;
1026
+ /** Matches any of the values specified in an array */
1027
+ in?: InputMaybe<Array<InputMaybe<ConnectorEnum>>>;
1028
+ /** Matches all values that are not equal to a specified value */
1029
+ ne?: InputMaybe<ConnectorEnum>;
1030
+ /** Matches none of the values specified in an array */
1031
+ nin?: InputMaybe<Array<InputMaybe<ConnectorEnum>>>;
1032
+ };
1033
+ type FilterDateFieldInput = {
1034
+ /** Matches values that are equal to a specified value */
1035
+ eq?: InputMaybe<Scalars['String']['input']>;
1036
+ /** Matches values that are greater than a specified value */
1037
+ gt?: InputMaybe<Scalars['String']['input']>;
1038
+ /** Matches values that are greater than or equal to a specified value */
1039
+ gte?: InputMaybe<Scalars['String']['input']>;
1040
+ /** Matches values that are less than a specified value */
1041
+ lt?: InputMaybe<Scalars['String']['input']>;
1042
+ /** Matches values that are less than or equal to a specified value */
1043
+ lte?: InputMaybe<Scalars['String']['input']>;
1044
+ };
1045
+ type FilterGroupInput = {
1046
+ children?: InputMaybe<Array<InputMaybe<FilterGroupInput>>>;
1047
+ filters: Array<InputMaybe<FilterInput>>;
1048
+ operator: FilterGroupOperatorEnum;
1049
+ };
1050
+ declare enum FilterGroupOperatorEnum {
1051
+ And = "AND",
1052
+ Or = "OR"
1053
+ }
1054
+ type FilterInput = {
1055
+ operator: FilterOperatorEnum;
1056
+ options?: InputMaybe<FilterOptionsInput>;
1057
+ path: Scalars['String']['input'];
1058
+ value?: InputMaybe<Scalars['JSON']['input']>;
1059
+ };
1060
+ type FilterLeaveDurationFieldInput = {
1061
+ /** Matches values that are equal to a specified value */
1062
+ eq?: InputMaybe<LeaveDuration>;
1063
+ /** Matches any of the values specified in an array */
1064
+ in?: InputMaybe<Array<InputMaybe<LeaveDuration>>>;
1065
+ /** Matches all values that are not equal to a specified value */
1066
+ ne?: InputMaybe<LeaveDuration>;
1067
+ /** Matches none of the values specified in an array */
1068
+ nin?: InputMaybe<Array<InputMaybe<LeaveDuration>>>;
1069
+ };
1070
+ type FilterLeaveStatusFieldInput = {
1071
+ /** Matches values that are equal to a specified value */
1072
+ eq?: InputMaybe<LeaveStatus>;
1073
+ /** Matches any of the values specified in an array */
1074
+ in?: InputMaybe<Array<InputMaybe<LeaveStatus>>>;
1075
+ /** Matches all values that are not equal to a specified value */
1076
+ ne?: InputMaybe<LeaveStatus>;
1077
+ /** Matches none of the values specified in an array */
1078
+ nin?: InputMaybe<Array<InputMaybe<LeaveStatus>>>;
1079
+ };
1080
+ type FilterObjectIdFieldInput = {
1081
+ /** Matches all of the values specified in an array */
1082
+ all?: InputMaybe<Array<InputMaybe<Scalars['ObjectId']['input']>>>;
1083
+ /** Matches values that are equal to a specified value */
1084
+ eq?: InputMaybe<Scalars['ObjectId']['input']>;
1085
+ /** Matches any of the values specified in an array */
1086
+ in?: InputMaybe<Array<InputMaybe<Scalars['ObjectId']['input']>>>;
1087
+ /** Matches all values that are not equal to a specified value */
1088
+ ne?: InputMaybe<Scalars['ObjectId']['input']>;
1089
+ /** Matches none of the values specified in an array */
1090
+ nin?: InputMaybe<Array<InputMaybe<Scalars['ObjectId']['input']>>>;
1091
+ };
1092
+ declare enum FilterOperatorEnum {
1093
+ Between = "BETWEEN",
1094
+ Contains = "CONTAINS",
1095
+ Ends = "ENDS",
1096
+ Equals = "EQUALS",
1097
+ Gt = "GT",
1098
+ Gte = "GTE",
1099
+ In = "IN",
1100
+ LastMonth = "LAST_MONTH",
1101
+ LastXDays = "LAST_X_DAYS",
1102
+ LastYear = "LAST_YEAR",
1103
+ Lt = "LT",
1104
+ Lte = "LTE",
1105
+ NextMonth = "NEXT_MONTH",
1106
+ NextXDays = "NEXT_X_DAYS",
1107
+ NextYear = "NEXT_YEAR",
1108
+ NotEquals = "NOT_EQUALS",
1109
+ NotIn = "NOT_IN",
1110
+ Starts = "STARTS",
1111
+ ThisMonth = "THIS_MONTH",
1112
+ ThisYear = "THIS_YEAR",
1113
+ Today = "TODAY",
1114
+ Tomorrow = "TOMORROW",
1115
+ Yesterday = "YESTERDAY"
1116
+ }
1117
+ type FilterOptionsInput = {
1118
+ caseInsensitive?: InputMaybe<Scalars['Boolean']['input']>;
1119
+ };
1120
+ type FilterStringFieldInput = {
1121
+ /** Matches all of the values specified in an array */
1122
+ all?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
1123
+ /** Matches values that are equal to a specified value */
1124
+ eq?: InputMaybe<Scalars['String']['input']>;
1125
+ /** Matches any of the values specified in an array */
1126
+ in?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
1127
+ /** Matches all values that are not equal to a specified value */
1128
+ ne?: InputMaybe<Scalars['String']['input']>;
1129
+ /** Matches none of the values specified in an array */
1130
+ nin?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
1131
+ /** Selects documents where values match a specified regular expression */
1132
+ regex?: InputMaybe<Scalars['String']['input']>;
1133
+ };
1134
+ declare enum LeaveDuration {
1135
+ HalfDay = "HALF_DAY",
1136
+ Longer = "LONGER",
1137
+ Minutes = "MINUTES",
1138
+ OneDay = "ONE_DAY"
1139
+ }
1140
+ type LeaveFilterInput = {
1141
+ /** Filter on approvers */
1142
+ approvers?: InputMaybe<FilterObjectIdFieldInput>;
1143
+ /** Filter on archived */
1144
+ archived?: InputMaybe<FilterBooleanFieldInput>;
1145
+ /** Filter on companyId */
1146
+ companyId?: InputMaybe<FilterObjectIdFieldInput>;
1147
+ /** Filter on created */
1148
+ created?: InputMaybe<FilterDateFieldInput>;
1149
+ /** Filter on duration */
1150
+ duration?: InputMaybe<FilterLeaveDurationFieldInput>;
1151
+ /** Filter on endDate */
1152
+ endDate?: InputMaybe<FilterDateFieldInput>;
1153
+ /** Filter on exportedTo.connector */
1154
+ exportedTo_connector?: InputMaybe<FilterConnectorFieldInput>;
1155
+ /** Filter on exportedTo.date */
1156
+ exportedTo_date?: InputMaybe<FilterDateFieldInput>;
1157
+ /** Filter on startDate */
1158
+ startDate?: InputMaybe<FilterDateFieldInput>;
1159
+ /** Filter on status */
1160
+ status?: InputMaybe<FilterLeaveStatusFieldInput>;
1161
+ /** Filter on typeId */
1162
+ typeId?: InputMaybe<FilterObjectIdFieldInput>;
1163
+ /** Filter on updated */
1164
+ updated?: InputMaybe<FilterDateFieldInput>;
1165
+ /** Filter on userId */
1166
+ userId?: InputMaybe<FilterObjectIdFieldInput>;
1167
+ };
1168
+ type LeavePolicyFilterInput = {
1169
+ archived?: InputMaybe<FilterBooleanFieldInput>;
1170
+ companyId?: InputMaybe<FilterStringFieldInput>;
1171
+ created?: InputMaybe<FilterDateFieldInput>;
1172
+ updated?: InputMaybe<FilterDateFieldInput>;
1173
+ };
1174
+ type LeavePolicySortInput = {
1175
+ /** Sort on created */
1176
+ created?: InputMaybe<SortOptions>;
1177
+ /** Sort on id */
1178
+ id?: InputMaybe<SortOptions>;
1179
+ /** Sort on updated */
1180
+ updated?: InputMaybe<SortOptions>;
1181
+ };
1182
+ type LeaveSortInput = {
1183
+ /** Sort on companyId */
1184
+ companyId?: InputMaybe<SortOptions>;
1185
+ /** Sort on created */
1186
+ created?: InputMaybe<SortOptions>;
1187
+ /** Sort on duration */
1188
+ duration?: InputMaybe<SortOptions>;
1189
+ /** Sort on end date */
1190
+ endDate?: InputMaybe<SortOptions>;
1191
+ /** Sort on start date */
1192
+ startDate?: InputMaybe<SortOptions>;
1193
+ /** Sort on status */
1194
+ status?: InputMaybe<SortOptions>;
1195
+ /** Sort on typeId */
1196
+ typeId?: InputMaybe<SortOptions>;
1197
+ /** Sort on updated */
1198
+ updated?: InputMaybe<SortOptions>;
1199
+ /** Sort on userId */
1200
+ userId?: InputMaybe<SortOptions>;
1201
+ };
1202
+ declare enum LeaveStatus {
1203
+ Approved = "APPROVED",
1204
+ Cancelled = "CANCELLED",
1205
+ Denied = "DENIED",
1206
+ Pending = "PENDING"
1207
+ }
1208
+ declare enum LeaveTypeKind {
1209
+ Childcare = "CHILDCARE",
1210
+ FlexibleLeave = "FLEXIBLE_LEAVE",
1211
+ OffDuty = "OFF_DUTY",
1212
+ ParentalLeave = "PARENTAL_LEAVE",
1213
+ SelfCertified = "SELF_CERTIFIED",
1214
+ SickLeave = "SICK_LEAVE",
1215
+ Vacation = "VACATION"
1216
+ }
1217
+ declare enum MinimumDurationEnum {
1218
+ Day = "DAY",
1219
+ Hour = "HOUR",
1220
+ Minute = "MINUTE"
1221
+ }
1222
+ type PublicHolidayFilterInput = {
1223
+ /** Filter on country */
1224
+ country?: InputMaybe<FilterStringFieldInput>;
1225
+ /** Filter on created */
1226
+ created?: InputMaybe<FilterDateFieldInput>;
1227
+ /** Filter on date */
1228
+ date?: InputMaybe<FilterDateFieldInput>;
1229
+ /** Filter on name */
1230
+ name?: InputMaybe<FilterStringFieldInput>;
1231
+ /** Filter on public */
1232
+ public?: InputMaybe<FilterBooleanFieldInput>;
1233
+ /** Filter on updated */
1234
+ updated?: InputMaybe<FilterDateFieldInput>;
1235
+ };
1236
+ type PublicHolidaySortInput = {
1237
+ /** Sort on country */
1238
+ country?: InputMaybe<SortOptions>;
1239
+ /** Sort on created */
1240
+ created?: InputMaybe<SortOptions>;
1241
+ /** Sort on date */
1242
+ date?: InputMaybe<SortOptions>;
1243
+ /** Sort on id */
1244
+ id?: InputMaybe<SortOptions>;
1245
+ /** Sort on name */
1246
+ name?: InputMaybe<SortOptions>;
1247
+ /** Sort on updated */
1248
+ updated?: InputMaybe<SortOptions>;
1249
+ };
1250
+ type RestrictedDateFilterInput = {
1251
+ /** Filter on companyId */
1252
+ companyId?: InputMaybe<FilterStringFieldInput>;
1253
+ /** Filter on created */
1254
+ created?: InputMaybe<FilterDateFieldInput>;
1255
+ /** Filter on endDate */
1256
+ endDate?: InputMaybe<FilterDateFieldInput>;
1257
+ /** Filter on name */
1258
+ name?: InputMaybe<FilterStringFieldInput>;
1259
+ /** Filter on startDate */
1260
+ startDate?: InputMaybe<FilterDateFieldInput>;
1261
+ /** Filter on updated */
1262
+ updated?: InputMaybe<FilterDateFieldInput>;
1263
+ };
1264
+ type RestrictedDateSortInput = {
1265
+ /** Sort on created */
1266
+ created?: InputMaybe<SortOptions>;
1267
+ /** Sort on end date */
1268
+ endDate?: InputMaybe<SortOptions>;
1269
+ /** Sort on id */
1270
+ id?: InputMaybe<SortOptions>;
1271
+ /** Sort on name */
1272
+ name?: InputMaybe<SortOptions>;
1273
+ /** Sort on start date */
1274
+ startDate?: InputMaybe<SortOptions>;
1275
+ /** Sort on updated */
1276
+ updated?: InputMaybe<SortOptions>;
1277
+ };
1278
+ declare enum SortByDirectionEnum {
1279
+ Asc = "ASC",
1280
+ Desc = "DESC"
1281
+ }
1282
+ type SortByInput = {
1283
+ direction: SortByDirectionEnum;
1284
+ path: Scalars['String']['input'];
1285
+ };
1286
+ /** Sort options */
1287
+ declare enum SortOptions {
1288
+ Asc = "asc",
1289
+ Desc = "desc"
1290
+ }
1291
+ type GetEmployeeQuery = {
1292
+ __typename?: 'Query';
1293
+ employee: {
1294
+ __typename?: 'Employee';
1295
+ id?: string | null;
1296
+ companyId?: string | null;
1297
+ status?: EmployeeStatus | null;
1298
+ workEmail?: string | null;
1299
+ user: {
1300
+ __typename?: 'User';
1301
+ id?: string | null;
1302
+ firstName?: string | null;
1303
+ lastName?: string | null;
1304
+ displayName: string;
1305
+ email?: string | null;
1306
+ };
1307
+ };
1308
+ };
1309
+ type GetEmploymentQuery = {
1310
+ __typename?: 'Query';
1311
+ employment: {
1312
+ __typename?: 'Employment';
1313
+ id?: string | null;
1314
+ employeeId?: string | null;
1315
+ companyId?: string | null;
1316
+ typeId: string;
1317
+ country: CountryEnum;
1318
+ startDate: string;
1319
+ endDate?: string | null;
1320
+ rate: number;
1321
+ terminated: boolean;
1322
+ publicHolidayCalendarId?: string | null;
1323
+ created: string;
1324
+ updated: string;
1325
+ };
1326
+ };
1327
+ type ListEmploymentsQueryVariables = Exact<{
1328
+ filters?: InputMaybe<EmploymentFilter>;
1329
+ limit?: InputMaybe<Scalars['Int']['input']>;
1330
+ skip?: InputMaybe<Scalars['Int']['input']>;
1331
+ sort?: InputMaybe<EmploymentSortInput>;
1332
+ }>;
1333
+ type ListEmploymentsQuery = {
1334
+ __typename?: 'Query';
1335
+ employments?: {
1336
+ __typename?: 'ListEmployments';
1337
+ count: number;
1338
+ next: number;
1339
+ rows?: Array<{
1340
+ __typename?: 'Employment';
1341
+ id?: string | null;
1342
+ employeeId?: string | null;
1343
+ companyId?: string | null;
1344
+ typeId: string;
1345
+ country: CountryEnum;
1346
+ startDate: string;
1347
+ endDate?: string | null;
1348
+ rate: number;
1349
+ terminated: boolean;
1350
+ publicHolidayCalendarId?: string | null;
1351
+ } | null> | null;
1352
+ } | null;
1353
+ };
1354
+ type ListLeaveTypesQueryVariables = Exact<{
1355
+ filters: FilterGroupInput;
1356
+ limit?: InputMaybe<Scalars['Int']['input']>;
1357
+ skip?: InputMaybe<Scalars['Int']['input']>;
1358
+ sortBy?: InputMaybe<Array<InputMaybe<SortByInput>> | InputMaybe<SortByInput>>;
1359
+ }>;
1360
+ type ListLeaveTypesQuery = {
1361
+ __typename?: 'Query';
1362
+ leaveTypeList?: {
1363
+ __typename?: 'ListLeaveTypes';
1364
+ count: number;
1365
+ next: number;
1366
+ rows?: Array<{
1367
+ __typename?: 'LeaveType';
1368
+ id?: string | null;
1369
+ name: string;
1370
+ displayName: string;
1371
+ kind?: LeaveTypeKind | null;
1372
+ deductible: boolean;
1373
+ paid: boolean;
1374
+ disabled: boolean;
1375
+ archived?: boolean | null;
1376
+ minimumDuration: MinimumDurationEnum;
1377
+ allowHalfDays: boolean;
1378
+ allowChild?: boolean | null;
1379
+ } | null> | null;
1380
+ } | null;
1381
+ };
1382
+ type GetEmployeeLeaveTypesQuery = {
1383
+ __typename?: 'Query';
1384
+ employeeLeaveTypeList: Array<{
1385
+ __typename?: 'LeaveType';
1386
+ id?: string | null;
1387
+ name: string;
1388
+ displayName: string;
1389
+ kind?: LeaveTypeKind | null;
1390
+ deductible: boolean;
1391
+ paid: boolean;
1392
+ disabled: boolean;
1393
+ minimumDuration: MinimumDurationEnum;
1394
+ allowHalfDays: boolean;
1395
+ } | null>;
1396
+ };
1397
+ type GetLeaveQuery = {
1398
+ __typename?: 'Query';
1399
+ leave: {
1400
+ __typename?: 'Leave';
1401
+ id?: string | null;
1402
+ status: LeaveStatus;
1403
+ duration: LeaveDuration;
1404
+ startDate: string;
1405
+ endDate: string;
1406
+ localStartDate: string;
1407
+ localEndDate: string;
1408
+ description?: string | null;
1409
+ timezone: string;
1410
+ timezoneOffset: number;
1411
+ workingMinutes: number;
1412
+ type: {
1413
+ __typename?: 'LeaveType';
1414
+ id?: string | null;
1415
+ name: string;
1416
+ kind?: LeaveTypeKind | null;
1417
+ };
1418
+ };
1419
+ };
1420
+ type ListLeaveQueryVariables = Exact<{
1421
+ filters?: InputMaybe<LeaveFilterInput>;
1422
+ limit?: InputMaybe<Scalars['Int']['input']>;
1423
+ skip?: InputMaybe<Scalars['Int']['input']>;
1424
+ sort?: InputMaybe<LeaveSortInput>;
1425
+ }>;
1426
+ type ListLeaveQuery = {
1427
+ __typename?: 'Query';
1428
+ listLeave?: {
1429
+ __typename?: 'ListLeave';
1430
+ count: number;
1431
+ next: number;
1432
+ rows?: Array<{
1433
+ __typename?: 'Leave';
1434
+ id?: string | null;
1435
+ status: LeaveStatus;
1436
+ duration: LeaveDuration;
1437
+ startDate: string;
1438
+ endDate: string;
1439
+ localStartDate: string;
1440
+ localEndDate: string;
1441
+ description?: string | null;
1442
+ timezone: string;
1443
+ workingMinutes: number;
1444
+ type: {
1445
+ __typename?: 'LeaveType';
1446
+ id?: string | null;
1447
+ name: string;
1448
+ kind?: LeaveTypeKind | null;
1449
+ };
1450
+ } | null> | null;
1451
+ } | null;
1452
+ };
1453
+ type ListLeaveVisibleQuery = {
1454
+ __typename?: 'Query';
1455
+ leaveListVisible: Array<{
1456
+ __typename?: 'Leave';
1457
+ id?: string | null;
1458
+ status: LeaveStatus;
1459
+ duration: LeaveDuration;
1460
+ startDate: string;
1461
+ endDate: string;
1462
+ localStartDate: string;
1463
+ localEndDate: string;
1464
+ description?: string | null;
1465
+ timezone: string;
1466
+ workingMinutes: number;
1467
+ type: {
1468
+ __typename?: 'LeaveType';
1469
+ id?: string | null;
1470
+ name: string;
1471
+ kind?: LeaveTypeKind | null;
1472
+ };
1473
+ } | null>;
1474
+ };
1475
+ type GetEmployeeVacationBalanceQuery = {
1476
+ __typename?: 'Query';
1477
+ employeeVacationBalance: {
1478
+ __typename?: 'EmployeeVacationBalance';
1479
+ id: string;
1480
+ employeeId: string;
1481
+ leaveTypeId: string;
1482
+ leavePolicyId: string;
1483
+ earnedAmount: number;
1484
+ adjustmentAmount: number;
1485
+ spentAmount: number;
1486
+ balanceAmount: number;
1487
+ balanceAmountPlusUnpaidLeft: number;
1488
+ balanceAmountUnpaidLeft: number;
1489
+ savedDaysLeft: number;
1490
+ vacationYearStart: string;
1491
+ vacationYearEnd: string;
1492
+ };
1493
+ };
1494
+ type ListEmployeeVacationBalanceQueryVariables = Exact<{
1495
+ filters?: InputMaybe<EmployeeVacationBalanceFilterInput>;
1496
+ limit?: InputMaybe<Scalars['Int']['input']>;
1497
+ skip?: InputMaybe<Scalars['Int']['input']>;
1498
+ }>;
1499
+ type ListEmployeeVacationBalanceQuery = {
1500
+ __typename?: 'Query';
1501
+ employeeVacationBalanceList?: {
1502
+ __typename?: 'ListEmployeeVacationBalancesType';
1503
+ count: number;
1504
+ next: number;
1505
+ rows?: Array<{
1506
+ __typename?: 'EmployeeVacationBalance';
1507
+ id: string;
1508
+ employeeId: string;
1509
+ leaveTypeId: string;
1510
+ leavePolicyId: string;
1511
+ earnedAmount: number;
1512
+ adjustmentAmount: number;
1513
+ spentAmount: number;
1514
+ balanceAmount: number;
1515
+ balanceAmountPlusUnpaidLeft: number;
1516
+ balanceAmountUnpaidLeft: number;
1517
+ savedDaysLeft: number;
1518
+ vacationYearStart: string;
1519
+ vacationYearEnd: string;
1520
+ } | null> | null;
1521
+ } | null;
1522
+ };
1523
+ type GetLeaveUsageQueryVariables = Exact<{
1524
+ employeeId: Scalars['ID']['input'];
1525
+ typeIds: Array<InputMaybe<Scalars['ID']['input']>> | InputMaybe<Scalars['ID']['input']>;
1526
+ from: Scalars['DateTime']['input'];
1527
+ to: Scalars['DateTime']['input'];
1528
+ childId?: InputMaybe<Scalars['ID']['input']>;
1529
+ }>;
1530
+ type GetLeaveUsageQuery = {
1531
+ __typename?: 'Query';
1532
+ leaveUsage?: Array<{
1533
+ __typename?: 'LeaveUsage';
1534
+ typeId: string;
1535
+ days: number;
1536
+ occurences: number;
1537
+ } | null> | null;
1538
+ };
1539
+ type GetLeaveOverlapsQuery = {
1540
+ __typename?: 'Query';
1541
+ leaveOverlaps?: Array<{
1542
+ __typename?: 'Leave';
1543
+ id?: string | null;
1544
+ status: LeaveStatus;
1545
+ duration: LeaveDuration;
1546
+ startDate: string;
1547
+ endDate: string;
1548
+ localStartDate: string;
1549
+ localEndDate: string;
1550
+ workingMinutes: number;
1551
+ type: {
1552
+ __typename?: 'LeaveType';
1553
+ id?: string | null;
1554
+ name: string;
1555
+ kind?: LeaveTypeKind | null;
1556
+ };
1557
+ } | null> | null;
1558
+ };
1559
+ type GetLeaveApproversQueryVariables = Exact<{
1560
+ companyId: Scalars['ObjectId']['input'];
1561
+ employeeId: Scalars['ObjectId']['input'];
1562
+ leaveTypeId: Scalars['ObjectId']['input'];
1563
+ }>;
1564
+ type GetLeaveApproversQuery = {
1565
+ __typename?: 'Query';
1566
+ leaveApprovers?: Array<{
1567
+ __typename?: 'BasicUser';
1568
+ id?: string | null;
1569
+ firstName?: string | null;
1570
+ lastName?: string | null;
1571
+ displayName: string;
1572
+ email?: string | null;
1573
+ } | null> | null;
1574
+ };
1575
+ type GetLeavePolicyQuery = {
1576
+ __typename?: 'Query';
1577
+ leavePolicy: {
1578
+ __typename?: 'LeavePolicy';
1579
+ id: string;
1580
+ companyId: string;
1581
+ leaveTypeId: string;
1582
+ name: string;
1583
+ description?: string | null;
1584
+ requireApproval: boolean;
1585
+ allowAttachments?: boolean | null;
1586
+ minimumDuration?: MinimumDurationEnum | null;
1587
+ allowEmployeeRevoke?: boolean | null;
1588
+ allowEmployeeEdit?: boolean | null;
1589
+ changeRequestGracePeriod?: number | null;
1590
+ allowance: {
1591
+ __typename?: 'LeavePolicyAllowance';
1592
+ includeUnusedDaysInNewBalance: boolean;
1593
+ };
1594
+ };
1595
+ };
1596
+ type ListLeavePoliciesQueryVariables = Exact<{
1597
+ filters?: InputMaybe<LeavePolicyFilterInput>;
1598
+ limit?: InputMaybe<Scalars['Int']['input']>;
1599
+ skip?: InputMaybe<Scalars['Int']['input']>;
1600
+ sort?: InputMaybe<LeavePolicySortInput>;
1601
+ }>;
1602
+ type ListLeavePoliciesQuery = {
1603
+ __typename?: 'Query';
1604
+ leavePolicies?: {
1605
+ __typename?: 'ListLeavePolicies';
1606
+ count: number;
1607
+ next: number;
1608
+ rows?: Array<{
1609
+ __typename?: 'LeavePolicy';
1610
+ id: string;
1611
+ companyId: string;
1612
+ leaveTypeId: string;
1613
+ name: string;
1614
+ description?: string | null;
1615
+ requireApproval: boolean;
1616
+ allowAttachments?: boolean | null;
1617
+ minimumDuration?: MinimumDurationEnum | null;
1618
+ allowEmployeeRevoke?: boolean | null;
1619
+ allowEmployeeEdit?: boolean | null;
1620
+ changeRequestGracePeriod?: number | null;
1621
+ allowance: {
1622
+ __typename?: 'LeavePolicyAllowance';
1623
+ includeUnusedDaysInNewBalance: boolean;
1624
+ };
1625
+ } | null> | null;
1626
+ } | null;
1627
+ };
1628
+ type ListCompanyHolidaysQueryVariables = Exact<{
1629
+ filters?: InputMaybe<CompanyHolidayFilterInput>;
1630
+ limit?: InputMaybe<Scalars['Int']['input']>;
1631
+ skip?: InputMaybe<Scalars['Int']['input']>;
1632
+ sort?: InputMaybe<CompanyHolidaySortInput>;
1633
+ }>;
1634
+ type ListCompanyHolidaysQuery = {
1635
+ __typename?: 'Query';
1636
+ companyHolidays?: {
1637
+ __typename?: 'ListCompanyHolidays';
1638
+ count: number;
1639
+ next: number;
1640
+ rows?: Array<{
1641
+ __typename?: 'CompanyHoliday';
1642
+ id?: string | null;
1643
+ name: string;
1644
+ startDate: string;
1645
+ endDate: string;
1646
+ created: string;
1647
+ updated: string;
1648
+ } | null> | null;
1649
+ } | null;
1650
+ };
1651
+ type ListPublicHolidaysQueryVariables = Exact<{
1652
+ filters?: InputMaybe<PublicHolidayFilterInput>;
1653
+ limit?: InputMaybe<Scalars['Int']['input']>;
1654
+ skip?: InputMaybe<Scalars['Int']['input']>;
1655
+ sort?: InputMaybe<PublicHolidaySortInput>;
1656
+ }>;
1657
+ type ListPublicHolidaysQuery = {
1658
+ __typename?: 'Query';
1659
+ publicHolidays?: {
1660
+ __typename?: 'ListPublicHolidays';
1661
+ count: number;
1662
+ next: number;
1663
+ rows?: Array<{
1664
+ __typename?: 'PublicHoliday';
1665
+ id?: string | null;
1666
+ name: string;
1667
+ label: string;
1668
+ date: string;
1669
+ country?: string | null;
1670
+ public: boolean;
1671
+ calendarId?: string | null;
1672
+ } | null> | null;
1673
+ } | null;
1674
+ };
1675
+ type ListRestrictedDatesQueryVariables = Exact<{
1676
+ filters?: InputMaybe<RestrictedDateFilterInput>;
1677
+ limit?: InputMaybe<Scalars['Int']['input']>;
1678
+ skip?: InputMaybe<Scalars['Int']['input']>;
1679
+ sort?: InputMaybe<RestrictedDateSortInput>;
1680
+ }>;
1681
+ type ListRestrictedDatesQuery = {
1682
+ __typename?: 'Query';
1683
+ restrictedDates?: {
1684
+ __typename?: 'ListRestrictedDates';
1685
+ count: number;
1686
+ next: number;
1687
+ rows?: Array<{
1688
+ __typename?: 'RestrictedDate';
1689
+ id?: string | null;
1690
+ name: string;
1691
+ startDate: string;
1692
+ endDate: string;
1693
+ created: string;
1694
+ updated: string;
1695
+ } | null> | null;
1696
+ } | null;
1697
+ };
1698
+ type GetWorkWeekQueryVariables = Exact<{
1699
+ id: Scalars['ID']['input'];
1700
+ }>;
1701
+ type GetWorkWeekQuery = {
1702
+ __typename?: 'Query';
1703
+ workWeek: {
1704
+ __typename?: 'WorkWeek';
1705
+ id: string;
1706
+ companyId: string;
1707
+ employeeId?: string | null;
1708
+ officeId?: string | null;
1709
+ effectiveFrom: string;
1710
+ effectiveTo?: string | null;
1711
+ duration: number;
1712
+ timezone: string;
1713
+ monday: {
1714
+ __typename?: 'WorkWeekDay';
1715
+ working: boolean;
1716
+ duration: number;
1717
+ shifts: Array<{
1718
+ __typename?: 'WorkShiftSpec';
1719
+ startHour: number;
1720
+ startMinute: number;
1721
+ endHour: number;
1722
+ endMinute: number;
1723
+ duration: number;
1724
+ } | null>;
1725
+ };
1726
+ tuesday: {
1727
+ __typename?: 'WorkWeekDay';
1728
+ working: boolean;
1729
+ duration: number;
1730
+ shifts: Array<{
1731
+ __typename?: 'WorkShiftSpec';
1732
+ startHour: number;
1733
+ startMinute: number;
1734
+ endHour: number;
1735
+ endMinute: number;
1736
+ duration: number;
1737
+ } | null>;
1738
+ };
1739
+ wednesday: {
1740
+ __typename?: 'WorkWeekDay';
1741
+ working: boolean;
1742
+ duration: number;
1743
+ shifts: Array<{
1744
+ __typename?: 'WorkShiftSpec';
1745
+ startHour: number;
1746
+ startMinute: number;
1747
+ endHour: number;
1748
+ endMinute: number;
1749
+ duration: number;
1750
+ } | null>;
1751
+ };
1752
+ thursday: {
1753
+ __typename?: 'WorkWeekDay';
1754
+ working: boolean;
1755
+ duration: number;
1756
+ shifts: Array<{
1757
+ __typename?: 'WorkShiftSpec';
1758
+ startHour: number;
1759
+ startMinute: number;
1760
+ endHour: number;
1761
+ endMinute: number;
1762
+ duration: number;
1763
+ } | null>;
1764
+ };
1765
+ friday: {
1766
+ __typename?: 'WorkWeekDay';
1767
+ working: boolean;
1768
+ duration: number;
1769
+ shifts: Array<{
1770
+ __typename?: 'WorkShiftSpec';
1771
+ startHour: number;
1772
+ startMinute: number;
1773
+ endHour: number;
1774
+ endMinute: number;
1775
+ duration: number;
1776
+ } | null>;
1777
+ };
1778
+ saturday: {
1779
+ __typename?: 'WorkWeekDay';
1780
+ working: boolean;
1781
+ duration: number;
1782
+ shifts: Array<{
1783
+ __typename?: 'WorkShiftSpec';
1784
+ startHour: number;
1785
+ startMinute: number;
1786
+ endHour: number;
1787
+ endMinute: number;
1788
+ duration: number;
1789
+ } | null>;
1790
+ };
1791
+ sunday: {
1792
+ __typename?: 'WorkWeekDay';
1793
+ working: boolean;
1794
+ duration: number;
1795
+ shifts: Array<{
1796
+ __typename?: 'WorkShiftSpec';
1797
+ startHour: number;
1798
+ startMinute: number;
1799
+ endHour: number;
1800
+ endMinute: number;
1801
+ duration: number;
1802
+ } | null>;
1803
+ };
1804
+ };
1805
+ };
1806
+ declare class TypedDocumentString<TResult, TVariables> extends String implements DocumentTypeDecoration<TResult, TVariables> {
1807
+ __apiType?: NonNullable<DocumentTypeDecoration<TResult, TVariables>['__apiType']>;
1808
+ private value;
1809
+ __meta__?: Record<string, any> | undefined;
1810
+ constructor(value: string, __meta__?: Record<string, any> | undefined);
1811
+ toString(): string & DocumentTypeDecoration<TResult, TVariables>;
1812
+ }
1813
+
1814
+ export { type GetWorkWeekQueryVariables as $, type GetLeaveChangeQuery as A, type GetTimeBankBalanceQuery as B, type ListLeavePoliciesQueryVariables as C, type ListLeavePoliciesQuery as D, type Exact as E, type LeavePolicyFilterInput as F, type GetLeaveQuery as G, type LeavePolicySortInput as H, type InputMaybe as I, type GetLeavePolicyQuery as J, type ListSelfCertifiedPoliciesQueryVariables as K, type ListLeaveQueryVariables as L, type ListSelfCertifiedPoliciesQuery as M, type LeaveSelfCertifiedPolicyFiltersInput as N, type GetLeaveSelfCertifiedPolicyQuery as O, type ListLeaveTypesQueryVariables as P, type ListLeaveTypesQuery as Q, type FilterGroupInput as R, type Scalars as S, type SortByInput as T, type GetEmployeeLeaveTypesQuery as U, type GetEmployeeQuery as V, type GetEmploymentQuery as W, type ListEmploymentsQueryVariables as X, type ListEmploymentsQuery as Y, type EmploymentFilter as Z, type EmploymentSortInput as _, type ListLeaveQuery as a, type GetWorkWeekQuery as a0, type ListCompanyHolidaysQueryVariables as a1, type ListCompanyHolidaysQuery as a2, type CompanyHolidayFilterInput as a3, type CompanyHolidaySortInput as a4, type ListPublicHolidaysQueryVariables as a5, type ListPublicHolidaysQuery as a6, type PublicHolidayFilterInput as a7, type PublicHolidaySortInput as a8, type ListRestrictedDatesQueryVariables as a9, type ListRestrictedDatesQuery as aa, type RestrictedDateFilterInput as ab, type RestrictedDateSortInput as ac, type GetTimeOffSettingsQuery as ad, type GetTimeOffSettingsByKeyQuery as ae, type MeQuery as af, TypedDocumentString$1 as ag, TypedDocumentString as ah, type LeaveFilterInput as b, type LeaveSortInput as c, type ListLeaveVisibleQuery as d, type GetEmployeeVacationBalanceQuery as e, type ListEmployeeVacationBalanceQueryVariables as f, type ListEmployeeVacationBalanceQuery as g, type EmployeeVacationBalanceFilterInput as h, type GetLeaveUsageQueryVariables as i, type GetLeaveUsageQuery as j, type GetLeaveOverlapsQuery as k, type GetLeaveApproversQueryVariables as l, type GetLeaveApproversQuery as m, type ListLeaveSelfCertifiedQueryVariables as n, type ListLeaveSelfCertifiedQuery as o, type Exact$1 as p, type InputMaybe$1 as q, type LeaveSelfCertifiedFiltersInput as r, type Scalars$1 as s, type ListLeaveSelfCertifiedVisibleQueryVariables as t, type ListLeaveSelfCertifiedVisibleQuery as u, type GetLeaveSelfCertifiedQuery as v, type ListLeaveChangesQueryVariables as w, type ListLeaveChangesQuery as x, type LeaveChangeFiltersInput as y, type LeaveChangeSortInput as z };