@worknice/utils 0.2.0-rc.2 → 0.2.0
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.
- package/dist/webhooks.d.ts +9 -0
- package/package.json +1 -1
package/dist/webhooks.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
type ApproveLeaveRequestRequestPayload = {
|
|
2
2
|
integrationId: string;
|
|
3
|
+
orgId: string;
|
|
3
4
|
remoteId: string;
|
|
4
5
|
};
|
|
5
6
|
type ApproveLeaveRequestResponsePayload = {
|
|
@@ -7,6 +8,7 @@ type ApproveLeaveRequestResponsePayload = {
|
|
|
7
8
|
};
|
|
8
9
|
type CancelLeaveRequestRequestPayload = {
|
|
9
10
|
integrationId: string;
|
|
11
|
+
orgId: string;
|
|
10
12
|
remoteId: string;
|
|
11
13
|
};
|
|
12
14
|
type CancelLeaveRequestResponsePayload = {
|
|
@@ -15,6 +17,7 @@ type CancelLeaveRequestResponsePayload = {
|
|
|
15
17
|
type CreateIntegrationRequestPayload = {
|
|
16
18
|
apiToken: string;
|
|
17
19
|
integrationId: string;
|
|
20
|
+
orgId: string;
|
|
18
21
|
};
|
|
19
22
|
type CreateLeaveRequestRequestPayload = {
|
|
20
23
|
endDate: string;
|
|
@@ -47,6 +50,7 @@ type CreateLeaveRequestResponsePayload = {
|
|
|
47
50
|
};
|
|
48
51
|
type DenyLeaveRequestRequestPayload = {
|
|
49
52
|
integrationId: string;
|
|
53
|
+
orgId: string;
|
|
50
54
|
remoteId: string;
|
|
51
55
|
};
|
|
52
56
|
type DenyLeaveRequestResponsePayload = {
|
|
@@ -54,12 +58,14 @@ type DenyLeaveRequestResponsePayload = {
|
|
|
54
58
|
};
|
|
55
59
|
type GetAuthorizationUrlRequestPayload = {
|
|
56
60
|
integrationId: string;
|
|
61
|
+
orgId: string;
|
|
57
62
|
};
|
|
58
63
|
type GetAuthorizationUrlResponsePayload = {
|
|
59
64
|
authorizationUrl: string;
|
|
60
65
|
};
|
|
61
66
|
type GetLeaveBalancesRequestPayload = {
|
|
62
67
|
integrationId: string;
|
|
68
|
+
orgId: string;
|
|
63
69
|
remoteId: string;
|
|
64
70
|
};
|
|
65
71
|
type GetLeaveBalancesResponsePayload = Array<{
|
|
@@ -72,6 +78,7 @@ type GetLeaveBalancesResponsePayload = Array<{
|
|
|
72
78
|
}>;
|
|
73
79
|
type GetLeaveCategoriesRequestPayload = {
|
|
74
80
|
integrationId: string;
|
|
81
|
+
orgId: string;
|
|
75
82
|
};
|
|
76
83
|
type GetLeaveCategoriesResponsePayload = {
|
|
77
84
|
leaveCategories: Array<{
|
|
@@ -84,6 +91,7 @@ type GetLeaveRequestHoursRequestPayload = {
|
|
|
84
91
|
endDate: string;
|
|
85
92
|
integrationId: string;
|
|
86
93
|
leaveCategoryId: string;
|
|
94
|
+
orgId: string;
|
|
87
95
|
startDate: string;
|
|
88
96
|
};
|
|
89
97
|
type GetLeaveRequestHoursResponsePayload = {
|
|
@@ -108,6 +116,7 @@ type PersonConnectedRequestPayload = {
|
|
|
108
116
|
};
|
|
109
117
|
type ProcessLeaveRequestRequestPayload = {
|
|
110
118
|
integrationId: string;
|
|
119
|
+
orgId: string;
|
|
111
120
|
remoteId: string;
|
|
112
121
|
};
|
|
113
122
|
type ProcessLeaveRequestResponsePayload = {
|