@worknice/utils 0.2.0 → 0.3.0-rc.2

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 +165 -0
  2. package/package.json +1 -1
@@ -1,14 +1,62 @@
1
1
  type ApproveLeaveRequestRequestPayload = {
2
+ /**
3
+ * @deprecated Use `personConnection.integration.id` instead.
4
+ */
2
5
  integrationId: string;
6
+ /**
7
+ * @deprecated Use `personConnection.integration.org.id` instead.
8
+ */
3
9
  orgId: string;
10
+ personConnection: {
11
+ id: string;
12
+ integration: {
13
+ id: string;
14
+ org: {
15
+ id: string;
16
+ };
17
+ };
18
+ person: {
19
+ id: string;
20
+ };
21
+ remote: {
22
+ id: string;
23
+ };
24
+ };
25
+ /**
26
+ * @deprecated Use `personConnection.remote.id` instead.
27
+ */
4
28
  remoteId: string;
5
29
  };
6
30
  type ApproveLeaveRequestResponsePayload = {
7
31
  ok: true;
8
32
  };
9
33
  type CancelLeaveRequestRequestPayload = {
34
+ /**
35
+ * @deprecated Use `personConnection.integration.id` instead.
36
+ */
10
37
  integrationId: string;
38
+ /**
39
+ * @deprecated Use `personConnection.integration.org.id` instead.
40
+ */
11
41
  orgId: string;
42
+ personConnection: {
43
+ id: string;
44
+ integration: {
45
+ id: string;
46
+ org: {
47
+ id: string;
48
+ };
49
+ };
50
+ person: {
51
+ id: string;
52
+ };
53
+ remote: {
54
+ id: string;
55
+ };
56
+ };
57
+ /**
58
+ * @deprecated Use `personConnection.remote.id` instead.
59
+ */
12
60
  remoteId: string;
13
61
  };
14
62
  type CancelLeaveRequestResponsePayload = {
@@ -24,21 +72,42 @@ type CreateLeaveRequestRequestPayload = {
24
72
  endTime: string | null;
25
73
  hours: string | null;
26
74
  hoursBreakdown: string | null;
75
+ /**
76
+ * @deprecated Use `personConnection.integration.id` instead.
77
+ */
27
78
  integrationId: string;
28
79
  leaveCategory: {
29
80
  id: string;
30
81
  name: string;
31
82
  };
32
83
  leaveRequestId: string;
84
+ /**
85
+ * @deprecated Use `personConnection.integration.org.id` instead.
86
+ */
33
87
  orgId: string;
34
88
  notes: string | null;
89
+ /**
90
+ * @deprecated Use `personConnection.person.id` instead.
91
+ */
35
92
  personId: string;
36
93
  personConnection: {
37
94
  id: string;
95
+ integration: {
96
+ id: string;
97
+ org: {
98
+ id: string;
99
+ };
100
+ };
101
+ person: {
102
+ id: string;
103
+ };
38
104
  remote: {
39
105
  id: string;
40
106
  };
41
107
  };
108
+ /**
109
+ * @deprecated Use `personConnection.id` instead.
110
+ */
42
111
  personConnectionId: string;
43
112
  responsibleId: string;
44
113
  startDate: string;
@@ -49,8 +118,32 @@ type CreateLeaveRequestResponsePayload = {
49
118
  remoteId: string;
50
119
  };
51
120
  type DenyLeaveRequestRequestPayload = {
121
+ /**
122
+ * @deprecated Use `personConnection.integration.id` instead.
123
+ */
52
124
  integrationId: string;
125
+ /**
126
+ * @deprecated Use `personConnection.integration.org.id` instead.
127
+ */
53
128
  orgId: string;
129
+ personConnection: {
130
+ id: string;
131
+ integration: {
132
+ id: string;
133
+ org: {
134
+ id: string;
135
+ };
136
+ };
137
+ person: {
138
+ id: string;
139
+ };
140
+ remote: {
141
+ id: string;
142
+ };
143
+ };
144
+ /**
145
+ * @deprecated Use `personConnection.remote.id` instead.
146
+ */
54
147
  remoteId: string;
55
148
  };
56
149
  type DenyLeaveRequestResponsePayload = {
@@ -64,8 +157,32 @@ type GetAuthorizationUrlResponsePayload = {
64
157
  authorizationUrl: string;
65
158
  };
66
159
  type GetLeaveBalancesRequestPayload = {
160
+ /**
161
+ * @deprecated Use `personConnection.integration.id` instead.
162
+ */
67
163
  integrationId: string;
164
+ /**
165
+ * @deprecated Use `personConnection.integration.org.id` instead.
166
+ */
68
167
  orgId: string;
168
+ personConnection: {
169
+ id: string;
170
+ integration: {
171
+ id: string;
172
+ org: {
173
+ id: string;
174
+ };
175
+ };
176
+ person: {
177
+ id: string;
178
+ };
179
+ remote: {
180
+ id: string;
181
+ };
182
+ };
183
+ /**
184
+ * @deprecated Use `personConnection.remote.id` instead.
185
+ */
69
186
  remoteId: string;
70
187
  };
71
188
  type GetLeaveBalancesResponsePayload = Array<{
@@ -87,11 +204,35 @@ type GetLeaveCategoriesResponsePayload = {
87
204
  }>;
88
205
  };
89
206
  type GetLeaveRequestHoursRequestPayload = {
207
+ /**
208
+ * @deprecated Use `personConnection.id` instead.
209
+ */
90
210
  connectionId: string;
91
211
  endDate: string;
212
+ /**
213
+ * @deprecated Use `personConnection.integration.id` instead.
214
+ */
92
215
  integrationId: string;
93
216
  leaveCategoryId: string;
217
+ /**
218
+ * @deprecated Use `personConnection.integration.org.id` instead.
219
+ */
94
220
  orgId: string;
221
+ personConnection: {
222
+ id: string;
223
+ integration: {
224
+ id: string;
225
+ org: {
226
+ id: string;
227
+ };
228
+ };
229
+ person: {
230
+ id: string;
231
+ };
232
+ remote: {
233
+ id: string;
234
+ };
235
+ };
95
236
  startDate: string;
96
237
  };
97
238
  type GetLeaveRequestHoursResponsePayload = {
@@ -115,8 +256,32 @@ type PersonConnectedRequestPayload = {
115
256
  status: "CONNECTED" | "LOCAL_ONLY" | "MERGED" | "REMOTE_ONLY";
116
257
  };
117
258
  type ProcessLeaveRequestRequestPayload = {
259
+ /**
260
+ * @deprecated Use `personConnection.integration.id` instead.
261
+ */
118
262
  integrationId: string;
263
+ /**
264
+ * @deprecated Use `personConnection.integration.org.id` instead.
265
+ */
119
266
  orgId: string;
267
+ personConnection: {
268
+ id: string;
269
+ integration: {
270
+ id: string;
271
+ org: {
272
+ id: string;
273
+ };
274
+ };
275
+ person: {
276
+ id: string;
277
+ };
278
+ remote: {
279
+ id: string;
280
+ };
281
+ };
282
+ /**
283
+ * @deprecated Use `personConnection.remote.id` instead.
284
+ */
120
285
  remoteId: string;
121
286
  };
122
287
  type ProcessLeaveRequestResponsePayload = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worknice/utils",
3
- "version": "0.2.0",
3
+ "version": "0.3.0-rc.2",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "type": "module",