@worknice/utils 0.3.2-rc.2 → 0.3.2-rc.3
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 +14 -0
- package/package.json +1 -1
package/dist/webhooks.d.ts
CHANGED
|
@@ -29,6 +29,9 @@ type ApproveLeaveRequestRequestPayload = {
|
|
|
29
29
|
};
|
|
30
30
|
type ApproveLeaveRequestResponsePayload = {
|
|
31
31
|
ok: true;
|
|
32
|
+
} | {
|
|
33
|
+
errors: Array<string>;
|
|
34
|
+
ok: false;
|
|
32
35
|
};
|
|
33
36
|
type CancelLeaveRequestRequestPayload = {
|
|
34
37
|
/**
|
|
@@ -61,6 +64,9 @@ type CancelLeaveRequestRequestPayload = {
|
|
|
61
64
|
};
|
|
62
65
|
type CancelLeaveRequestResponsePayload = {
|
|
63
66
|
ok: true;
|
|
67
|
+
} | {
|
|
68
|
+
errors: Array<string>;
|
|
69
|
+
ok: false;
|
|
64
70
|
};
|
|
65
71
|
type CreateIntegrationRequestPayload = {
|
|
66
72
|
apiToken: string;
|
|
@@ -114,8 +120,13 @@ type CreateLeaveRequestRequestPayload = {
|
|
|
114
120
|
startTime: string | null;
|
|
115
121
|
};
|
|
116
122
|
type CreateLeaveRequestResponsePayload = {
|
|
123
|
+
hours?: string | null;
|
|
124
|
+
hoursBreakdown?: string | null;
|
|
117
125
|
ok: true;
|
|
118
126
|
remoteId: string;
|
|
127
|
+
} | {
|
|
128
|
+
errors: Array<string>;
|
|
129
|
+
ok: false;
|
|
119
130
|
};
|
|
120
131
|
type DenyLeaveRequestRequestPayload = {
|
|
121
132
|
/**
|
|
@@ -148,6 +159,9 @@ type DenyLeaveRequestRequestPayload = {
|
|
|
148
159
|
};
|
|
149
160
|
type DenyLeaveRequestResponsePayload = {
|
|
150
161
|
ok: true;
|
|
162
|
+
} | {
|
|
163
|
+
errors: Array<string>;
|
|
164
|
+
ok: false;
|
|
151
165
|
};
|
|
152
166
|
type GetAuthorizationUrlRequestPayload = {
|
|
153
167
|
integrationId: string;
|