tuix-timesheets-api 0.6.76 → 0.6.77
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/.openapi-generator/FILES +0 -3
- package/apis/TuixTimesheetsClientApi.js +0 -305
- package/apis/TuixTimesheetsClientApi.js.map +1 -1
- package/apis/TuixTimesheetsClientApi.ts +0 -431
- package/models/index.js +0 -3
- package/models/index.js.map +1 -1
- package/models/index.ts +0 -3
- package/package.json +1 -1
- package/models/CompanyDTO.js +0 -85
- package/models/CompanyDTO.js.map +0 -1
- package/models/CompanyDTO.ts +0 -201
- package/models/EmployeeDTO.js +0 -95
- package/models/EmployeeDTO.js.map +0 -1
- package/models/EmployeeDTO.ts +0 -241
- package/models/PaginatedEmployees.js +0 -64
- package/models/PaginatedEmployees.js.map +0 -1
- package/models/PaginatedEmployees.ts +0 -109
|
@@ -19,10 +19,8 @@ import type {
|
|
|
19
19
|
AdjustedTimesheetEntryDTO,
|
|
20
20
|
AdjustedTimesheetUpadateEntryDTO,
|
|
21
21
|
ClientDTO,
|
|
22
|
-
CompanyDTO,
|
|
23
22
|
CreateSubscriptionDTO,
|
|
24
23
|
EmailTemplates,
|
|
25
|
-
EmployeeDTO,
|
|
26
24
|
ErrorDTO,
|
|
27
25
|
GlobalTimesheetDTO,
|
|
28
26
|
GlobalTimesheetEntryDTO,
|
|
@@ -30,7 +28,6 @@ import type {
|
|
|
30
28
|
PaginatedAdjustedTimesheets,
|
|
31
29
|
PaginatedClients,
|
|
32
30
|
PaginatedEmployeeProjects,
|
|
33
|
-
PaginatedEmployees,
|
|
34
31
|
PaginatedGlobalTimesheets,
|
|
35
32
|
PaginatedProjects,
|
|
36
33
|
PaginatedTimesheets,
|
|
@@ -58,14 +55,10 @@ import {
|
|
|
58
55
|
AdjustedTimesheetUpadateEntryDTOToJSON,
|
|
59
56
|
ClientDTOFromJSON,
|
|
60
57
|
ClientDTOToJSON,
|
|
61
|
-
CompanyDTOFromJSON,
|
|
62
|
-
CompanyDTOToJSON,
|
|
63
58
|
CreateSubscriptionDTOFromJSON,
|
|
64
59
|
CreateSubscriptionDTOToJSON,
|
|
65
60
|
EmailTemplatesFromJSON,
|
|
66
61
|
EmailTemplatesToJSON,
|
|
67
|
-
EmployeeDTOFromJSON,
|
|
68
|
-
EmployeeDTOToJSON,
|
|
69
62
|
ErrorDTOFromJSON,
|
|
70
63
|
ErrorDTOToJSON,
|
|
71
64
|
GlobalTimesheetDTOFromJSON,
|
|
@@ -80,8 +73,6 @@ import {
|
|
|
80
73
|
PaginatedClientsToJSON,
|
|
81
74
|
PaginatedEmployeeProjectsFromJSON,
|
|
82
75
|
PaginatedEmployeeProjectsToJSON,
|
|
83
|
-
PaginatedEmployeesFromJSON,
|
|
84
|
-
PaginatedEmployeesToJSON,
|
|
85
76
|
PaginatedGlobalTimesheetsFromJSON,
|
|
86
77
|
PaginatedGlobalTimesheetsToJSON,
|
|
87
78
|
PaginatedProjectsFromJSON,
|
|
@@ -137,10 +128,6 @@ export interface CreateClientRequest {
|
|
|
137
128
|
clientDTO: ClientDTO;
|
|
138
129
|
}
|
|
139
130
|
|
|
140
|
-
export interface CreateCompanyRequest {
|
|
141
|
-
companyDTO: CompanyDTO;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
131
|
export interface CreateProjectRequest {
|
|
145
132
|
projectInputDTO: ProjectInputDTO;
|
|
146
133
|
}
|
|
@@ -157,14 +144,6 @@ export interface DeleteClientRequest {
|
|
|
157
144
|
clientId: string;
|
|
158
145
|
}
|
|
159
146
|
|
|
160
|
-
export interface DeleteCompanyRequest {
|
|
161
|
-
companyId: string;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
export interface DeleteEmployeeRequest {
|
|
165
|
-
employeeId: string;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
147
|
export interface DeleteProjectRequest {
|
|
169
148
|
projectId: string;
|
|
170
149
|
}
|
|
@@ -192,10 +171,6 @@ export interface DownloadTimesheetPdfRequest {
|
|
|
192
171
|
timesheetId: string;
|
|
193
172
|
}
|
|
194
173
|
|
|
195
|
-
export interface EmployeesEmployeeIdGetRequest {
|
|
196
|
-
employeeId: string;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
174
|
export interface GetAdjustedTimesheetRequest {
|
|
200
175
|
projectId: string;
|
|
201
176
|
timesheetId: string;
|
|
@@ -216,22 +191,12 @@ export interface GetClientsRequest {
|
|
|
216
191
|
pageSize?: number;
|
|
217
192
|
}
|
|
218
193
|
|
|
219
|
-
export interface GetCompanyRequest {
|
|
220
|
-
companyId: string;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
194
|
export interface GetEmployeeTimesheetsRequest {
|
|
224
195
|
projectId: string;
|
|
225
196
|
page?: number;
|
|
226
197
|
pageSize?: number;
|
|
227
198
|
}
|
|
228
199
|
|
|
229
|
-
export interface GetEmployeesRequest {
|
|
230
|
-
page?: number;
|
|
231
|
-
pageSize?: number;
|
|
232
|
-
activated?: boolean;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
200
|
export interface GetGlobalTimesheetRequest {
|
|
236
201
|
projectId: string;
|
|
237
202
|
timesheetId: string;
|
|
@@ -286,10 +251,6 @@ export interface GetTimesheetsRequest {
|
|
|
286
251
|
pageSize?: number;
|
|
287
252
|
}
|
|
288
253
|
|
|
289
|
-
export interface InviteEmployeeRequest {
|
|
290
|
-
employeeDTO: EmployeeDTO;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
254
|
export interface SdkTestRequest {
|
|
294
255
|
sDKTestRequestDTO: SDKTestRequestDTO;
|
|
295
256
|
}
|
|
@@ -325,16 +286,6 @@ export interface UpdateClientRequest {
|
|
|
325
286
|
clientDTO: ClientDTO;
|
|
326
287
|
}
|
|
327
288
|
|
|
328
|
-
export interface UpdateCompanyRequest {
|
|
329
|
-
companyId: string;
|
|
330
|
-
companyDTO: CompanyDTO;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
export interface UpdateEmployeeDataRequest {
|
|
334
|
-
employeeId: string;
|
|
335
|
-
employeeDTO: EmployeeDTO;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
289
|
export interface UpdateGlobalTimesheetEntryRequest {
|
|
339
290
|
projectId: string;
|
|
340
291
|
timesheetId: string;
|
|
@@ -533,45 +484,6 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
533
484
|
return await response.value();
|
|
534
485
|
}
|
|
535
486
|
|
|
536
|
-
/**
|
|
537
|
-
* Create a company
|
|
538
|
-
* Creates a new company
|
|
539
|
-
*/
|
|
540
|
-
async createCompanyRaw(requestParameters: CreateCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompanyDTO>> {
|
|
541
|
-
if (requestParameters.companyDTO === null || requestParameters.companyDTO === undefined) {
|
|
542
|
-
throw new runtime.RequiredError('companyDTO','Required parameter requestParameters.companyDTO was null or undefined when calling createCompany.');
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
const queryParameters: any = {};
|
|
546
|
-
|
|
547
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
548
|
-
|
|
549
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
550
|
-
|
|
551
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
552
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
const response = await this.request({
|
|
556
|
-
path: `/companies`,
|
|
557
|
-
method: 'POST',
|
|
558
|
-
headers: headerParameters,
|
|
559
|
-
query: queryParameters,
|
|
560
|
-
body: CompanyDTOToJSON(requestParameters.companyDTO),
|
|
561
|
-
}, initOverrides);
|
|
562
|
-
|
|
563
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => CompanyDTOFromJSON(jsonValue));
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* Create a company
|
|
568
|
-
* Creates a new company
|
|
569
|
-
*/
|
|
570
|
-
async createCompany(requestParameters: CreateCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompanyDTO> {
|
|
571
|
-
const response = await this.createCompanyRaw(requestParameters, initOverrides);
|
|
572
|
-
return await response.value();
|
|
573
|
-
}
|
|
574
|
-
|
|
575
487
|
/**
|
|
576
488
|
* Create a project
|
|
577
489
|
* Creates a new project
|
|
@@ -710,76 +622,6 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
710
622
|
await this.deleteClientRaw(requestParameters, initOverrides);
|
|
711
623
|
}
|
|
712
624
|
|
|
713
|
-
/**
|
|
714
|
-
* Delete a company
|
|
715
|
-
* delete a company
|
|
716
|
-
*/
|
|
717
|
-
async deleteCompanyRaw(requestParameters: DeleteCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
718
|
-
if (requestParameters.companyId === null || requestParameters.companyId === undefined) {
|
|
719
|
-
throw new runtime.RequiredError('companyId','Required parameter requestParameters.companyId was null or undefined when calling deleteCompany.');
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
const queryParameters: any = {};
|
|
723
|
-
|
|
724
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
725
|
-
|
|
726
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
727
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
const response = await this.request({
|
|
731
|
-
path: `/companies/{companyId}`.replace(`{${"companyId"}}`, encodeURIComponent(String(requestParameters.companyId))),
|
|
732
|
-
method: 'DELETE',
|
|
733
|
-
headers: headerParameters,
|
|
734
|
-
query: queryParameters,
|
|
735
|
-
}, initOverrides);
|
|
736
|
-
|
|
737
|
-
return new runtime.VoidApiResponse(response);
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
/**
|
|
741
|
-
* Delete a company
|
|
742
|
-
* delete a company
|
|
743
|
-
*/
|
|
744
|
-
async deleteCompany(requestParameters: DeleteCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
745
|
-
await this.deleteCompanyRaw(requestParameters, initOverrides);
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* Delete an employee
|
|
750
|
-
* Delete an employee
|
|
751
|
-
*/
|
|
752
|
-
async deleteEmployeeRaw(requestParameters: DeleteEmployeeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
753
|
-
if (requestParameters.employeeId === null || requestParameters.employeeId === undefined) {
|
|
754
|
-
throw new runtime.RequiredError('employeeId','Required parameter requestParameters.employeeId was null or undefined when calling deleteEmployee.');
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
const queryParameters: any = {};
|
|
758
|
-
|
|
759
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
760
|
-
|
|
761
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
762
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
const response = await this.request({
|
|
766
|
-
path: `/employees/{employeeId}`.replace(`{${"employeeId"}}`, encodeURIComponent(String(requestParameters.employeeId))),
|
|
767
|
-
method: 'DELETE',
|
|
768
|
-
headers: headerParameters,
|
|
769
|
-
query: queryParameters,
|
|
770
|
-
}, initOverrides);
|
|
771
|
-
|
|
772
|
-
return new runtime.VoidApiResponse(response);
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
/**
|
|
776
|
-
* Delete an employee
|
|
777
|
-
* Delete an employee
|
|
778
|
-
*/
|
|
779
|
-
async deleteEmployee(requestParameters: DeleteEmployeeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
780
|
-
await this.deleteEmployeeRaw(requestParameters, initOverrides);
|
|
781
|
-
}
|
|
782
|
-
|
|
783
625
|
/**
|
|
784
626
|
* Delete a project
|
|
785
627
|
* delete a project
|
|
@@ -1005,42 +847,6 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1005
847
|
return await response.value();
|
|
1006
848
|
}
|
|
1007
849
|
|
|
1008
|
-
/**
|
|
1009
|
-
* Get employee info
|
|
1010
|
-
* Get employee info
|
|
1011
|
-
*/
|
|
1012
|
-
async employeesEmployeeIdGetRaw(requestParameters: EmployeesEmployeeIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmployeeDTO>> {
|
|
1013
|
-
if (requestParameters.employeeId === null || requestParameters.employeeId === undefined) {
|
|
1014
|
-
throw new runtime.RequiredError('employeeId','Required parameter requestParameters.employeeId was null or undefined when calling employeesEmployeeIdGet.');
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
const queryParameters: any = {};
|
|
1018
|
-
|
|
1019
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1020
|
-
|
|
1021
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1022
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
const response = await this.request({
|
|
1026
|
-
path: `/employees/{employeeId}`.replace(`{${"employeeId"}}`, encodeURIComponent(String(requestParameters.employeeId))),
|
|
1027
|
-
method: 'GET',
|
|
1028
|
-
headers: headerParameters,
|
|
1029
|
-
query: queryParameters,
|
|
1030
|
-
}, initOverrides);
|
|
1031
|
-
|
|
1032
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => EmployeeDTOFromJSON(jsonValue));
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
/**
|
|
1036
|
-
* Get employee info
|
|
1037
|
-
* Get employee info
|
|
1038
|
-
*/
|
|
1039
|
-
async employeesEmployeeIdGet(requestParameters: EmployeesEmployeeIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmployeeDTO> {
|
|
1040
|
-
const response = await this.employeesEmployeeIdGetRaw(requestParameters, initOverrides);
|
|
1041
|
-
return await response.value();
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
850
|
/**
|
|
1045
851
|
* Get an adjustedTimesheet
|
|
1046
852
|
* Get an adjustedTimesheet
|
|
@@ -1197,74 +1003,6 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1197
1003
|
return await response.value();
|
|
1198
1004
|
}
|
|
1199
1005
|
|
|
1200
|
-
/**
|
|
1201
|
-
* Get all companies a user belongs to
|
|
1202
|
-
* Get all companies a user belongs to
|
|
1203
|
-
*/
|
|
1204
|
-
async getCompaniesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CompanyDTO>>> {
|
|
1205
|
-
const queryParameters: any = {};
|
|
1206
|
-
|
|
1207
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1208
|
-
|
|
1209
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1210
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
const response = await this.request({
|
|
1214
|
-
path: `/companies`,
|
|
1215
|
-
method: 'GET',
|
|
1216
|
-
headers: headerParameters,
|
|
1217
|
-
query: queryParameters,
|
|
1218
|
-
}, initOverrides);
|
|
1219
|
-
|
|
1220
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CompanyDTOFromJSON));
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
/**
|
|
1224
|
-
* Get all companies a user belongs to
|
|
1225
|
-
* Get all companies a user belongs to
|
|
1226
|
-
*/
|
|
1227
|
-
async getCompanies(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CompanyDTO>> {
|
|
1228
|
-
const response = await this.getCompaniesRaw(initOverrides);
|
|
1229
|
-
return await response.value();
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
/**
|
|
1233
|
-
* Get a company
|
|
1234
|
-
* Get a company by ID
|
|
1235
|
-
*/
|
|
1236
|
-
async getCompanyRaw(requestParameters: GetCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompanyDTO>> {
|
|
1237
|
-
if (requestParameters.companyId === null || requestParameters.companyId === undefined) {
|
|
1238
|
-
throw new runtime.RequiredError('companyId','Required parameter requestParameters.companyId was null or undefined when calling getCompany.');
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
const queryParameters: any = {};
|
|
1242
|
-
|
|
1243
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1244
|
-
|
|
1245
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1246
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
const response = await this.request({
|
|
1250
|
-
path: `/companies/{companyId}`.replace(`{${"companyId"}}`, encodeURIComponent(String(requestParameters.companyId))),
|
|
1251
|
-
method: 'GET',
|
|
1252
|
-
headers: headerParameters,
|
|
1253
|
-
query: queryParameters,
|
|
1254
|
-
}, initOverrides);
|
|
1255
|
-
|
|
1256
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => CompanyDTOFromJSON(jsonValue));
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
/**
|
|
1260
|
-
* Get a company
|
|
1261
|
-
* Get a company by ID
|
|
1262
|
-
*/
|
|
1263
|
-
async getCompany(requestParameters: GetCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompanyDTO> {
|
|
1264
|
-
const response = await this.getCompanyRaw(requestParameters, initOverrides);
|
|
1265
|
-
return await response.value();
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
1006
|
/**
|
|
1269
1007
|
* Get all timesheets of an employee in a project
|
|
1270
1008
|
* Get all timesheets of an employee in a project
|
|
@@ -1309,50 +1047,6 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1309
1047
|
return await response.value();
|
|
1310
1048
|
}
|
|
1311
1049
|
|
|
1312
|
-
/**
|
|
1313
|
-
* List employees
|
|
1314
|
-
* List employees
|
|
1315
|
-
*/
|
|
1316
|
-
async getEmployeesRaw(requestParameters: GetEmployeesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedEmployees>> {
|
|
1317
|
-
const queryParameters: any = {};
|
|
1318
|
-
|
|
1319
|
-
if (requestParameters.page !== undefined) {
|
|
1320
|
-
queryParameters['page'] = requestParameters.page;
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
if (requestParameters.pageSize !== undefined) {
|
|
1324
|
-
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
if (requestParameters.activated !== undefined) {
|
|
1328
|
-
queryParameters['activated'] = requestParameters.activated;
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1332
|
-
|
|
1333
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1334
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
const response = await this.request({
|
|
1338
|
-
path: `/employees`,
|
|
1339
|
-
method: 'GET',
|
|
1340
|
-
headers: headerParameters,
|
|
1341
|
-
query: queryParameters,
|
|
1342
|
-
}, initOverrides);
|
|
1343
|
-
|
|
1344
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedEmployeesFromJSON(jsonValue));
|
|
1345
|
-
}
|
|
1346
|
-
|
|
1347
|
-
/**
|
|
1348
|
-
* List employees
|
|
1349
|
-
* List employees
|
|
1350
|
-
*/
|
|
1351
|
-
async getEmployees(requestParameters: GetEmployeesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedEmployees> {
|
|
1352
|
-
const response = await this.getEmployeesRaw(requestParameters, initOverrides);
|
|
1353
|
-
return await response.value();
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
1050
|
/**
|
|
1357
1051
|
* Get a global timesheet
|
|
1358
1052
|
* Get a global timesheet
|
|
@@ -1903,45 +1597,6 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1903
1597
|
return await response.value();
|
|
1904
1598
|
}
|
|
1905
1599
|
|
|
1906
|
-
/**
|
|
1907
|
-
* Invite an employee to a company
|
|
1908
|
-
* Invite an employee to a company
|
|
1909
|
-
*/
|
|
1910
|
-
async inviteEmployeeRaw(requestParameters: InviteEmployeeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmployeeDTO>> {
|
|
1911
|
-
if (requestParameters.employeeDTO === null || requestParameters.employeeDTO === undefined) {
|
|
1912
|
-
throw new runtime.RequiredError('employeeDTO','Required parameter requestParameters.employeeDTO was null or undefined when calling inviteEmployee.');
|
|
1913
|
-
}
|
|
1914
|
-
|
|
1915
|
-
const queryParameters: any = {};
|
|
1916
|
-
|
|
1917
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1918
|
-
|
|
1919
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1920
|
-
|
|
1921
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1922
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1923
|
-
}
|
|
1924
|
-
|
|
1925
|
-
const response = await this.request({
|
|
1926
|
-
path: `/employees/invite`,
|
|
1927
|
-
method: 'POST',
|
|
1928
|
-
headers: headerParameters,
|
|
1929
|
-
query: queryParameters,
|
|
1930
|
-
body: EmployeeDTOToJSON(requestParameters.employeeDTO),
|
|
1931
|
-
}, initOverrides);
|
|
1932
|
-
|
|
1933
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => EmployeeDTOFromJSON(jsonValue));
|
|
1934
|
-
}
|
|
1935
|
-
|
|
1936
|
-
/**
|
|
1937
|
-
* Invite an employee to a company
|
|
1938
|
-
* Invite an employee to a company
|
|
1939
|
-
*/
|
|
1940
|
-
async inviteEmployee(requestParameters: InviteEmployeeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmployeeDTO> {
|
|
1941
|
-
const response = await this.inviteEmployeeRaw(requestParameters, initOverrides);
|
|
1942
|
-
return await response.value();
|
|
1943
|
-
}
|
|
1944
|
-
|
|
1945
1600
|
/**
|
|
1946
1601
|
*
|
|
1947
1602
|
*/
|
|
@@ -2225,92 +1880,6 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2225
1880
|
return await response.value();
|
|
2226
1881
|
}
|
|
2227
1882
|
|
|
2228
|
-
/**
|
|
2229
|
-
* Update a company
|
|
2230
|
-
* Update a company by ID
|
|
2231
|
-
*/
|
|
2232
|
-
async updateCompanyRaw(requestParameters: UpdateCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompanyDTO>> {
|
|
2233
|
-
if (requestParameters.companyId === null || requestParameters.companyId === undefined) {
|
|
2234
|
-
throw new runtime.RequiredError('companyId','Required parameter requestParameters.companyId was null or undefined when calling updateCompany.');
|
|
2235
|
-
}
|
|
2236
|
-
|
|
2237
|
-
if (requestParameters.companyDTO === null || requestParameters.companyDTO === undefined) {
|
|
2238
|
-
throw new runtime.RequiredError('companyDTO','Required parameter requestParameters.companyDTO was null or undefined when calling updateCompany.');
|
|
2239
|
-
}
|
|
2240
|
-
|
|
2241
|
-
const queryParameters: any = {};
|
|
2242
|
-
|
|
2243
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2244
|
-
|
|
2245
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2246
|
-
|
|
2247
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2248
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
2249
|
-
}
|
|
2250
|
-
|
|
2251
|
-
const response = await this.request({
|
|
2252
|
-
path: `/companies/{companyId}`.replace(`{${"companyId"}}`, encodeURIComponent(String(requestParameters.companyId))),
|
|
2253
|
-
method: 'PATCH',
|
|
2254
|
-
headers: headerParameters,
|
|
2255
|
-
query: queryParameters,
|
|
2256
|
-
body: CompanyDTOToJSON(requestParameters.companyDTO),
|
|
2257
|
-
}, initOverrides);
|
|
2258
|
-
|
|
2259
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => CompanyDTOFromJSON(jsonValue));
|
|
2260
|
-
}
|
|
2261
|
-
|
|
2262
|
-
/**
|
|
2263
|
-
* Update a company
|
|
2264
|
-
* Update a company by ID
|
|
2265
|
-
*/
|
|
2266
|
-
async updateCompany(requestParameters: UpdateCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompanyDTO> {
|
|
2267
|
-
const response = await this.updateCompanyRaw(requestParameters, initOverrides);
|
|
2268
|
-
return await response.value();
|
|
2269
|
-
}
|
|
2270
|
-
|
|
2271
|
-
/**
|
|
2272
|
-
* Update an employee
|
|
2273
|
-
* Update an employee
|
|
2274
|
-
*/
|
|
2275
|
-
async updateEmployeeDataRaw(requestParameters: UpdateEmployeeDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmployeeDTO>> {
|
|
2276
|
-
if (requestParameters.employeeId === null || requestParameters.employeeId === undefined) {
|
|
2277
|
-
throw new runtime.RequiredError('employeeId','Required parameter requestParameters.employeeId was null or undefined when calling updateEmployeeData.');
|
|
2278
|
-
}
|
|
2279
|
-
|
|
2280
|
-
if (requestParameters.employeeDTO === null || requestParameters.employeeDTO === undefined) {
|
|
2281
|
-
throw new runtime.RequiredError('employeeDTO','Required parameter requestParameters.employeeDTO was null or undefined when calling updateEmployeeData.');
|
|
2282
|
-
}
|
|
2283
|
-
|
|
2284
|
-
const queryParameters: any = {};
|
|
2285
|
-
|
|
2286
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2287
|
-
|
|
2288
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2289
|
-
|
|
2290
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2291
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
2292
|
-
}
|
|
2293
|
-
|
|
2294
|
-
const response = await this.request({
|
|
2295
|
-
path: `/employees/{employeeId}`.replace(`{${"employeeId"}}`, encodeURIComponent(String(requestParameters.employeeId))),
|
|
2296
|
-
method: 'PATCH',
|
|
2297
|
-
headers: headerParameters,
|
|
2298
|
-
query: queryParameters,
|
|
2299
|
-
body: EmployeeDTOToJSON(requestParameters.employeeDTO),
|
|
2300
|
-
}, initOverrides);
|
|
2301
|
-
|
|
2302
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => EmployeeDTOFromJSON(jsonValue));
|
|
2303
|
-
}
|
|
2304
|
-
|
|
2305
|
-
/**
|
|
2306
|
-
* Update an employee
|
|
2307
|
-
* Update an employee
|
|
2308
|
-
*/
|
|
2309
|
-
async updateEmployeeData(requestParameters: UpdateEmployeeDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmployeeDTO> {
|
|
2310
|
-
const response = await this.updateEmployeeDataRaw(requestParameters, initOverrides);
|
|
2311
|
-
return await response.value();
|
|
2312
|
-
}
|
|
2313
|
-
|
|
2314
1883
|
/**
|
|
2315
1884
|
* Update a global timesheet entry
|
|
2316
1885
|
* Update a global timesheet entry
|
package/models/index.js
CHANGED
|
@@ -20,10 +20,8 @@ __exportStar(require("./AdjustedTimesheetDTO"), exports);
|
|
|
20
20
|
__exportStar(require("./AdjustedTimesheetEntryDTO"), exports);
|
|
21
21
|
__exportStar(require("./AdjustedTimesheetUpadateEntryDTO"), exports);
|
|
22
22
|
__exportStar(require("./ClientDTO"), exports);
|
|
23
|
-
__exportStar(require("./CompanyDTO"), exports);
|
|
24
23
|
__exportStar(require("./CreateSubscriptionDTO"), exports);
|
|
25
24
|
__exportStar(require("./EmailTemplates"), exports);
|
|
26
|
-
__exportStar(require("./EmployeeDTO"), exports);
|
|
27
25
|
__exportStar(require("./EmployeeProjectDTO"), exports);
|
|
28
26
|
__exportStar(require("./ErrorDTO"), exports);
|
|
29
27
|
__exportStar(require("./GlobalTimesheetDTO"), exports);
|
|
@@ -32,7 +30,6 @@ __exportStar(require("./GlobalTimesheetEntryUpdateDTO"), exports);
|
|
|
32
30
|
__exportStar(require("./PaginatedAdjustedTimesheets"), exports);
|
|
33
31
|
__exportStar(require("./PaginatedClients"), exports);
|
|
34
32
|
__exportStar(require("./PaginatedEmployeeProjects"), exports);
|
|
35
|
-
__exportStar(require("./PaginatedEmployees"), exports);
|
|
36
33
|
__exportStar(require("./PaginatedGlobalTimesheets"), exports);
|
|
37
34
|
__exportStar(require("./PaginatedProjects"), exports);
|
|
38
35
|
__exportStar(require("./PaginatedTimesheets"), exports);
|
package/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,yDAAuC;AACvC,8DAA4C;AAC5C,qEAAmD;AACnD,8CAA4B;AAC5B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,yDAAuC;AACvC,8DAA4C;AAC5C,qEAAmD;AACnD,8CAA4B;AAC5B,0DAAwC;AACxC,mDAAiC;AACjC,uDAAqC;AACrC,6CAA2B;AAC3B,uDAAqC;AACrC,4DAA0C;AAC1C,kEAAgD;AAChD,gEAA8C;AAC9C,qDAAmC;AACnC,8DAA4C;AAC5C,8DAA4C;AAC5C,sDAAoC;AACpC,wDAAsC;AACtC,mDAAiC;AACjC,mDAAiC;AACjC,+CAA6B;AAC7B,oDAAkC;AAClC,qDAAmC;AACnC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,iDAA+B;AAC/B,wDAAsC;AACtC,iEAA+C;AAC/C,kDAAgC;AAChC,iDAA+B;AAC/B,sDAAoC;AACpC,4DAA0C;AAC1C,8CAA4B;AAC5B,kDAAgC"}
|
package/models/index.ts
CHANGED
|
@@ -4,10 +4,8 @@ export * from './AdjustedTimesheetDTO';
|
|
|
4
4
|
export * from './AdjustedTimesheetEntryDTO';
|
|
5
5
|
export * from './AdjustedTimesheetUpadateEntryDTO';
|
|
6
6
|
export * from './ClientDTO';
|
|
7
|
-
export * from './CompanyDTO';
|
|
8
7
|
export * from './CreateSubscriptionDTO';
|
|
9
8
|
export * from './EmailTemplates';
|
|
10
|
-
export * from './EmployeeDTO';
|
|
11
9
|
export * from './EmployeeProjectDTO';
|
|
12
10
|
export * from './ErrorDTO';
|
|
13
11
|
export * from './GlobalTimesheetDTO';
|
|
@@ -16,7 +14,6 @@ export * from './GlobalTimesheetEntryUpdateDTO';
|
|
|
16
14
|
export * from './PaginatedAdjustedTimesheets';
|
|
17
15
|
export * from './PaginatedClients';
|
|
18
16
|
export * from './PaginatedEmployeeProjects';
|
|
19
|
-
export * from './PaginatedEmployees';
|
|
20
17
|
export * from './PaginatedGlobalTimesheets';
|
|
21
18
|
export * from './PaginatedProjects';
|
|
22
19
|
export * from './PaginatedTimesheets';
|