@worknice/utils 0.3.11-rc.1 → 0.3.11

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 (2) hide show
  1. package/dist/webhooks.d.ts +46 -0
  2. package/package.json +1 -1
@@ -16,6 +16,7 @@ type ApproveLeaveRequestRequestPayload = {
16
16
  };
17
17
  };
18
18
  person: {
19
+ employeeCode: string | null;
19
20
  id: string;
20
21
  };
21
22
  remote: {
@@ -51,6 +52,7 @@ type CancelLeaveRequestRequestPayload = {
51
52
  };
52
53
  };
53
54
  person: {
55
+ employeeCode: string | null;
54
56
  id: string;
55
57
  };
56
58
  remote: {
@@ -105,6 +107,7 @@ type CreateLeaveRequestRequestPayload = {
105
107
  };
106
108
  };
107
109
  person: {
110
+ employeeCode: string | null;
108
111
  id: string;
109
112
  };
110
113
  remote: {
@@ -146,6 +149,7 @@ type DenyLeaveRequestRequestPayload = {
146
149
  };
147
150
  };
148
151
  person: {
152
+ employeeCode: string | null;
149
153
  id: string;
150
154
  };
151
155
  remote: {
@@ -188,6 +192,7 @@ type GetLeaveBalancesRequestPayload = {
188
192
  };
189
193
  };
190
194
  person: {
195
+ employeeCode: string | null;
191
196
  id: string;
192
197
  };
193
198
  remote: {
@@ -208,7 +213,19 @@ type GetLeaveBalancesResponsePayload = Array<{
208
213
  };
209
214
  }>;
210
215
  type GetLeaveCategoriesRequestPayload = {
216
+ integration: {
217
+ id: string;
218
+ org: {
219
+ id: string;
220
+ };
221
+ };
222
+ /**
223
+ * @deprecated Use `integration.id` instead.
224
+ */
211
225
  integrationId: string;
226
+ /**
227
+ * @deprecated Use `integration.org.id` instead.
228
+ */
212
229
  orgId: string;
213
230
  };
214
231
  type GetLeaveCategoriesResponsePayload = {
@@ -241,6 +258,7 @@ type GetLeaveRequestHoursRequestPayload = {
241
258
  };
242
259
  };
243
260
  person: {
261
+ employeeCode: string | null;
244
262
  id: string;
245
263
  };
246
264
  remote: {
@@ -287,6 +305,7 @@ type ProcessLeaveRequestRequestPayload = {
287
305
  };
288
306
  };
289
307
  person: {
308
+ employeeCode: string | null;
290
309
  id: string;
291
310
  };
292
311
  remote: {
@@ -302,7 +321,34 @@ type ProcessLeaveRequestResponsePayload = {
302
321
  ok: true;
303
322
  };
304
323
  type TriggerIntegrationSyncRequestPayload = {
324
+ integration: {
325
+ app: {
326
+ id: string;
327
+ name: string;
328
+ };
329
+ archived: boolean;
330
+ features: {
331
+ leave: boolean;
332
+ leaveBalances: boolean;
333
+ leaveCreation: boolean;
334
+ leaveHoursCalculation: boolean;
335
+ leaveHoursCustomisation: boolean;
336
+ leaveStartAndEndTimes: boolean;
337
+ peopleSync: boolean;
338
+ };
339
+ id: string;
340
+ org: {
341
+ id: string;
342
+ };
343
+ status: "ACTIVE" | "PAUSED" | "SYNCING" | "UNAUTHORIZED" | "UNCONFIGURED" | "UNINITIALIZED";
344
+ };
345
+ /**
346
+ * @deprecated Use `integration.id` instead.
347
+ */
305
348
  integrationId: string;
349
+ /**
350
+ * @deprecated Use `integration.org.id` instead.
351
+ */
306
352
  orgId: string;
307
353
  };
308
354
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worknice/utils",
3
- "version": "0.3.11-rc.1",
3
+ "version": "0.3.11",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "type": "module",