@worknice/js-sdk 0.0.7 → 0.0.8-rc.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 (200) hide show
  1. package/package.json +5 -3
  2. package/dist/_types-Cobjq3B-.d.ts +0 -761
  3. package/dist/api/ApiError.d.ts +0 -13
  4. package/dist/api/ApiError.js +0 -29
  5. package/dist/api/ApiError.js.map +0 -1
  6. package/dist/api/WorkniceIntegrationLogger.d.ts +0 -125
  7. package/dist/api/WorkniceIntegrationLogger.js +0 -203
  8. package/dist/api/WorkniceIntegrationLogger.js.map +0 -1
  9. package/dist/api/_generated.d.ts +0 -5711
  10. package/dist/api/_generated.js +0 -391
  11. package/dist/api/_generated.js.map +0 -1
  12. package/dist/api/_types.d.ts +0 -2
  13. package/dist/api/_types.js +0 -2
  14. package/dist/api/_types.js.map +0 -1
  15. package/dist/api/assertNotNull.d.ts +0 -5
  16. package/dist/api/assertNotNull.js +0 -14
  17. package/dist/api/assertNotNull.js.map +0 -1
  18. package/dist/api/createApiOperation.d.ts +0 -11
  19. package/dist/api/createApiOperation.js +0 -6
  20. package/dist/api/createApiOperation.js.map +0 -1
  21. package/dist/api/createWorkniceClient.d.ts +0 -2
  22. package/dist/api/createWorkniceClient.js +0 -125
  23. package/dist/api/createWorkniceClient.js.map +0 -1
  24. package/dist/api/operations/activateIntegration.d.ts +0 -22
  25. package/dist/api/operations/activateIntegration.js +0 -29
  26. package/dist/api/operations/activateIntegration.js.map +0 -1
  27. package/dist/api/operations/authorizeIntegration.d.ts +0 -20
  28. package/dist/api/operations/authorizeIntegration.js +0 -23
  29. package/dist/api/operations/authorizeIntegration.js.map +0 -1
  30. package/dist/api/operations/completeSync.d.ts +0 -20
  31. package/dist/api/operations/completeSync.js +0 -23
  32. package/dist/api/operations/completeSync.js.map +0 -1
  33. package/dist/api/operations/createApiToken.d.ts +0 -14
  34. package/dist/api/operations/createApiToken.js +0 -31
  35. package/dist/api/operations/createApiToken.js.map +0 -1
  36. package/dist/api/operations/createDataImport.d.ts +0 -12
  37. package/dist/api/operations/createDataImport.js +0 -25
  38. package/dist/api/operations/createDataImport.js.map +0 -1
  39. package/dist/api/operations/createPersonConnection.d.ts +0 -139
  40. package/dist/api/operations/createPersonConnection.js +0 -66
  41. package/dist/api/operations/createPersonConnection.js.map +0 -1
  42. package/dist/api/operations/createPersonDataImportLine.d.ts +0 -26
  43. package/dist/api/operations/createPersonDataImportLine.js +0 -57
  44. package/dist/api/operations/createPersonDataImportLine.js.map +0 -1
  45. package/dist/api/operations/deleteApiToken.d.ts +0 -10
  46. package/dist/api/operations/deleteApiToken.js +0 -21
  47. package/dist/api/operations/deleteApiToken.js.map +0 -1
  48. package/dist/api/operations/deletePersonConnection.d.ts +0 -10
  49. package/dist/api/operations/deletePersonConnection.js +0 -21
  50. package/dist/api/operations/deletePersonConnection.js.map +0 -1
  51. package/dist/api/operations/getApiTokens.d.ts +0 -14
  52. package/dist/api/operations/getApiTokens.js +0 -39
  53. package/dist/api/operations/getApiTokens.js.map +0 -1
  54. package/dist/api/operations/getIntegration.d.ts +0 -65
  55. package/dist/api/operations/getIntegration.js +0 -32
  56. package/dist/api/operations/getIntegration.js.map +0 -1
  57. package/dist/api/operations/getMyApps.d.ts +0 -37
  58. package/dist/api/operations/getMyApps.js +0 -62
  59. package/dist/api/operations/getMyApps.js.map +0 -1
  60. package/dist/api/operations/getPeople.d.ts +0 -66
  61. package/dist/api/operations/getPeople.js +0 -80
  62. package/dist/api/operations/getPeople.js.map +0 -1
  63. package/dist/api/operations/getPersonConnections.d.ts +0 -114
  64. package/dist/api/operations/getPersonConnections.js +0 -44
  65. package/dist/api/operations/getPersonConnections.js.map +0 -1
  66. package/dist/api/operations/initializeIntegration.d.ts +0 -20
  67. package/dist/api/operations/initializeIntegration.js +0 -23
  68. package/dist/api/operations/initializeIntegration.js.map +0 -1
  69. package/dist/api/operations/updatePerson.d.ts +0 -70
  70. package/dist/api/operations/updatePerson.js +0 -90
  71. package/dist/api/operations/updatePerson.js.map +0 -1
  72. package/dist/api/operations/updatePersonConnection.d.ts +0 -139
  73. package/dist/api/operations/updatePersonConnection.js +0 -66
  74. package/dist/api/operations/updatePersonConnection.js.map +0 -1
  75. package/dist/employee-records/EQUALITY_CHECKS.d.ts +0 -10
  76. package/dist/employee-records/EQUALITY_CHECKS.js +0 -116
  77. package/dist/employee-records/EQUALITY_CHECKS.js.map +0 -1
  78. package/dist/employee-records/_types.d.ts +0 -198
  79. package/dist/employee-records/_types.js +0 -1
  80. package/dist/employee-records/_types.js.map +0 -1
  81. package/dist/employee-records/comparePersonDataTransferLines.d.ts +0 -6
  82. package/dist/employee-records/comparePersonDataTransferLines.js +0 -397
  83. package/dist/employee-records/comparePersonDataTransferLines.js.map +0 -1
  84. package/dist/employee-records/index.d.ts +0 -20
  85. package/dist/employee-records/index.js +0 -33
  86. package/dist/employee-records/index.js.map +0 -1
  87. package/dist/employee-records/mergePersonDataTransferLines.d.ts +0 -6
  88. package/dist/employee-records/mergePersonDataTransferLines.js +0 -23
  89. package/dist/employee-records/mergePersonDataTransferLines.js.map +0 -1
  90. package/dist/employee-records/validatePersonDataTransferLine.d.ts +0 -6
  91. package/dist/employee-records/validatePersonDataTransferLine.js +0 -33
  92. package/dist/employee-records/validatePersonDataTransferLine.js.map +0 -1
  93. package/dist/employee-records/validatePersonDataTransferLineBankAccounts.d.ts +0 -6
  94. package/dist/employee-records/validatePersonDataTransferLineBankAccounts.js +0 -241
  95. package/dist/employee-records/validatePersonDataTransferLineBankAccounts.js.map +0 -1
  96. package/dist/employee-records/validatePersonDataTransferLineDateOfBirth.d.ts +0 -6
  97. package/dist/employee-records/validatePersonDataTransferLineDateOfBirth.js +0 -17
  98. package/dist/employee-records/validatePersonDataTransferLineDateOfBirth.js.map +0 -1
  99. package/dist/employee-records/validatePersonDataTransferLineEmergencyContacts.d.ts +0 -6
  100. package/dist/employee-records/validatePersonDataTransferLineEmergencyContacts.js +0 -6
  101. package/dist/employee-records/validatePersonDataTransferLineEmergencyContacts.js.map +0 -1
  102. package/dist/employee-records/validatePersonDataTransferLineFullName.d.ts +0 -6
  103. package/dist/employee-records/validatePersonDataTransferLineFullName.js +0 -20
  104. package/dist/employee-records/validatePersonDataTransferLineFullName.js.map +0 -1
  105. package/dist/employee-records/validatePersonDataTransferLineGender.d.ts +0 -6
  106. package/dist/employee-records/validatePersonDataTransferLineGender.js +0 -13
  107. package/dist/employee-records/validatePersonDataTransferLineGender.js.map +0 -1
  108. package/dist/employee-records/validatePersonDataTransferLinePersonalEmail.d.ts +0 -6
  109. package/dist/employee-records/validatePersonDataTransferLinePersonalEmail.js +0 -15
  110. package/dist/employee-records/validatePersonDataTransferLinePersonalEmail.js.map +0 -1
  111. package/dist/employee-records/validatePersonDataTransferLinePersonalPhone.d.ts +0 -6
  112. package/dist/employee-records/validatePersonDataTransferLinePersonalPhone.js +0 -15
  113. package/dist/employee-records/validatePersonDataTransferLinePersonalPhone.js.map +0 -1
  114. package/dist/employee-records/validatePersonDataTransferLinePostalAddress.d.ts +0 -6
  115. package/dist/employee-records/validatePersonDataTransferLinePostalAddress.js +0 -39
  116. package/dist/employee-records/validatePersonDataTransferLinePostalAddress.js.map +0 -1
  117. package/dist/employee-records/validatePersonDataTransferLineProfile.d.ts +0 -6
  118. package/dist/employee-records/validatePersonDataTransferLineProfile.js +0 -17
  119. package/dist/employee-records/validatePersonDataTransferLineProfile.js.map +0 -1
  120. package/dist/employee-records/validatePersonDataTransferLineResidentialAddress.d.ts +0 -6
  121. package/dist/employee-records/validatePersonDataTransferLineResidentialAddress.js +0 -39
  122. package/dist/employee-records/validatePersonDataTransferLineResidentialAddress.js.map +0 -1
  123. package/dist/employee-records/validatePersonDataTransferLineSuperFunds.d.ts +0 -6
  124. package/dist/employee-records/validatePersonDataTransferLineSuperFunds.js +0 -46
  125. package/dist/employee-records/validatePersonDataTransferLineSuperFunds.js.map +0 -1
  126. package/dist/employee-records/validatePersonDataTransferLineTaxDetails.d.ts +0 -6
  127. package/dist/employee-records/validatePersonDataTransferLineTaxDetails.js +0 -46
  128. package/dist/employee-records/validatePersonDataTransferLineTaxDetails.js.map +0 -1
  129. package/dist/employee-records/validatePersonDataTransferLineTenure.d.ts +0 -6
  130. package/dist/employee-records/validatePersonDataTransferLineTenure.js +0 -20
  131. package/dist/employee-records/validatePersonDataTransferLineTenure.js.map +0 -1
  132. package/dist/helpers/_types.d.ts +0 -22
  133. package/dist/helpers/_types.js +0 -1
  134. package/dist/helpers/_types.js.map +0 -1
  135. package/dist/helpers/handleApproveLeaveRequestWebhook.d.ts +0 -15
  136. package/dist/helpers/handleApproveLeaveRequestWebhook.js +0 -21
  137. package/dist/helpers/handleApproveLeaveRequestWebhook.js.map +0 -1
  138. package/dist/helpers/handleCancelLeaveRequestWebhook.d.ts +0 -15
  139. package/dist/helpers/handleCancelLeaveRequestWebhook.js +0 -21
  140. package/dist/helpers/handleCancelLeaveRequestWebhook.js.map +0 -1
  141. package/dist/helpers/handleCreateIntegrationWebhook.d.ts +0 -14
  142. package/dist/helpers/handleCreateIntegrationWebhook.js +0 -42
  143. package/dist/helpers/handleCreateIntegrationWebhook.js.map +0 -1
  144. package/dist/helpers/handleCreateLeaveRequestWebhook.d.ts +0 -15
  145. package/dist/helpers/handleCreateLeaveRequestWebhook.js +0 -21
  146. package/dist/helpers/handleCreateLeaveRequestWebhook.js.map +0 -1
  147. package/dist/helpers/handleDenyLeaveRequestWebhook.d.ts +0 -15
  148. package/dist/helpers/handleDenyLeaveRequestWebhook.js +0 -21
  149. package/dist/helpers/handleDenyLeaveRequestWebhook.js.map +0 -1
  150. package/dist/helpers/handleGetAuthorizationUrlWebhook.d.ts +0 -12
  151. package/dist/helpers/handleGetAuthorizationUrlWebhook.js +0 -27
  152. package/dist/helpers/handleGetAuthorizationUrlWebhook.js.map +0 -1
  153. package/dist/helpers/handleGetLeaveBalancesWebhook.d.ts +0 -13
  154. package/dist/helpers/handleGetLeaveBalancesWebhook.js +0 -27
  155. package/dist/helpers/handleGetLeaveBalancesWebhook.js.map +0 -1
  156. package/dist/helpers/handleGetLeaveCategoriesWebhook.d.ts +0 -15
  157. package/dist/helpers/handleGetLeaveCategoriesWebhook.js +0 -27
  158. package/dist/helpers/handleGetLeaveCategoriesWebhook.js.map +0 -1
  159. package/dist/helpers/handleGetLeaveRequestHoursWebhook.d.ts +0 -13
  160. package/dist/helpers/handleGetLeaveRequestHoursWebhook.js +0 -27
  161. package/dist/helpers/handleGetLeaveRequestHoursWebhook.js.map +0 -1
  162. package/dist/helpers/handleProcessLeaveRequestWebhook.d.ts +0 -15
  163. package/dist/helpers/handleProcessLeaveRequestWebhook.js +0 -21
  164. package/dist/helpers/handleProcessLeaveRequestWebhook.js.map +0 -1
  165. package/dist/helpers/handleRequest.d.ts +0 -12
  166. package/dist/helpers/handleRequest.js +0 -58
  167. package/dist/helpers/handleRequest.js.map +0 -1
  168. package/dist/helpers/handleRequestWithWorknice.d.ts +0 -23
  169. package/dist/helpers/handleRequestWithWorknice.js +0 -44
  170. package/dist/helpers/handleRequestWithWorknice.js.map +0 -1
  171. package/dist/helpers/handleTriggerIntegrationSyncWebhook.d.ts +0 -76
  172. package/dist/helpers/handleTriggerIntegrationSyncWebhook.js +0 -750
  173. package/dist/helpers/handleTriggerIntegrationSyncWebhook.js.map +0 -1
  174. package/dist/helpers/index.d.ts +0 -19
  175. package/dist/helpers/index.js +0 -29
  176. package/dist/helpers/index.js.map +0 -1
  177. package/dist/index.d.ts +0 -20
  178. package/dist/index.js +0 -10
  179. package/dist/index.js.map +0 -1
  180. package/dist/utils/disambiguatePersonConnections.d.ts +0 -25
  181. package/dist/utils/disambiguatePersonConnections.js +0 -18
  182. package/dist/utils/disambiguatePersonConnections.js.map +0 -1
  183. package/dist/utils/errorToString.d.ts +0 -22
  184. package/dist/utils/errorToString.js +0 -30
  185. package/dist/utils/errorToString.js.map +0 -1
  186. package/dist/utils/isNotNullable.d.ts +0 -10
  187. package/dist/utils/isNotNullable.js +0 -6
  188. package/dist/utils/isNotNullable.js.map +0 -1
  189. package/dist/utils/isSamePlainDate.d.ts +0 -3
  190. package/dist/utils/isSamePlainDate.js +0 -5
  191. package/dist/utils/isSamePlainDate.js.map +0 -1
  192. package/dist/utils/isValidPlainDate.d.ts +0 -1
  193. package/dist/utils/isValidPlainDate.js +0 -5
  194. package/dist/utils/isValidPlainDate.js.map +0 -1
  195. package/dist/utils/parsePlainDate.d.ts +0 -1
  196. package/dist/utils/parsePlainDate.js +0 -5
  197. package/dist/utils/parsePlainDate.js.map +0 -1
  198. package/dist/webhooks.d.ts +0 -112
  199. package/dist/webhooks.js +0 -1
  200. package/dist/webhooks.js.map +0 -1
@@ -1,761 +0,0 @@
1
- import { Exact, Scalars, InputMaybe, ConnectionStatus, PersonBankAccountsChangeInput, PersonDataTransferConfigInput, PersonDateOfBirthChangeInput, PersonEmergencyContactsChangeInput, PersonFullNameChangeInput, PersonGenderChangeInput, PersonPersonalEmailChangeInput, PersonPersonalPhoneChangeInput, PersonPostalAddressChangeInput, PersonResidentialAddressChangeInput, PersonSuperFundsChangeInput, PersonTaxDetailsChangeInput, PersonTenureChangeInput, AppCategory, AppStatus, IntegrationStatus, AllocationMethod, Gender, TaxResidencyStatus, SuperFundNomination, TaxFileNumberExemption } from './api/_generated.js';
2
-
3
- declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
4
- fetchFromApi: <Data extends object, Variables extends object>(query: string, variables?: Variables, fetchOptions?: FetchOptions) => Promise<SuccessfulQueryResult<Data>>;
5
- /**
6
- * Transitions an integration with an 'UNAUTHORIZED' or 'UNCONFIGURED'
7
- * status to an 'ACTIVE' status. Optionally, the name of the integration can
8
- * be set at the same time.
9
- */
10
- activateIntegration: (variables: Pick<Exact<{
11
- id: Scalars["ID"]["input"];
12
- name?: InputMaybe<Scalars["String"]["input"]>;
13
- rename: Scalars["Boolean"]["input"];
14
- }>, "id" | "name">, fetchOptions?: FetchOptions) => Promise<{
15
- id: string;
16
- } | {
17
- id: string;
18
- } | {
19
- id: string;
20
- } | {
21
- id: string;
22
- } | {
23
- id: string;
24
- }>;
25
- authorizeIntegration: (variables: Exact<{
26
- integrationId: Scalars["ID"]["input"];
27
- }>, fetchOptions?: FetchOptions) => Promise<{
28
- id: string;
29
- } | {
30
- id: string;
31
- } | {
32
- id: string;
33
- } | {
34
- id: string;
35
- } | {
36
- id: string;
37
- }>;
38
- completeSync: (variables: Exact<{
39
- integrationId: Scalars["ID"]["input"];
40
- }>, fetchOptions?: FetchOptions) => Promise<{
41
- id: string;
42
- } | {
43
- id: string;
44
- } | {
45
- id: string;
46
- } | {
47
- id: string;
48
- } | {
49
- id: string;
50
- }>;
51
- /**
52
- * Creates a new API token belonging to the current person.
53
- */
54
- createApiToken: (variables: Exact<{
55
- name: Scalars["String"]["input"];
56
- }>, fetchOptions?: FetchOptions) => Promise<{
57
- token: string;
58
- id: string;
59
- name: string;
60
- }>;
61
- createDataImport: (variables: Exact<{
62
- integrationId: Scalars["ID"]["input"];
63
- }>, fetchOptions?: FetchOptions) => Promise<{
64
- id: string;
65
- }>;
66
- createPersonConnection: (variables: {
67
- integrationId: string;
68
- personId: string;
69
- remote: {
70
- id: string;
71
- name: string;
72
- };
73
- status: ConnectionStatus.Connected;
74
- } | {
75
- integrationId: string;
76
- personId: string;
77
- status: ConnectionStatus.LocalOnly;
78
- } | {
79
- integrationId: string;
80
- personId: string;
81
- remote: {
82
- id: string;
83
- name: string;
84
- };
85
- status: ConnectionStatus.Merged;
86
- } | {
87
- integrationId: string;
88
- remote: {
89
- id: string;
90
- name: string;
91
- };
92
- status: ConnectionStatus.RemoteOnly;
93
- }, fetchOptions?: FetchOptions) => Promise<({
94
- __typename: "PersonConnection";
95
- createdAt: string;
96
- id: string;
97
- status: ConnectionStatus;
98
- updatedAt: string;
99
- person?: {
100
- displayName: string;
101
- id: string;
102
- updatedAt: string;
103
- } | null;
104
- remote?: {
105
- name: string;
106
- id: string;
107
- url?: string | null;
108
- } | null;
109
- } & {
110
- status: ConnectionStatus.Connected;
111
- remote: {
112
- name: string;
113
- id: string;
114
- url?: string | null;
115
- };
116
- person: {
117
- displayName: string;
118
- id: string;
119
- updatedAt: string;
120
- };
121
- }) | ({
122
- __typename: "PersonConnection";
123
- createdAt: string;
124
- id: string;
125
- status: ConnectionStatus;
126
- updatedAt: string;
127
- person?: {
128
- displayName: string;
129
- id: string;
130
- updatedAt: string;
131
- } | null;
132
- remote?: {
133
- name: string;
134
- id: string;
135
- url?: string | null;
136
- } | null;
137
- } & {
138
- status: ConnectionStatus.Merged;
139
- remote: {
140
- name: string;
141
- id: string;
142
- url?: string | null;
143
- };
144
- person: {
145
- displayName: string;
146
- id: string;
147
- updatedAt: string;
148
- };
149
- }) | ({
150
- __typename: "PersonConnection";
151
- createdAt: string;
152
- id: string;
153
- status: ConnectionStatus;
154
- updatedAt: string;
155
- person?: {
156
- displayName: string;
157
- id: string;
158
- updatedAt: string;
159
- } | null;
160
- remote?: {
161
- name: string;
162
- id: string;
163
- url?: string | null;
164
- } | null;
165
- } & {
166
- status: ConnectionStatus.LocalOnly;
167
- person: {
168
- displayName: string;
169
- id: string;
170
- updatedAt: string;
171
- };
172
- remote: null;
173
- }) | ({
174
- __typename: "PersonConnection";
175
- createdAt: string;
176
- id: string;
177
- status: ConnectionStatus;
178
- updatedAt: string;
179
- person?: {
180
- displayName: string;
181
- id: string;
182
- updatedAt: string;
183
- } | null;
184
- remote?: {
185
- name: string;
186
- id: string;
187
- url?: string | null;
188
- } | null;
189
- } & {
190
- status: ConnectionStatus.RemoteOnly;
191
- remote: {
192
- name: string;
193
- id: string;
194
- url?: string | null;
195
- };
196
- person: null;
197
- })>;
198
- createPersonDataImportLine: (variables: Exact<{
199
- bankAccounts?: InputMaybe<PersonBankAccountsChangeInput>;
200
- config: PersonDataTransferConfigInput;
201
- dataImportId: Scalars["ID"]["input"];
202
- dateOfBirth?: InputMaybe<PersonDateOfBirthChangeInput>;
203
- emergencyContacts?: InputMaybe<PersonEmergencyContactsChangeInput>;
204
- fullName?: InputMaybe<PersonFullNameChangeInput>;
205
- gender?: InputMaybe<PersonGenderChangeInput>;
206
- personalEmail?: InputMaybe<PersonPersonalEmailChangeInput>;
207
- personalPhone?: InputMaybe<PersonPersonalPhoneChangeInput>;
208
- personId: Scalars["ID"]["input"];
209
- postalAddress?: InputMaybe<PersonPostalAddressChangeInput>;
210
- residentialAddress?: InputMaybe<PersonResidentialAddressChangeInput>;
211
- superFunds?: InputMaybe<PersonSuperFundsChangeInput>;
212
- taxDetails?: InputMaybe<PersonTaxDetailsChangeInput>;
213
- tenure?: InputMaybe<PersonTenureChangeInput>;
214
- }>, fetchOptions?: FetchOptions) => Promise<{
215
- id: string;
216
- }>;
217
- /**
218
- * Permanently deletes an API token belonging to the current person.
219
- */
220
- deleteApiToken: (variables: Exact<{
221
- tokenId: Scalars["ID"]["input"];
222
- }>, fetchOptions?: FetchOptions) => Promise<boolean>;
223
- deletePersonConnection: (variables: Exact<{
224
- personConnectionId: Scalars["ID"]["input"];
225
- }>, fetchOptions?: FetchOptions) => Promise<boolean>;
226
- /**
227
- * Transitions an integration with an 'UNINITIALIZED' status to an 'UNAUTHORIZED' status.
228
- */
229
- initializeIntegration: (variables: Exact<{
230
- id: Scalars["ID"]["input"];
231
- }>, fetchOptions?: FetchOptions) => Promise<{
232
- id: string;
233
- } | {
234
- id: string;
235
- } | {
236
- id: string;
237
- } | {
238
- id: string;
239
- } | {
240
- id: string;
241
- }>;
242
- /**
243
- * Returns a list of API tokens belonging to the current person. This will not
244
- * include the token values themselves as they are only available when the
245
- * token is initially created.
246
- *
247
- * If there is no person associated with the session, a `NO_PERSON` error will
248
- * be thrown.
249
- */
250
- getApiTokens: (variables: Exact<{
251
- [key: string]: never;
252
- }>, fetchOptions?: FetchOptions) => Promise<{
253
- createdAt: string;
254
- id: string;
255
- name: string;
256
- }[]>;
257
- getMyApps: (variables: Exact<{
258
- [key: string]: never;
259
- }>, fetchOptions?: FetchOptions) => Promise<{
260
- category: AppCategory;
261
- description?: string | null;
262
- id: string;
263
- name: string;
264
- status: AppStatus;
265
- logo?: {
266
- url: string;
267
- } | null;
268
- config: {
269
- webhooks: {
270
- approveLeaveRequest?: string | null;
271
- cancelLeaveRequest?: string | null;
272
- createIntegration?: string | null;
273
- createLeaveRequest?: string | null;
274
- denyLeaveRequest?: string | null;
275
- getAuthorizationUrl?: string | null;
276
- getConfigurationUrl?: string | null;
277
- getLeaveBalances?: string | null;
278
- getLeaveCategories?: string | null;
279
- getLeaveRequestHours?: string | null;
280
- getReconfigurationUrl?: string | null;
281
- personConnected?: string | null;
282
- processLeaveRequest?: string | null;
283
- triggerIntegrationSync?: string | null;
284
- };
285
- };
286
- }[]>;
287
- getIntegration: (variables: Exact<{
288
- integrationId: Scalars["ID"]["input"];
289
- }>, fetchOptions?: FetchOptions) => Promise<{
290
- archived: boolean;
291
- id: string;
292
- status: IntegrationStatus;
293
- app: {
294
- category: AppCategory;
295
- name: string;
296
- };
297
- org: {
298
- id: string;
299
- };
300
- } | {
301
- archived: boolean;
302
- id: string;
303
- status: IntegrationStatus;
304
- app: {
305
- category: AppCategory;
306
- name: string;
307
- };
308
- org: {
309
- id: string;
310
- };
311
- } | {
312
- archived: boolean;
313
- id: string;
314
- status: IntegrationStatus;
315
- app: {
316
- category: AppCategory;
317
- name: string;
318
- };
319
- org: {
320
- id: string;
321
- };
322
- } | {
323
- archived: boolean;
324
- id: string;
325
- status: IntegrationStatus;
326
- app: {
327
- category: AppCategory;
328
- name: string;
329
- };
330
- org: {
331
- id: string;
332
- };
333
- } | {
334
- archived: boolean;
335
- id: string;
336
- status: IntegrationStatus;
337
- app: {
338
- category: AppCategory;
339
- name: string;
340
- };
341
- org: {
342
- id: string;
343
- };
344
- }>;
345
- getPeople: (variables: Exact<{
346
- orgId: Scalars["ID"]["input"];
347
- }>, fetchOptions?: FetchOptions) => Promise<{
348
- bankAccount1Allocation?: string | null;
349
- bankAccount1AllocationMethod?: AllocationMethod | null;
350
- bankAccount1Bsb?: string | null;
351
- bankAccount1Name?: string | null;
352
- bankAccount1Number?: string | null;
353
- bankAccount2Allocation?: string | null;
354
- bankAccount2AllocationMethod?: AllocationMethod | null;
355
- bankAccount2Bsb?: string | null;
356
- bankAccount2Name?: string | null;
357
- bankAccount2Number?: string | null;
358
- bankAccount3Allocation?: string | null;
359
- bankAccount3AllocationMethod?: AllocationMethod | null;
360
- bankAccount3Bsb?: string | null;
361
- bankAccount3Name?: string | null;
362
- bankAccount3Number?: string | null;
363
- bankAccount4Allocation?: string | null;
364
- bankAccount4AllocationMethod?: AllocationMethod | null;
365
- bankAccount4Bsb?: string | null;
366
- bankAccount4Name?: string | null;
367
- bankAccount4Number?: string | null;
368
- bankAccount5Allocation?: string | null;
369
- bankAccount5AllocationMethod?: AllocationMethod | null;
370
- bankAccount5Bsb?: string | null;
371
- bankAccount5Name?: string | null;
372
- bankAccount5Number?: string | null;
373
- dateOfBirth?: string | null;
374
- displayName: string;
375
- employeeCode?: string | null;
376
- endDate?: string | null;
377
- familyName?: string | null;
378
- gender?: Gender | null;
379
- givenName?: string | null;
380
- hasLoanOrStudentDebt?: boolean | null;
381
- id: string;
382
- otherGivenNames?: string | null;
383
- personalEmail?: string | null;
384
- personalPhone?: string | null;
385
- profileEmail?: string | null;
386
- profilePhone?: string | null;
387
- residencyStatus?: TaxResidencyStatus | null;
388
- residentialAddressCity?: string | null;
389
- residentialAddressCountry?: string | null;
390
- residentialAddressLine1?: string | null;
391
- residentialAddressLine2?: string | null;
392
- residentialAddressPostcode?: string | null;
393
- residentialAddressState?: string | null;
394
- startDate?: string | null;
395
- superFund1MemberName?: string | null;
396
- superFund1MemberNumber?: string | null;
397
- superFund1Nomination?: SuperFundNomination | null;
398
- superFund1Usi?: string | null;
399
- taxFileNumber?: string | null;
400
- taxFileNumberExemption?: TaxFileNumberExemption | null;
401
- taxFreeThresholdClaimed?: boolean | null;
402
- updatedAt: string;
403
- }[]>;
404
- getPersonConnections: (variables: Exact<{
405
- integrationId: Scalars["ID"]["input"];
406
- }>, fetchOptions?: FetchOptions) => Promise<(({
407
- __typename: "PersonConnection";
408
- createdAt: string;
409
- id: string;
410
- status: ConnectionStatus;
411
- updatedAt: string;
412
- person?: {
413
- displayName: string;
414
- id: string;
415
- updatedAt: string;
416
- } | null;
417
- remote?: {
418
- name: string;
419
- id: string;
420
- url?: string | null;
421
- } | null;
422
- } & {
423
- status: ConnectionStatus.Connected;
424
- remote: {
425
- name: string;
426
- id: string;
427
- url?: string | null;
428
- };
429
- person: {
430
- displayName: string;
431
- id: string;
432
- updatedAt: string;
433
- };
434
- }) | ({
435
- __typename: "PersonConnection";
436
- createdAt: string;
437
- id: string;
438
- status: ConnectionStatus;
439
- updatedAt: string;
440
- person?: {
441
- displayName: string;
442
- id: string;
443
- updatedAt: string;
444
- } | null;
445
- remote?: {
446
- name: string;
447
- id: string;
448
- url?: string | null;
449
- } | null;
450
- } & {
451
- status: ConnectionStatus.Merged;
452
- remote: {
453
- name: string;
454
- id: string;
455
- url?: string | null;
456
- };
457
- person: {
458
- displayName: string;
459
- id: string;
460
- updatedAt: string;
461
- };
462
- }) | ({
463
- __typename: "PersonConnection";
464
- createdAt: string;
465
- id: string;
466
- status: ConnectionStatus;
467
- updatedAt: string;
468
- person?: {
469
- displayName: string;
470
- id: string;
471
- updatedAt: string;
472
- } | null;
473
- remote?: {
474
- name: string;
475
- id: string;
476
- url?: string | null;
477
- } | null;
478
- } & {
479
- status: ConnectionStatus.LocalOnly;
480
- person: {
481
- displayName: string;
482
- id: string;
483
- updatedAt: string;
484
- };
485
- remote: null;
486
- }) | ({
487
- __typename: "PersonConnection";
488
- createdAt: string;
489
- id: string;
490
- status: ConnectionStatus;
491
- updatedAt: string;
492
- person?: {
493
- displayName: string;
494
- id: string;
495
- updatedAt: string;
496
- } | null;
497
- remote?: {
498
- name: string;
499
- id: string;
500
- url?: string | null;
501
- } | null;
502
- } & {
503
- status: ConnectionStatus.RemoteOnly;
504
- remote: {
505
- name: string;
506
- id: string;
507
- url?: string | null;
508
- };
509
- person: null;
510
- }))[]>;
511
- updatePerson: (variables: Exact<{
512
- displayName?: InputMaybe<Scalars["String"]["input"]>;
513
- employeeCode?: InputMaybe<Scalars["String"]["input"]>;
514
- personId: Scalars["ID"]["input"];
515
- profileEmail?: InputMaybe<Scalars["String"]["input"]>;
516
- profilePhone?: InputMaybe<Scalars["String"]["input"]>;
517
- }>, fetchOptions?: FetchOptions) => Promise<{
518
- bankAccount1Allocation?: string | null;
519
- bankAccount1AllocationMethod?: AllocationMethod | null;
520
- bankAccount1Bsb?: string | null;
521
- bankAccount1Name?: string | null;
522
- bankAccount1Number?: string | null;
523
- bankAccount2Allocation?: string | null;
524
- bankAccount2AllocationMethod?: AllocationMethod | null;
525
- bankAccount2Bsb?: string | null;
526
- bankAccount2Name?: string | null;
527
- bankAccount2Number?: string | null;
528
- bankAccount3Allocation?: string | null;
529
- bankAccount3AllocationMethod?: AllocationMethod | null;
530
- bankAccount3Bsb?: string | null;
531
- bankAccount3Name?: string | null;
532
- bankAccount3Number?: string | null;
533
- bankAccount4Allocation?: string | null;
534
- bankAccount4AllocationMethod?: AllocationMethod | null;
535
- bankAccount4Bsb?: string | null;
536
- bankAccount4Name?: string | null;
537
- bankAccount4Number?: string | null;
538
- bankAccount5Allocation?: string | null;
539
- bankAccount5AllocationMethod?: AllocationMethod | null;
540
- bankAccount5Bsb?: string | null;
541
- bankAccount5Name?: string | null;
542
- bankAccount5Number?: string | null;
543
- dateOfBirth?: string | null;
544
- displayName: string;
545
- employeeCode?: string | null;
546
- endDate?: string | null;
547
- familyName?: string | null;
548
- gender?: Gender | null;
549
- givenName?: string | null;
550
- hasLoanOrStudentDebt?: boolean | null;
551
- id: string;
552
- otherGivenNames?: string | null;
553
- personalEmail?: string | null;
554
- personalPhone?: string | null;
555
- profileEmail?: string | null;
556
- profilePhone?: string | null;
557
- residencyStatus?: TaxResidencyStatus | null;
558
- residentialAddressCity?: string | null;
559
- residentialAddressCountry?: string | null;
560
- residentialAddressLine1?: string | null;
561
- residentialAddressLine2?: string | null;
562
- residentialAddressPostcode?: string | null;
563
- residentialAddressState?: string | null;
564
- startDate?: string | null;
565
- superFund1MemberName?: string | null;
566
- superFund1MemberNumber?: string | null;
567
- superFund1Nomination?: SuperFundNomination | null;
568
- superFund1Usi?: string | null;
569
- taxFileNumber?: string | null;
570
- taxFileNumberExemption?: TaxFileNumberExemption | null;
571
- taxFreeThresholdClaimed?: boolean | null;
572
- updatedAt: string;
573
- }>;
574
- updatePersonConnection: (variables: {
575
- personConnectionId: string;
576
- personId: string;
577
- remote: {
578
- id: string;
579
- name: string;
580
- };
581
- status: ConnectionStatus.Connected;
582
- } | {
583
- personConnectionId: string;
584
- personId: string;
585
- status: ConnectionStatus.LocalOnly;
586
- } | {
587
- personConnectionId: string;
588
- personId: string;
589
- remote: {
590
- id: string;
591
- name: string;
592
- };
593
- status: ConnectionStatus.Merged;
594
- } | {
595
- personConnectionId: string;
596
- remote: {
597
- id: string;
598
- name: string;
599
- };
600
- status: ConnectionStatus.RemoteOnly;
601
- }, fetchOptions?: FetchOptions) => Promise<({
602
- __typename: "PersonConnection";
603
- createdAt: string;
604
- id: string;
605
- status: ConnectionStatus;
606
- updatedAt: string;
607
- person?: {
608
- displayName: string;
609
- id: string;
610
- updatedAt: string;
611
- } | null;
612
- remote?: {
613
- name: string;
614
- id: string;
615
- url?: string | null;
616
- } | null;
617
- } & {
618
- status: ConnectionStatus.Connected;
619
- remote: {
620
- name: string;
621
- id: string;
622
- url?: string | null;
623
- };
624
- person: {
625
- displayName: string;
626
- id: string;
627
- updatedAt: string;
628
- };
629
- }) | ({
630
- __typename: "PersonConnection";
631
- createdAt: string;
632
- id: string;
633
- status: ConnectionStatus;
634
- updatedAt: string;
635
- person?: {
636
- displayName: string;
637
- id: string;
638
- updatedAt: string;
639
- } | null;
640
- remote?: {
641
- name: string;
642
- id: string;
643
- url?: string | null;
644
- } | null;
645
- } & {
646
- status: ConnectionStatus.Merged;
647
- remote: {
648
- name: string;
649
- id: string;
650
- url?: string | null;
651
- };
652
- person: {
653
- displayName: string;
654
- id: string;
655
- updatedAt: string;
656
- };
657
- }) | ({
658
- __typename: "PersonConnection";
659
- createdAt: string;
660
- id: string;
661
- status: ConnectionStatus;
662
- updatedAt: string;
663
- person?: {
664
- displayName: string;
665
- id: string;
666
- updatedAt: string;
667
- } | null;
668
- remote?: {
669
- name: string;
670
- id: string;
671
- url?: string | null;
672
- } | null;
673
- } & {
674
- status: ConnectionStatus.LocalOnly;
675
- person: {
676
- displayName: string;
677
- id: string;
678
- updatedAt: string;
679
- };
680
- remote: null;
681
- }) | ({
682
- __typename: "PersonConnection";
683
- createdAt: string;
684
- id: string;
685
- status: ConnectionStatus;
686
- updatedAt: string;
687
- person?: {
688
- displayName: string;
689
- id: string;
690
- updatedAt: string;
691
- } | null;
692
- remote?: {
693
- name: string;
694
- id: string;
695
- url?: string | null;
696
- } | null;
697
- } & {
698
- status: ConnectionStatus.RemoteOnly;
699
- remote: {
700
- name: string;
701
- id: string;
702
- url?: string | null;
703
- };
704
- person: null;
705
- })>;
706
- };
707
-
708
- type SuccessfulQueryResult<Data extends object = object> = Readonly<{
709
- data: Data;
710
- }> | Readonly<{
711
- data: Data;
712
- errors: ReadonlyArray<GraphQLFormattedError>;
713
- }>;
714
- type FailedQueryResult = Readonly<{
715
- data: null;
716
- errors: ReadonlyArray<GraphQLFormattedError>;
717
- }> | Readonly<{
718
- errors: ReadonlyArray<GraphQLFormattedError>;
719
- }>;
720
- type QueryResult<Data extends object = object> = SuccessfulQueryResult<Data> | FailedQueryResult;
721
- type FetchOptions = {
722
- signal?: AbortSignal;
723
- };
724
- type ClientConfig = {
725
- accessToken?: string;
726
- apiUrl?: string;
727
- };
728
- type WorkniceClient = ReturnType<typeof createWorkniceClient>;
729
- interface GraphQLFormattedError {
730
- /**
731
- * A short, human-readable summary of the problem that **SHOULD NOT** change
732
- * from occurrence to occurrence of the problem, except for purposes of
733
- * localization.
734
- */
735
- readonly message: string;
736
- /**
737
- * If an error can be associated to a particular point in the requested
738
- * GraphQL document, it should contain a list of locations.
739
- */
740
- readonly locations?: ReadonlyArray<SourceLocation>;
741
- /**
742
- * If an error can be associated to a particular field in the GraphQL result,
743
- * it _must_ contain an entry with the key `path` that details the path of
744
- * the response field which experienced the error. This allows clients to
745
- * identify whether a null result is intentional or caused by a runtime error.
746
- */
747
- readonly path?: ReadonlyArray<string | number>;
748
- /**
749
- * Reserved for implementors to extend the protocol however they see fit,
750
- * and hence there are no additional restrictions on its contents.
751
- */
752
- readonly extensions?: {
753
- [key: string]: unknown;
754
- };
755
- }
756
- interface SourceLocation {
757
- readonly line: number;
758
- readonly column: number;
759
- }
760
-
761
- export { type ClientConfig as C, type FetchOptions as F, type QueryResult as Q, type SuccessfulQueryResult as S, type WorkniceClient as W, type FailedQueryResult as a, createWorkniceClient as c };