@knpkv/clockify-api-client 1.1.1 → 3.0.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/CHANGELOG.md +56 -0
- package/dist/ClockifyApiClient.d.ts +2 -2
- package/dist/ClockifyApiClient.d.ts.map +1 -1
- package/dist/ClockifyApiClient.js +3 -3
- package/dist/ClockifyApiClient.js.map +1 -1
- package/dist/generated/ClockifyApi.d.ts +4282 -4723
- package/dist/generated/ClockifyApi.d.ts.map +1 -1
- package/dist/generated/ClockifyApi.js +336 -329
- package/dist/generated/ClockifyApi.js.map +1 -1
- package/package.json +9 -9
- package/scripts/regenerate.ts +10 -8
- package/src/ClockifyApiClient.ts +4 -4
- package/src/generated/ClockifyApi.ts +570 -544
- package/test/ClockifyApiClient.test.ts +183 -213
- package/test/CustomFieldValues.test.ts +18 -0
- package/test/GeneratedSchemas.test.ts +76 -0
- package/test/WorkspaceSubscription.test.ts +11 -0
- package/test/fixtures/clockify-workspaces.json +144 -0
- package/vitest.config.ts +2 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "64f0c0ffee0000000000aa01",
|
|
4
|
+
"name": "Example Workspace",
|
|
5
|
+
"hourlyRate": {
|
|
6
|
+
"amount": 0,
|
|
7
|
+
"currency": "USD"
|
|
8
|
+
},
|
|
9
|
+
"costRate": {
|
|
10
|
+
"amount": 0,
|
|
11
|
+
"currency": "USD"
|
|
12
|
+
},
|
|
13
|
+
"memberships": [
|
|
14
|
+
{
|
|
15
|
+
"userId": "redacted",
|
|
16
|
+
"hourlyRate": null,
|
|
17
|
+
"costRate": null,
|
|
18
|
+
"targetId": "redacted",
|
|
19
|
+
"membershipType": "WORKSPACE",
|
|
20
|
+
"membershipStatus": "ACTIVE"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"workspaceSettings": {
|
|
24
|
+
"timeRoundingInReports": false,
|
|
25
|
+
"onlyAdminsSeeBillableRates": true,
|
|
26
|
+
"activeBillableHours": false,
|
|
27
|
+
"onlyAdminsCanChangeBillableStatus": false,
|
|
28
|
+
"onlyAdminsCreateProject": false,
|
|
29
|
+
"onlyAdminsSeeDashboard": false,
|
|
30
|
+
"defaultBillableProjects": true,
|
|
31
|
+
"lockTimeEntries": null,
|
|
32
|
+
"lockTimeZone": null,
|
|
33
|
+
"round": {
|
|
34
|
+
"round": "redacted",
|
|
35
|
+
"minutes": "redacted"
|
|
36
|
+
},
|
|
37
|
+
"projectFavorites": true,
|
|
38
|
+
"canSeeTimeSheet": false,
|
|
39
|
+
"canSeeTracker": true,
|
|
40
|
+
"projectPickerSpecialFilter": false,
|
|
41
|
+
"forceProjects": false,
|
|
42
|
+
"forceTasks": false,
|
|
43
|
+
"forceTags": false,
|
|
44
|
+
"forceDescription": false,
|
|
45
|
+
"onlyAdminsSeeAllTimeEntries": false,
|
|
46
|
+
"onlyAdminsSeePublicProjectsEntries": false,
|
|
47
|
+
"onlyAdminsSeeProjectStatus": false,
|
|
48
|
+
"trackTimeDownToSecond": true,
|
|
49
|
+
"projectGroupingLabel": "CLIENT",
|
|
50
|
+
"adminOnlyPages": [],
|
|
51
|
+
"automaticLock": null,
|
|
52
|
+
"onlyAdminsCreateTag": false,
|
|
53
|
+
"timeApprovalEnabled": false,
|
|
54
|
+
"approvalSettings": {
|
|
55
|
+
"approvalEnabled": false,
|
|
56
|
+
"approvalPeriod": "WEEKLY",
|
|
57
|
+
"approvalRoles": ["TEAM_MANAGER", "ADMIN"]
|
|
58
|
+
},
|
|
59
|
+
"screenshotsEnabled": false,
|
|
60
|
+
"highResolutionScreenshots": false,
|
|
61
|
+
"locationsEnabled": false,
|
|
62
|
+
"onlyAdminsCreateTask": false,
|
|
63
|
+
"timeTrackingMode": "DEFAULT",
|
|
64
|
+
"taskBillableEnabled": false,
|
|
65
|
+
"taskRateEnabled": false,
|
|
66
|
+
"invoicingEnabled": false,
|
|
67
|
+
"expensesEnabled": false,
|
|
68
|
+
"schedulingEnabled": false,
|
|
69
|
+
"companyAddress": "redacted",
|
|
70
|
+
"canManagerEditUsersTime": false,
|
|
71
|
+
"timeOff": {
|
|
72
|
+
"active": false,
|
|
73
|
+
"regularUserCanSeeOtherUsersTimeOff": false,
|
|
74
|
+
"showDefaultPoliciesMessageToUsers": []
|
|
75
|
+
},
|
|
76
|
+
"auditLogSettings": null,
|
|
77
|
+
"schedulingSettings": {
|
|
78
|
+
"enabled": false,
|
|
79
|
+
"everyoneCanSeeAllAssignments": false,
|
|
80
|
+
"whoCanCreateAssignments": "ADMINS",
|
|
81
|
+
"canSeeBillableAndCostAmount": false
|
|
82
|
+
},
|
|
83
|
+
"kioskEnabled": false,
|
|
84
|
+
"kioskAuthType": null,
|
|
85
|
+
"kioskProjectsAndTasksEnabled": false,
|
|
86
|
+
"kioskAutologinEnabled": false,
|
|
87
|
+
"canManagerLaunchKiosk": false,
|
|
88
|
+
"kioskPhotoCaptureEnabled": false,
|
|
89
|
+
"multiFactorEnabled": false,
|
|
90
|
+
"numberFormat": "PERIOD_COMMA",
|
|
91
|
+
"currencyFormat": "VALUE_SPACE_CURRENCY",
|
|
92
|
+
"favoriteEntriesEnabled": false,
|
|
93
|
+
"breakSettings": {
|
|
94
|
+
"breaksEnabled": false,
|
|
95
|
+
"defaultBreakEntities": {
|
|
96
|
+
"projectId": null,
|
|
97
|
+
"taskId": null
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"weekStart": "MONDAY",
|
|
101
|
+
"timeViewMode": "TIME_SENSITIVE_VIEW",
|
|
102
|
+
"whitelistedForAggregateView": false,
|
|
103
|
+
"workCapacity": "PT8H",
|
|
104
|
+
"overtimeCalculationPeriod": "DAILY",
|
|
105
|
+
"decimalFormat": false,
|
|
106
|
+
"durationFormat": "FULL",
|
|
107
|
+
"entityCreationPermissions": {
|
|
108
|
+
"whoCanCreateTasks": "EVERYONE",
|
|
109
|
+
"whoCanCreateProjectsAndClients": "EVERYONE",
|
|
110
|
+
"whoCanCreateTags": "EVERYONE"
|
|
111
|
+
},
|
|
112
|
+
"projectLabel": "redacted",
|
|
113
|
+
"taskLabel": "redacted",
|
|
114
|
+
"customLabels": {
|
|
115
|
+
"projectGroupingLabel": "redacted",
|
|
116
|
+
"projectLabel": "redacted",
|
|
117
|
+
"taskLabel": "redacted"
|
|
118
|
+
},
|
|
119
|
+
"workingDays": ["THURSDAY", "FRIDAY", "MONDAY", "TUESDAY", "WEDNESDAY"],
|
|
120
|
+
"isCostRateActive": false,
|
|
121
|
+
"expenseApprovalSettings": {
|
|
122
|
+
"approvalEnabled": false,
|
|
123
|
+
"approvalPeriod": "WEEKLY",
|
|
124
|
+
"approvalRoles": ["TEAM_MANAGER", "ADMIN"]
|
|
125
|
+
},
|
|
126
|
+
"isProjectPublicByDefault": true
|
|
127
|
+
},
|
|
128
|
+
"imageUrl": "redacted",
|
|
129
|
+
"featureSubscriptionType": "FREE_2026",
|
|
130
|
+
"features": ["TIME_TRACKING", "ONE_MONTH_RANGE_REPORTS"],
|
|
131
|
+
"currencies": [
|
|
132
|
+
{
|
|
133
|
+
"id": "redacted",
|
|
134
|
+
"code": "USD",
|
|
135
|
+
"isDefault": true
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"subdomain": {
|
|
139
|
+
"name": null,
|
|
140
|
+
"enabled": false
|
|
141
|
+
},
|
|
142
|
+
"cakeOrganizationId": "redacted"
|
|
143
|
+
}
|
|
144
|
+
]
|
package/vitest.config.ts
CHANGED