@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,15 @@
1
+ query GetTimeOffSettings($id: String!) {
2
+ timeOffSettingsGet(id: $id) {
3
+ id
4
+ key
5
+ value
6
+ }
7
+ }
8
+
9
+ query GetTimeOffSettingsByKey($key: String!) {
10
+ timeOffSettingsGetByKey(key: $key) {
11
+ id
12
+ key
13
+ value
14
+ }
15
+ }
@@ -0,0 +1,11 @@
1
+ query Me {
2
+ me {
3
+ id
4
+ membership {
5
+ id
6
+ employeeId
7
+ companyId
8
+ role
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,34 @@
1
+ mutation CreateVacationAdjustment(
2
+ $employeeVacationAdjustment: EmployeeVacationAdjustmentCreateInput!
3
+ ) {
4
+ employeeVacationAdjustment {
5
+ create(employeeVacationAdjustment: $employeeVacationAdjustment) {
6
+ id
7
+ employeeId
8
+ companyId
9
+ adjustment
10
+ comment
11
+ date
12
+ created
13
+ updated
14
+ }
15
+ }
16
+ }
17
+
18
+ mutation UpdateVacationAdjustment(
19
+ $id: ID!
20
+ $employeeVacationAdjustment: EmployeeVacationAdjustmentUpdateInput!
21
+ ) {
22
+ employeeVacationAdjustment(id: $id) {
23
+ update(employeeVacationAdjustment: $employeeVacationAdjustment) {
24
+ id
25
+ employeeId
26
+ companyId
27
+ adjustment
28
+ comment
29
+ date
30
+ created
31
+ updated
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,21 @@
1
+ query ListVacationAdjustments(
2
+ $filters: EmployeeVacationAdjustmentFilterInput
3
+ $limit: Int
4
+ $skip: Int
5
+ $sort: EmployeeVacationAdjustmentSortInput
6
+ ) {
7
+ employeeVacationAdjustments(filters: $filters, limit: $limit, skip: $skip, sort: $sort) {
8
+ rows {
9
+ id
10
+ employeeId
11
+ companyId
12
+ adjustment
13
+ comment
14
+ date
15
+ created
16
+ updated
17
+ }
18
+ count
19
+ next
20
+ }
21
+ }
@@ -0,0 +1,27 @@
1
+ query GetEmployee($id: ID!) {
2
+ employee(id: $id) {
3
+ id
4
+ companyId
5
+ status
6
+ workEmail
7
+ user {
8
+ id
9
+ firstName
10
+ lastName
11
+ displayName
12
+ email
13
+ }
14
+ }
15
+ }
16
+
17
+ query ListEmployees($filters: EmployeeFilterInput!) {
18
+ employees(filters: $filters) {
19
+ rows {
20
+ id
21
+ user {
22
+ id
23
+ }
24
+ }
25
+ count
26
+ }
27
+ }
@@ -0,0 +1,40 @@
1
+ query GetEmployment($id: ID!) {
2
+ employment(id: $id) {
3
+ id
4
+ employeeId
5
+ companyId
6
+ typeId
7
+ country
8
+ startDate
9
+ endDate
10
+ rate
11
+ terminated
12
+ publicHolidayCalendarId
13
+ created
14
+ updated
15
+ }
16
+ }
17
+
18
+ query ListEmployments(
19
+ $filters: EmploymentFilter
20
+ $limit: Int
21
+ $skip: Int
22
+ $sort: EmploymentSortInput
23
+ ) {
24
+ employments(filters: $filters, limit: $limit, skip: $skip, sort: $sort) {
25
+ rows {
26
+ id
27
+ employeeId
28
+ companyId
29
+ typeId
30
+ country
31
+ startDate
32
+ endDate
33
+ rate
34
+ terminated
35
+ publicHolidayCalendarId
36
+ }
37
+ count
38
+ next
39
+ }
40
+ }
@@ -0,0 +1,15 @@
1
+ mutation UploadFile(
2
+ $file: Upload!
3
+ $type: FileType!
4
+ $parentId: String
5
+ $parentType: FileParentType
6
+ ) {
7
+ upload(file: $file, type: $type, parentId: $parentId, parentType: $parentType) {
8
+ id
9
+ fileName
10
+ extension
11
+ mimeType
12
+ url
13
+ type
14
+ }
15
+ }
@@ -0,0 +1,13 @@
1
+ query ListGroups($companyId: ID!) {
2
+ company(id: $companyId) {
3
+ groups {
4
+ id
5
+ name
6
+ description
7
+ costCenterId
8
+ effectiveCostCenterId
9
+ parentId
10
+ leadUserId
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,68 @@
1
+ mutation CreateLeave($id: ID!, $leave: LeaveCreateInput!) {
2
+ leave(id: $id) {
3
+ create(leave: $leave) {
4
+ id
5
+ status
6
+ duration
7
+ startDate
8
+ endDate
9
+ localStartDate
10
+ localEndDate
11
+ description
12
+ timezone
13
+ workingMinutes
14
+ type {
15
+ id
16
+ name
17
+ kind
18
+ }
19
+ }
20
+ }
21
+ }
22
+
23
+ mutation UpdateLeave($id: ID!, $leave: LeaveUpdateInput!) {
24
+ leave(id: $id) {
25
+ update(leave: $leave) {
26
+ id
27
+ status
28
+ duration
29
+ startDate
30
+ endDate
31
+ localStartDate
32
+ localEndDate
33
+ description
34
+ timezone
35
+ workingMinutes
36
+ type {
37
+ id
38
+ name
39
+ kind
40
+ }
41
+ }
42
+ }
43
+ }
44
+
45
+ mutation RemoveLeave($id: ID!) {
46
+ leave(id: $id) {
47
+ remove {
48
+ id
49
+ status
50
+ }
51
+ }
52
+ }
53
+
54
+ mutation AddLeaveAttachment($id: ID!, $fileId: ID!) {
55
+ leave(id: $id) {
56
+ addAttachment(fileId: $fileId) {
57
+ id
58
+ }
59
+ }
60
+ }
61
+
62
+ mutation RemoveLeaveAttachment($id: ID!, $fileId: ID!) {
63
+ leave(id: $id) {
64
+ removeAttachment(fileId: $fileId) {
65
+ id
66
+ }
67
+ }
68
+ }
@@ -0,0 +1,150 @@
1
+ query GetLeave($id: ID!) {
2
+ leave(id: $id) {
3
+ id
4
+ status
5
+ duration
6
+ startDate
7
+ endDate
8
+ localStartDate
9
+ localEndDate
10
+ description
11
+ timezone
12
+ timezoneOffset
13
+ workingMinutes
14
+ type {
15
+ id
16
+ name
17
+ kind
18
+ }
19
+ }
20
+ }
21
+
22
+ query ListLeave($filters: LeaveFilterInput, $limit: Int, $skip: Int, $sort: LeaveSortInput) {
23
+ listLeave(filters: $filters, limit: $limit, skip: $skip, sort: $sort) {
24
+ rows {
25
+ id
26
+ status
27
+ duration
28
+ startDate
29
+ endDate
30
+ localStartDate
31
+ localEndDate
32
+ description
33
+ timezone
34
+ workingMinutes
35
+ type {
36
+ id
37
+ name
38
+ kind
39
+ }
40
+ }
41
+ count
42
+ next
43
+ }
44
+ }
45
+
46
+ query ListLeaveVisible {
47
+ leaveListVisible {
48
+ id
49
+ status
50
+ duration
51
+ startDate
52
+ endDate
53
+ localStartDate
54
+ localEndDate
55
+ description
56
+ timezone
57
+ workingMinutes
58
+ type {
59
+ id
60
+ name
61
+ kind
62
+ }
63
+ }
64
+ }
65
+
66
+ query GetEmployeeVacationBalance($id: ID!) {
67
+ employeeVacationBalance(id: $id) {
68
+ id
69
+ employeeId
70
+ leaveTypeId
71
+ leavePolicyId
72
+ earnedAmount
73
+ adjustmentAmount
74
+ spentAmount
75
+ balanceAmount
76
+ balanceAmountPlusUnpaidLeft
77
+ balanceAmountUnpaidLeft
78
+ savedDaysLeft
79
+ vacationYearStart
80
+ vacationYearEnd
81
+ }
82
+ }
83
+
84
+ query ListEmployeeVacationBalance(
85
+ $filters: EmployeeVacationBalanceFilterInput
86
+ $limit: Int
87
+ $skip: Int
88
+ ) {
89
+ employeeVacationBalanceList(filters: $filters, limit: $limit, skip: $skip) {
90
+ rows {
91
+ id
92
+ employeeId
93
+ leaveTypeId
94
+ leavePolicyId
95
+ earnedAmount
96
+ adjustmentAmount
97
+ spentAmount
98
+ balanceAmount
99
+ balanceAmountPlusUnpaidLeft
100
+ balanceAmountUnpaidLeft
101
+ savedDaysLeft
102
+ vacationYearStart
103
+ vacationYearEnd
104
+ }
105
+ count
106
+ next
107
+ }
108
+ }
109
+
110
+ query GetLeaveUsage(
111
+ $employeeId: ID!
112
+ $typeIds: [ID]!
113
+ $from: DateTime!
114
+ $to: DateTime!
115
+ $childId: ID
116
+ ) {
117
+ leaveUsage(employeeId: $employeeId, typeIds: $typeIds, from: $from, to: $to, childId: $childId) {
118
+ typeId
119
+ days
120
+ occurences
121
+ }
122
+ }
123
+
124
+ query GetLeaveOverlaps($leaveId: ObjectId!) {
125
+ leaveOverlaps(leaveId: $leaveId) {
126
+ id
127
+ status
128
+ duration
129
+ startDate
130
+ endDate
131
+ localStartDate
132
+ localEndDate
133
+ workingMinutes
134
+ type {
135
+ id
136
+ name
137
+ kind
138
+ }
139
+ }
140
+ }
141
+
142
+ query GetLeaveApprovers($companyId: ObjectId!, $employeeId: ObjectId!, $leaveTypeId: ObjectId!) {
143
+ leaveApprovers(companyId: $companyId, employeeId: $employeeId, leaveTypeId: $leaveTypeId) {
144
+ id
145
+ firstName
146
+ lastName
147
+ displayName
148
+ email
149
+ }
150
+ }
@@ -0,0 +1,33 @@
1
+ query ListLeaveTypes($filters: FilterGroupInput!, $limit: Int, $skip: Int, $sortBy: [SortByInput]) {
2
+ leaveTypeList(filters: $filters, limit: $limit, skip: $skip, sortBy: $sortBy) {
3
+ rows {
4
+ id
5
+ name
6
+ displayName
7
+ kind
8
+ deductible
9
+ paid
10
+ disabled
11
+ archived
12
+ minimumDuration
13
+ allowHalfDays
14
+ allowChild
15
+ }
16
+ count
17
+ next
18
+ }
19
+ }
20
+
21
+ query GetEmployeeLeaveTypes($employeeId: ID!) {
22
+ employeeLeaveTypeList(employeeId: $employeeId) {
23
+ id
24
+ name
25
+ displayName
26
+ kind
27
+ deductible
28
+ paid
29
+ disabled
30
+ minimumDuration
31
+ allowHalfDays
32
+ }
33
+ }
@@ -0,0 +1,58 @@
1
+ query ActiveMembershipList($companyId: ObjectId!) {
2
+ basicMemberships(companyId: $companyId) {
3
+ id
4
+ userId
5
+ companyId
6
+ employeeId
7
+ role
8
+ active
9
+ isOffboarded
10
+ inviteSent
11
+ user {
12
+ id
13
+ email
14
+ firstName
15
+ lastName
16
+ created
17
+ avatarUrl
18
+ }
19
+ employee {
20
+ id
21
+ status
22
+ managerUserId
23
+ }
24
+ }
25
+ }
26
+
27
+ query ExtendedMembershipList($companyId: ObjectId!) {
28
+ basicMemberships(companyId: $companyId) {
29
+ id
30
+ userId
31
+ companyId
32
+ employeeId
33
+ role
34
+ active
35
+ isOffboarded
36
+ inviteSent
37
+ user {
38
+ id
39
+ email
40
+ firstName
41
+ lastName
42
+ created
43
+ avatarUrl
44
+ }
45
+ employee {
46
+ id
47
+ status
48
+ managerUserId
49
+ groupId
50
+ employmentTypeId
51
+ organizationId
52
+ officeId
53
+ hireDate
54
+ titleId
55
+ title
56
+ }
57
+ }
58
+ }
@@ -0,0 +1,26 @@
1
+ query ListOffices($filters: OfficeFilterInput, $limit: Int, $skip: Int, $sort: OfficeSortInput) {
2
+ offices(filters: $filters, limit: $limit, skip: $skip, sort: $sort) {
3
+ rows {
4
+ id
5
+ name
6
+ email
7
+ phone
8
+ timezone
9
+ publicHolidayCalendarId
10
+ visitingAddress {
11
+ name
12
+ street
13
+ postalCode
14
+ city
15
+ country
16
+ }
17
+ postAddress {
18
+ name
19
+ street
20
+ postalCode
21
+ city
22
+ country
23
+ }
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,43 @@
1
+ mutation CreateLeavePolicy($leavePolicy: LeavePolicyCreateInput!) {
2
+ leavePolicy {
3
+ create(leavePolicy: $leavePolicy) {
4
+ id
5
+ companyId
6
+ leaveTypeId
7
+ name
8
+ description
9
+ requireApproval
10
+ allowAttachments
11
+ minimumDuration
12
+ allowEmployeeRevoke
13
+ allowEmployeeEdit
14
+ changeRequestGracePeriod
15
+ }
16
+ }
17
+ }
18
+
19
+ mutation UpdateLeavePolicy($id: ID!, $leavePolicy: LeavePolicyUpdateInput!) {
20
+ leavePolicy(id: $id) {
21
+ update(leavePolicy: $leavePolicy) {
22
+ id
23
+ companyId
24
+ leaveTypeId
25
+ name
26
+ description
27
+ requireApproval
28
+ allowAttachments
29
+ minimumDuration
30
+ allowEmployeeRevoke
31
+ allowEmployeeEdit
32
+ changeRequestGracePeriod
33
+ }
34
+ }
35
+ }
36
+
37
+ mutation RemoveLeavePolicy($id: ID!) {
38
+ leavePolicy(id: $id) {
39
+ remove {
40
+ id
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,46 @@
1
+ query GetLeavePolicy($id: ID!) {
2
+ leavePolicy(id: $id) {
3
+ id
4
+ companyId
5
+ leaveTypeId
6
+ name
7
+ description
8
+ requireApproval
9
+ allowAttachments
10
+ minimumDuration
11
+ allowEmployeeRevoke
12
+ allowEmployeeEdit
13
+ changeRequestGracePeriod
14
+ allowance {
15
+ includeUnusedDaysInNewBalance
16
+ }
17
+ }
18
+ }
19
+
20
+ query ListLeavePolicies(
21
+ $filters: LeavePolicyFilterInput
22
+ $limit: Int
23
+ $skip: Int
24
+ $sort: LeavePolicySortInput
25
+ ) {
26
+ leavePolicies(filters: $filters, limit: $limit, skip: $skip, sort: $sort) {
27
+ rows {
28
+ id
29
+ companyId
30
+ leaveTypeId
31
+ name
32
+ description
33
+ requireApproval
34
+ allowAttachments
35
+ minimumDuration
36
+ allowEmployeeRevoke
37
+ allowEmployeeEdit
38
+ changeRequestGracePeriod
39
+ allowance {
40
+ includeUnusedDaysInNewBalance
41
+ }
42
+ }
43
+ count
44
+ next
45
+ }
46
+ }
@@ -0,0 +1,19 @@
1
+ mutation UpdateScope($id: String!, $scope: ScopeInput!) {
2
+ scope(id: $id) {
3
+ update(scope: $scope) {
4
+ id
5
+ companyId
6
+ parentId
7
+ parentType
8
+ entireCompany
9
+ employeeScope
10
+ employeeIds
11
+ employmentTypeScope
12
+ excludeEmployeeScope
13
+ groupScope
14
+ officeScope
15
+ organizationScope
16
+ teamScope
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,14 @@
1
+ query ListTeams($filters: FilterGroupInput, $limit: Int, $skip: Int, $sortBy: [SortByInput]) {
2
+ teamList(filters: $filters, limit: $limit, skip: $skip, sortBy: $sortBy) {
3
+ rows {
4
+ id
5
+ companyId
6
+ name
7
+ description
8
+ bgColor
9
+ fgColor
10
+ employeeIdList
11
+ leadUserId
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,37 @@
1
+ query GetCurrentUser {
2
+ me {
3
+ id
4
+ email
5
+ firstName
6
+ lastName
7
+ locale
8
+ phone
9
+ homeAddress {
10
+ country
11
+ }
12
+ bankAccount {
13
+ country
14
+ }
15
+ avatarUrl
16
+ created
17
+ membership {
18
+ id
19
+ userId
20
+ companyId
21
+ employeeId
22
+ role
23
+ active
24
+ inviteSent
25
+ featureAccessList
26
+ company {
27
+ id
28
+ name
29
+ disableRemoteWork
30
+ }
31
+ employee {
32
+ id
33
+ status
34
+ }
35
+ }
36
+ }
37
+ }