@worknice/utils 0.2.0-rc.1 → 0.2.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.
@@ -0,0 +1,121 @@
1
+ type ApproveLeaveRequestRequestPayload = {
2
+ integrationId: string;
3
+ remoteId: string;
4
+ };
5
+ type ApproveLeaveRequestResponsePayload = {
6
+ ok: true;
7
+ };
8
+ type CancelLeaveRequestRequestPayload = {
9
+ integrationId: string;
10
+ remoteId: string;
11
+ };
12
+ type CancelLeaveRequestResponsePayload = {
13
+ ok: true;
14
+ };
15
+ type CreateIntegrationRequestPayload = {
16
+ apiToken: string;
17
+ integrationId: string;
18
+ };
19
+ type CreateLeaveRequestRequestPayload = {
20
+ endDate: string;
21
+ endTime: string | null;
22
+ hours: string | null;
23
+ hoursBreakdown: string | null;
24
+ integrationId: string;
25
+ leaveCategory: {
26
+ id: string;
27
+ name: string;
28
+ };
29
+ leaveRequestId: string;
30
+ orgId: string;
31
+ notes: string | null;
32
+ personId: string;
33
+ personConnection: {
34
+ id: string;
35
+ remote: {
36
+ id: string;
37
+ };
38
+ };
39
+ personConnectionId: string;
40
+ responsibleId: string;
41
+ startDate: string;
42
+ startTime: string | null;
43
+ };
44
+ type CreateLeaveRequestResponsePayload = {
45
+ ok: true;
46
+ remoteId: string;
47
+ };
48
+ type DenyLeaveRequestRequestPayload = {
49
+ integrationId: string;
50
+ remoteId: string;
51
+ };
52
+ type DenyLeaveRequestResponsePayload = {
53
+ ok: true;
54
+ };
55
+ type GetAuthorizationUrlRequestPayload = {
56
+ integrationId: string;
57
+ };
58
+ type GetAuthorizationUrlResponsePayload = {
59
+ authorizationUrl: string;
60
+ };
61
+ type GetLeaveBalancesRequestPayload = {
62
+ integrationId: string;
63
+ remoteId: string;
64
+ };
65
+ type GetLeaveBalancesResponsePayload = Array<{
66
+ accruedAmount: string;
67
+ id: string;
68
+ leaveCategory: {
69
+ id: string;
70
+ name: string;
71
+ };
72
+ }>;
73
+ type GetLeaveCategoriesRequestPayload = {
74
+ integrationId: string;
75
+ };
76
+ type GetLeaveCategoriesResponsePayload = {
77
+ leaveCategories: Array<{
78
+ id: string;
79
+ name: string;
80
+ }>;
81
+ };
82
+ type GetLeaveRequestHoursRequestPayload = {
83
+ connectionId: string;
84
+ endDate: string;
85
+ integrationId: string;
86
+ leaveCategoryId: string;
87
+ startDate: string;
88
+ };
89
+ type GetLeaveRequestHoursResponsePayload = {
90
+ hours: string;
91
+ hoursBreakdown?: string | null;
92
+ ok: true;
93
+ };
94
+ type PersonConnectedRequestPayload = {
95
+ id: string;
96
+ integration: {
97
+ id: string;
98
+ };
99
+ person: {
100
+ displayName: string;
101
+ id: string;
102
+ } | null;
103
+ remote: {
104
+ id: string;
105
+ name: string;
106
+ } | null;
107
+ status: "CONNECTED" | "LOCAL_ONLY" | "MERGED" | "REMOTE_ONLY";
108
+ };
109
+ type ProcessLeaveRequestRequestPayload = {
110
+ integrationId: string;
111
+ remoteId: string;
112
+ };
113
+ type ProcessLeaveRequestResponsePayload = {
114
+ ok: true;
115
+ };
116
+ type TriggerIntegrationSyncRequestPayload = {
117
+ integrationId: string;
118
+ orgId: string;
119
+ };
120
+
121
+ export type { ApproveLeaveRequestRequestPayload, ApproveLeaveRequestResponsePayload, CancelLeaveRequestRequestPayload, CancelLeaveRequestResponsePayload, CreateIntegrationRequestPayload, CreateLeaveRequestRequestPayload, CreateLeaveRequestResponsePayload, DenyLeaveRequestRequestPayload, DenyLeaveRequestResponsePayload, GetAuthorizationUrlRequestPayload, GetAuthorizationUrlResponsePayload, GetLeaveBalancesRequestPayload, GetLeaveBalancesResponsePayload, GetLeaveCategoriesRequestPayload, GetLeaveCategoriesResponsePayload, GetLeaveRequestHoursRequestPayload, GetLeaveRequestHoursResponsePayload, PersonConnectedRequestPayload, ProcessLeaveRequestRequestPayload, ProcessLeaveRequestResponsePayload, TriggerIntegrationSyncRequestPayload };
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=webhooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worknice/utils",
3
- "version": "0.2.0-rc.1",
3
+ "version": "0.2.0-rc.2",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "type": "module",