@timesheet/sdk 1.0.0 → 1.0.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.
- package/CHANGELOG.md +10 -16
- package/dist/index.d.mts +57 -3
- package/dist/index.d.ts +57 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,25 +5,17 @@ All notable changes to the Timesheet TypeScript SDK will be documented in this f
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [Unreleased]
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
- Nothing yet
|
|
12
|
-
|
|
13
|
-
### Changed
|
|
14
|
-
- Nothing yet
|
|
9
|
+
## [1.0.2] - 2025-10-25
|
|
15
10
|
|
|
16
|
-
###
|
|
17
|
-
-
|
|
11
|
+
### Added
|
|
12
|
+
- Added team permission properties to Team model
|
|
13
|
+
- Added setting properties to Settings model
|
|
18
14
|
|
|
19
|
-
|
|
20
|
-
- Nothing yet
|
|
15
|
+
## [1.0.1] - 2025-10-25
|
|
21
16
|
|
|
22
17
|
### Fixed
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
### Security
|
|
26
|
-
- Nothing yet
|
|
18
|
+
- Added missing fields to Profile model to match backend ProfileDto
|
|
27
19
|
|
|
28
20
|
## [1.0.0] - 2025-06-14
|
|
29
21
|
|
|
@@ -78,5 +70,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
78
70
|
- Removed complex mocking in favor of simple validation tests
|
|
79
71
|
- Updated GitHub Actions to use non-deprecated action versions
|
|
80
72
|
|
|
81
|
-
[Unreleased]: https://github.com/timesheetIO/timesheet-typescript/compare/v1.0.
|
|
82
|
-
[1.0.
|
|
73
|
+
[Unreleased]: https://github.com/timesheetIO/timesheet-typescript/compare/v1.0.2...HEAD
|
|
74
|
+
[1.0.2]: https://github.com/timesheetIO/timesheet-typescript/compare/v1.0.1...v1.0.2
|
|
75
|
+
[1.0.1]: https://github.com/timesheetIO/timesheet-typescript/compare/v1.0.0...v1.0.1
|
|
76
|
+
[1.0.0]: https://github.com/timesheetIO/timesheet-typescript/releases/tag/v1.0.0
|
package/dist/index.d.mts
CHANGED
|
@@ -136,6 +136,15 @@ interface Team {
|
|
|
136
136
|
image?: string;
|
|
137
137
|
color?: number;
|
|
138
138
|
projectSalaryVisibility?: number;
|
|
139
|
+
permission?: {
|
|
140
|
+
role: string;
|
|
141
|
+
managerOrOwner: boolean;
|
|
142
|
+
member: boolean;
|
|
143
|
+
manager: boolean;
|
|
144
|
+
owner: boolean;
|
|
145
|
+
};
|
|
146
|
+
projects: number;
|
|
147
|
+
members: number;
|
|
139
148
|
created?: number;
|
|
140
149
|
lastUpdate?: number;
|
|
141
150
|
}
|
|
@@ -1083,30 +1092,75 @@ interface AutomationListParams extends ListParams {
|
|
|
1083
1092
|
|
|
1084
1093
|
interface Settings {
|
|
1085
1094
|
theme?: 'light' | 'dark' | 'system';
|
|
1086
|
-
timezone?: string;
|
|
1087
1095
|
language?: string;
|
|
1096
|
+
timezone?: string;
|
|
1088
1097
|
currency?: string;
|
|
1098
|
+
distance?: string;
|
|
1089
1099
|
dateFormat?: string;
|
|
1090
|
-
timeFormat?:
|
|
1100
|
+
timeFormat?: string;
|
|
1101
|
+
durationFormat?: string;
|
|
1102
|
+
csvSeparator?: string;
|
|
1103
|
+
slotDuration?: number;
|
|
1104
|
+
snapDuration?: number;
|
|
1105
|
+
entriesPerPage?: number;
|
|
1091
1106
|
firstDay?: number;
|
|
1107
|
+
defaultTaskDuration?: number;
|
|
1108
|
+
defaultBreakDuration?: number;
|
|
1109
|
+
showRelatives?: boolean;
|
|
1110
|
+
weeklySummary?: boolean;
|
|
1111
|
+
monthlySummary?: boolean;
|
|
1112
|
+
lastUpdate?: number;
|
|
1092
1113
|
timerRounding?: number;
|
|
1093
|
-
timerRoundingType?:
|
|
1114
|
+
timerRoundingType?: number;
|
|
1115
|
+
timerEditView?: boolean;
|
|
1094
1116
|
pauseRounding?: number;
|
|
1117
|
+
pauseRoundingType?: number;
|
|
1118
|
+
pauseEditView?: boolean;
|
|
1119
|
+
autofillProjectSelection?: boolean;
|
|
1095
1120
|
}
|
|
1096
1121
|
interface SettingsUpdateRequest extends Settings {
|
|
1097
1122
|
}
|
|
1098
1123
|
|
|
1099
1124
|
interface Profile {
|
|
1125
|
+
permission?: number;
|
|
1100
1126
|
email?: string;
|
|
1101
1127
|
imageUrl?: string;
|
|
1102
1128
|
firstname?: string;
|
|
1103
1129
|
lastname?: string;
|
|
1130
|
+
newsletter?: boolean;
|
|
1131
|
+
activatedTeams?: boolean;
|
|
1132
|
+
activated?: boolean;
|
|
1133
|
+
needsSetup?: boolean;
|
|
1134
|
+
user?: string;
|
|
1135
|
+
lastUpdate?: number;
|
|
1136
|
+
subscriptionId?: string;
|
|
1137
|
+
expires?: number;
|
|
1138
|
+
status?: number;
|
|
1139
|
+
plan?: number;
|
|
1140
|
+
valid?: boolean;
|
|
1141
|
+
expired?: boolean;
|
|
1142
|
+
product?: string;
|
|
1143
|
+
trial?: boolean;
|
|
1144
|
+
planBusiness?: boolean;
|
|
1145
|
+
planPro?: boolean;
|
|
1146
|
+
planPlus?: boolean;
|
|
1147
|
+
planBasic?: boolean;
|
|
1148
|
+
member?: boolean;
|
|
1149
|
+
personalSubscriptionActive?: boolean;
|
|
1150
|
+
organizationSubscriptionActive?: boolean;
|
|
1151
|
+
validProfile?: boolean;
|
|
1152
|
+
validAndActivated?: boolean;
|
|
1153
|
+
deleted?: boolean;
|
|
1154
|
+
displayName?: string;
|
|
1155
|
+
initials?: string;
|
|
1156
|
+
createdAt?: string;
|
|
1104
1157
|
}
|
|
1105
1158
|
interface ProfileUpdateRequest {
|
|
1106
1159
|
email?: string;
|
|
1107
1160
|
imageUrl?: string;
|
|
1108
1161
|
firstname?: string;
|
|
1109
1162
|
lastname?: string;
|
|
1163
|
+
newsletter?: boolean;
|
|
1110
1164
|
}
|
|
1111
1165
|
|
|
1112
1166
|
interface ResourceConfig {
|
package/dist/index.d.ts
CHANGED
|
@@ -136,6 +136,15 @@ interface Team {
|
|
|
136
136
|
image?: string;
|
|
137
137
|
color?: number;
|
|
138
138
|
projectSalaryVisibility?: number;
|
|
139
|
+
permission?: {
|
|
140
|
+
role: string;
|
|
141
|
+
managerOrOwner: boolean;
|
|
142
|
+
member: boolean;
|
|
143
|
+
manager: boolean;
|
|
144
|
+
owner: boolean;
|
|
145
|
+
};
|
|
146
|
+
projects: number;
|
|
147
|
+
members: number;
|
|
139
148
|
created?: number;
|
|
140
149
|
lastUpdate?: number;
|
|
141
150
|
}
|
|
@@ -1083,30 +1092,75 @@ interface AutomationListParams extends ListParams {
|
|
|
1083
1092
|
|
|
1084
1093
|
interface Settings {
|
|
1085
1094
|
theme?: 'light' | 'dark' | 'system';
|
|
1086
|
-
timezone?: string;
|
|
1087
1095
|
language?: string;
|
|
1096
|
+
timezone?: string;
|
|
1088
1097
|
currency?: string;
|
|
1098
|
+
distance?: string;
|
|
1089
1099
|
dateFormat?: string;
|
|
1090
|
-
timeFormat?:
|
|
1100
|
+
timeFormat?: string;
|
|
1101
|
+
durationFormat?: string;
|
|
1102
|
+
csvSeparator?: string;
|
|
1103
|
+
slotDuration?: number;
|
|
1104
|
+
snapDuration?: number;
|
|
1105
|
+
entriesPerPage?: number;
|
|
1091
1106
|
firstDay?: number;
|
|
1107
|
+
defaultTaskDuration?: number;
|
|
1108
|
+
defaultBreakDuration?: number;
|
|
1109
|
+
showRelatives?: boolean;
|
|
1110
|
+
weeklySummary?: boolean;
|
|
1111
|
+
monthlySummary?: boolean;
|
|
1112
|
+
lastUpdate?: number;
|
|
1092
1113
|
timerRounding?: number;
|
|
1093
|
-
timerRoundingType?:
|
|
1114
|
+
timerRoundingType?: number;
|
|
1115
|
+
timerEditView?: boolean;
|
|
1094
1116
|
pauseRounding?: number;
|
|
1117
|
+
pauseRoundingType?: number;
|
|
1118
|
+
pauseEditView?: boolean;
|
|
1119
|
+
autofillProjectSelection?: boolean;
|
|
1095
1120
|
}
|
|
1096
1121
|
interface SettingsUpdateRequest extends Settings {
|
|
1097
1122
|
}
|
|
1098
1123
|
|
|
1099
1124
|
interface Profile {
|
|
1125
|
+
permission?: number;
|
|
1100
1126
|
email?: string;
|
|
1101
1127
|
imageUrl?: string;
|
|
1102
1128
|
firstname?: string;
|
|
1103
1129
|
lastname?: string;
|
|
1130
|
+
newsletter?: boolean;
|
|
1131
|
+
activatedTeams?: boolean;
|
|
1132
|
+
activated?: boolean;
|
|
1133
|
+
needsSetup?: boolean;
|
|
1134
|
+
user?: string;
|
|
1135
|
+
lastUpdate?: number;
|
|
1136
|
+
subscriptionId?: string;
|
|
1137
|
+
expires?: number;
|
|
1138
|
+
status?: number;
|
|
1139
|
+
plan?: number;
|
|
1140
|
+
valid?: boolean;
|
|
1141
|
+
expired?: boolean;
|
|
1142
|
+
product?: string;
|
|
1143
|
+
trial?: boolean;
|
|
1144
|
+
planBusiness?: boolean;
|
|
1145
|
+
planPro?: boolean;
|
|
1146
|
+
planPlus?: boolean;
|
|
1147
|
+
planBasic?: boolean;
|
|
1148
|
+
member?: boolean;
|
|
1149
|
+
personalSubscriptionActive?: boolean;
|
|
1150
|
+
organizationSubscriptionActive?: boolean;
|
|
1151
|
+
validProfile?: boolean;
|
|
1152
|
+
validAndActivated?: boolean;
|
|
1153
|
+
deleted?: boolean;
|
|
1154
|
+
displayName?: string;
|
|
1155
|
+
initials?: string;
|
|
1156
|
+
createdAt?: string;
|
|
1104
1157
|
}
|
|
1105
1158
|
interface ProfileUpdateRequest {
|
|
1106
1159
|
email?: string;
|
|
1107
1160
|
imageUrl?: string;
|
|
1108
1161
|
firstname?: string;
|
|
1109
1162
|
lastname?: string;
|
|
1163
|
+
newsletter?: boolean;
|
|
1110
1164
|
}
|
|
1111
1165
|
|
|
1112
1166
|
interface ResourceConfig {
|