tuix-projects-service-client 0.0.21 → 0.0.22

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/apis/ClientApi.ts CHANGED
@@ -58,6 +58,21 @@ import {
58
58
  ClientJiraUserDTOFromJSON,
59
59
  ClientJiraUserDTOToJSON,
60
60
  } from '../models/ClientJiraUserDTO';
61
+ import {
62
+ type ClientSlackUserAccountDTO,
63
+ ClientSlackUserAccountDTOFromJSON,
64
+ ClientSlackUserAccountDTOToJSON,
65
+ } from '../models/ClientSlackUserAccountDTO';
66
+ import {
67
+ type ClientSlackUserDTO,
68
+ ClientSlackUserDTOFromJSON,
69
+ ClientSlackUserDTOToJSON,
70
+ } from '../models/ClientSlackUserDTO';
71
+ import {
72
+ type ClientUpdateSlackUserDTO,
73
+ ClientUpdateSlackUserDTOFromJSON,
74
+ ClientUpdateSlackUserDTOToJSON,
75
+ } from '../models/ClientUpdateSlackUserDTO';
61
76
  import {
62
77
  type CompanyDTO,
63
78
  CompanyDTOFromJSON,
@@ -83,6 +98,11 @@ import {
83
98
  CreateJiraUserRequestDTOFromJSON,
84
99
  CreateJiraUserRequestDTOToJSON,
85
100
  } from '../models/CreateJiraUserRequestDTO';
101
+ import {
102
+ type CreateSlackUserRequestDTO,
103
+ CreateSlackUserRequestDTOFromJSON,
104
+ CreateSlackUserRequestDTOToJSON,
105
+ } from '../models/CreateSlackUserRequestDTO';
86
106
  import {
87
107
  type EmployeeDTO,
88
108
  EmployeeDTOFromJSON,
@@ -284,6 +304,10 @@ export interface CreateProjectRequest {
284
304
  projectInputDTO: ProjectInputDTO;
285
305
  }
286
306
 
307
+ export interface CreateSlackUserRequest {
308
+ createSlackUserRequestDTO: CreateSlackUserRequestDTO;
309
+ }
310
+
287
311
  export interface DeleteClientRequest {
288
312
  clientId: string;
289
313
  }
@@ -538,6 +562,10 @@ export interface UpdateProjectRequest {
538
562
  projectUpdateDTO: ProjectUpdateDTO;
539
563
  }
540
564
 
565
+ export interface UpdateSlackUserRequest {
566
+ clientUpdateSlackUserDTO: ClientUpdateSlackUserDTO;
567
+ }
568
+
541
569
  export interface UpdateTeamRequest {
542
570
  projectId: string;
543
571
  teamUpdateDTO: TeamUpdateDTO;
@@ -1233,6 +1261,59 @@ export class ClientApi extends runtime.BaseAPI {
1233
1261
  return await response.value();
1234
1262
  }
1235
1263
 
1264
+ /**
1265
+ * Creates request options for createSlackUser without sending the request
1266
+ */
1267
+ async createSlackUserRequestOpts(requestParameters: CreateSlackUserRequest): Promise<runtime.RequestOpts> {
1268
+ if (requestParameters['createSlackUserRequestDTO'] == null) {
1269
+ throw new runtime.RequiredError(
1270
+ 'createSlackUserRequestDTO',
1271
+ 'Required parameter "createSlackUserRequestDTO" was null or undefined when calling createSlackUser().'
1272
+ );
1273
+ }
1274
+
1275
+ const queryParameters: any = {};
1276
+
1277
+ const headerParameters: runtime.HTTPHeaders = {};
1278
+
1279
+ headerParameters['Content-Type'] = 'application/json';
1280
+
1281
+ if (this.configuration && this.configuration.apiKey) {
1282
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
1283
+ }
1284
+
1285
+
1286
+ let urlPath = `/slackbot-users`;
1287
+
1288
+ return {
1289
+ path: urlPath,
1290
+ method: 'POST',
1291
+ headers: headerParameters,
1292
+ query: queryParameters,
1293
+ body: CreateSlackUserRequestDTOToJSON(requestParameters['createSlackUserRequestDTO']),
1294
+ };
1295
+ }
1296
+
1297
+ /**
1298
+ * Create a new Slack user account for the authenticated user
1299
+ * Create Slack user
1300
+ */
1301
+ async createSlackUserRaw(requestParameters: CreateSlackUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ClientSlackUserAccountDTO>> {
1302
+ const requestOptions = await this.createSlackUserRequestOpts(requestParameters);
1303
+ const response = await this.request(requestOptions, initOverrides);
1304
+
1305
+ return new runtime.JSONApiResponse(response, (jsonValue) => ClientSlackUserAccountDTOFromJSON(jsonValue));
1306
+ }
1307
+
1308
+ /**
1309
+ * Create a new Slack user account for the authenticated user
1310
+ * Create Slack user
1311
+ */
1312
+ async createSlackUser(requestParameters: CreateSlackUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClientSlackUserAccountDTO> {
1313
+ const response = await this.createSlackUserRaw(requestParameters, initOverrides);
1314
+ return await response.value();
1315
+ }
1316
+
1236
1317
  /**
1237
1318
  * Creates request options for deleteClient without sending the request
1238
1319
  */
@@ -1583,6 +1664,48 @@ export class ClientApi extends runtime.BaseAPI {
1583
1664
  await this.deleteProjectRaw(requestParameters, initOverrides);
1584
1665
  }
1585
1666
 
1667
+ /**
1668
+ * Creates request options for deleteSlackUser without sending the request
1669
+ */
1670
+ async deleteSlackUserRequestOpts(): Promise<runtime.RequestOpts> {
1671
+ const queryParameters: any = {};
1672
+
1673
+ const headerParameters: runtime.HTTPHeaders = {};
1674
+
1675
+ if (this.configuration && this.configuration.apiKey) {
1676
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
1677
+ }
1678
+
1679
+
1680
+ let urlPath = `/slackbot-users`;
1681
+
1682
+ return {
1683
+ path: urlPath,
1684
+ method: 'DELETE',
1685
+ headers: headerParameters,
1686
+ query: queryParameters,
1687
+ };
1688
+ }
1689
+
1690
+ /**
1691
+ * Delete the authenticated user\'s Slack account
1692
+ * Delete Slack user
1693
+ */
1694
+ async deleteSlackUserRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1695
+ const requestOptions = await this.deleteSlackUserRequestOpts();
1696
+ const response = await this.request(requestOptions, initOverrides);
1697
+
1698
+ return new runtime.VoidApiResponse(response);
1699
+ }
1700
+
1701
+ /**
1702
+ * Delete the authenticated user\'s Slack account
1703
+ * Delete Slack user
1704
+ */
1705
+ async deleteSlackUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1706
+ await this.deleteSlackUserRaw(initOverrides);
1707
+ }
1708
+
1586
1709
  /**
1587
1710
  * Creates request options for downloadAdjustedTimesheetPdf without sending the request
1588
1711
  */
@@ -3294,6 +3417,49 @@ export class ClientApi extends runtime.BaseAPI {
3294
3417
  return await response.value();
3295
3418
  }
3296
3419
 
3420
+ /**
3421
+ * Creates request options for getSlackUserAccount without sending the request
3422
+ */
3423
+ async getSlackUserAccountRequestOpts(): Promise<runtime.RequestOpts> {
3424
+ const queryParameters: any = {};
3425
+
3426
+ const headerParameters: runtime.HTTPHeaders = {};
3427
+
3428
+ if (this.configuration && this.configuration.apiKey) {
3429
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
3430
+ }
3431
+
3432
+
3433
+ let urlPath = `/slackbot-users`;
3434
+
3435
+ return {
3436
+ path: urlPath,
3437
+ method: 'GET',
3438
+ headers: headerParameters,
3439
+ query: queryParameters,
3440
+ };
3441
+ }
3442
+
3443
+ /**
3444
+ * Get Slack account information for the authenticated user
3445
+ * Get Slack user account
3446
+ */
3447
+ async getSlackUserAccountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ClientSlackUserAccountDTO>> {
3448
+ const requestOptions = await this.getSlackUserAccountRequestOpts();
3449
+ const response = await this.request(requestOptions, initOverrides);
3450
+
3451
+ return new runtime.JSONApiResponse(response, (jsonValue) => ClientSlackUserAccountDTOFromJSON(jsonValue));
3452
+ }
3453
+
3454
+ /**
3455
+ * Get Slack account information for the authenticated user
3456
+ * Get Slack user account
3457
+ */
3458
+ async getSlackUserAccount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClientSlackUserAccountDTO> {
3459
+ const response = await this.getSlackUserAccountRaw(initOverrides);
3460
+ return await response.value();
3461
+ }
3462
+
3297
3463
  /**
3298
3464
  * Creates request options for getTeam without sending the request
3299
3465
  */
@@ -4230,6 +4396,59 @@ export class ClientApi extends runtime.BaseAPI {
4230
4396
  return await response.value();
4231
4397
  }
4232
4398
 
4399
+ /**
4400
+ * Creates request options for updateSlackUser without sending the request
4401
+ */
4402
+ async updateSlackUserRequestOpts(requestParameters: UpdateSlackUserRequest): Promise<runtime.RequestOpts> {
4403
+ if (requestParameters['clientUpdateSlackUserDTO'] == null) {
4404
+ throw new runtime.RequiredError(
4405
+ 'clientUpdateSlackUserDTO',
4406
+ 'Required parameter "clientUpdateSlackUserDTO" was null or undefined when calling updateSlackUser().'
4407
+ );
4408
+ }
4409
+
4410
+ const queryParameters: any = {};
4411
+
4412
+ const headerParameters: runtime.HTTPHeaders = {};
4413
+
4414
+ headerParameters['Content-Type'] = 'application/json';
4415
+
4416
+ if (this.configuration && this.configuration.apiKey) {
4417
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
4418
+ }
4419
+
4420
+
4421
+ let urlPath = `/slackbot-users`;
4422
+
4423
+ return {
4424
+ path: urlPath,
4425
+ method: 'PATCH',
4426
+ headers: headerParameters,
4427
+ query: queryParameters,
4428
+ body: ClientUpdateSlackUserDTOToJSON(requestParameters['clientUpdateSlackUserDTO']),
4429
+ };
4430
+ }
4431
+
4432
+ /**
4433
+ * Update Slack user settings for the authenticated user
4434
+ * Update Slack user
4435
+ */
4436
+ async updateSlackUserRaw(requestParameters: UpdateSlackUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ClientSlackUserDTO>> {
4437
+ const requestOptions = await this.updateSlackUserRequestOpts(requestParameters);
4438
+ const response = await this.request(requestOptions, initOverrides);
4439
+
4440
+ return new runtime.JSONApiResponse(response, (jsonValue) => ClientSlackUserDTOFromJSON(jsonValue));
4441
+ }
4442
+
4443
+ /**
4444
+ * Update Slack user settings for the authenticated user
4445
+ * Update Slack user
4446
+ */
4447
+ async updateSlackUser(requestParameters: UpdateSlackUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClientSlackUserDTO> {
4448
+ const response = await this.updateSlackUserRaw(requestParameters, initOverrides);
4449
+ return await response.value();
4450
+ }
4451
+
4233
4452
  /**
4234
4453
  * Creates request options for updateTeam without sending the request
4235
4454
  */
package/docs/ClientApi.md CHANGED
@@ -16,6 +16,7 @@ All URIs are relative to *http://localhost:3000*
16
16
  | [**createHoliday**](ClientApi.md#createholiday) | **POST** /holidays | |
17
17
  | [**createJiraUser**](ClientApi.md#createjirauser) | **POST** /jira-users | Create Jira user |
18
18
  | [**createProject**](ClientApi.md#createproject) | **POST** /projects | Creates a new project |
19
+ | [**createSlackUser**](ClientApi.md#createslackuser) | **POST** /slackbot-users | Create Slack user |
19
20
  | [**deleteClient**](ClientApi.md#deleteclient) | **DELETE** /clients/{clientId} | Delete client |
20
21
  | [**deleteCompany**](ClientApi.md#deletecompany) | **DELETE** /companies/{companyId} | Delete a company |
21
22
  | [**deleteEmployee**](ClientApi.md#deleteemployee) | **DELETE** /employees/{userId} | Delete an employee |
@@ -23,6 +24,7 @@ All URIs are relative to *http://localhost:3000*
23
24
  | [**deleteGithubUser**](ClientApi.md#deletegithubuser) | **DELETE** /github-users | Delete GitHub user |
24
25
  | [**deleteHoliday**](ClientApi.md#deleteholiday) | **DELETE** /holidays/{holidayId} | Delete a holiday |
25
26
  | [**deleteProject**](ClientApi.md#deleteproject) | **DELETE** /projects/{projectId} | Delete a project |
27
+ | [**deleteSlackUser**](ClientApi.md#deleteslackuser) | **DELETE** /slackbot-users | Delete Slack user |
26
28
  | [**downloadAdjustedTimesheetPdf**](ClientApi.md#downloadadjustedtimesheetpdf) | **GET** /projects/{projectId}/adjusted-timesheets/{timesheetId}/download | Download an AdjustedTimesheet report in PDF format |
27
29
  | [**downloadClientInvoicePdf**](ClientApi.md#downloadclientinvoicepdf) | **GET** /clients/{clientId}/invoices/{invoiceId}/download | Download client invoice pdf |
28
30
  | [**downloadEmployeeInvoicePdf**](ClientApi.md#downloademployeeinvoicepdf) | **GET** /employees/{userId}/invoices/{employeeInvoiceId}/download | Download the employee invoice report in PDF format |
@@ -53,6 +55,7 @@ All URIs are relative to *http://localhost:3000*
53
55
  | [**getProjectReportByUser**](ClientApi.md#getprojectreportbyuser) | **GET** /api/project-reports | Get all projects an employee has access to |
54
56
  | [**getProjects**](ClientApi.md#getprojects) | **GET** /projects | Get all projects a user or employee has access to |
55
57
  | [**getProjectsAsEmployee**](ClientApi.md#getprojectsasemployee) | **GET** /employee-projects | Get all projects an employee has access to |
58
+ | [**getSlackUserAccount**](ClientApi.md#getslackuseraccount) | **GET** /slackbot-users | Get Slack user account |
56
59
  | [**getTeam**](ClientApi.md#getteam) | **GET** /projects/{projectId}/team | Get all users in a project |
57
60
  | [**getTimesheet**](ClientApi.md#gettimesheet) | **GET** /projects/{projectId}/timesheets/{timesheetId} | Get a timesheet |
58
61
  | [**getTimesheets**](ClientApi.md#gettimesheets) | **GET** /projects/{projectId}/timesheets | Get all timesheets in a project without timesheet entries. |
@@ -68,6 +71,7 @@ All URIs are relative to *http://localhost:3000*
68
71
  | [**updateEmployeeData**](ClientApi.md#updateemployeedata) | **PATCH** /employees/{userId} | Update an employee |
69
72
  | [**updateGlobalTimesheetEntry**](ClientApi.md#updateglobaltimesheetentry) | **PATCH** /projects/{projectId}/global-timesheets/{timesheetId}/entries/{entryId} | Update a global timesheet entry |
70
73
  | [**updateProject**](ClientApi.md#updateproject) | **PATCH** /projects/{projectId} | Update a project by ID |
74
+ | [**updateSlackUser**](ClientApi.md#updateslackuser) | **PATCH** /slackbot-users | Update Slack user |
71
75
  | [**updateTeam**](ClientApi.md#updateteam) | **PATCH** /projects/{projectId}/team | Update a project team |
72
76
  | [**updateTimesheetEntry**](ClientApi.md#updatetimesheetentry) | **PATCH** /projects/{projectId}/timesheets/{timesheetId}/entries/{entryId} | Update a timesheet entry |
73
77
 
@@ -1011,6 +1015,79 @@ example().catch(console.error);
1011
1015
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1012
1016
 
1013
1017
 
1018
+ ## createSlackUser
1019
+
1020
+ > ClientSlackUserAccountDTO createSlackUser(createSlackUserRequestDTO)
1021
+
1022
+ Create Slack user
1023
+
1024
+ Create a new Slack user account for the authenticated user
1025
+
1026
+ ### Example
1027
+
1028
+ ```ts
1029
+ import {
1030
+ Configuration,
1031
+ ClientApi,
1032
+ } from '';
1033
+ import type { CreateSlackUserRequest } from '';
1034
+
1035
+ async function example() {
1036
+ console.log("🚀 Testing SDK...");
1037
+ const config = new Configuration({
1038
+ // To configure API key authorization: auth0JWT
1039
+ apiKey: "YOUR API KEY",
1040
+ });
1041
+ const api = new ClientApi(config);
1042
+
1043
+ const body = {
1044
+ // CreateSlackUserRequestDTO | User data
1045
+ createSlackUserRequestDTO: ...,
1046
+ } satisfies CreateSlackUserRequest;
1047
+
1048
+ try {
1049
+ const data = await api.createSlackUser(body);
1050
+ console.log(data);
1051
+ } catch (error) {
1052
+ console.error(error);
1053
+ }
1054
+ }
1055
+
1056
+ // Run the test
1057
+ example().catch(console.error);
1058
+ ```
1059
+
1060
+ ### Parameters
1061
+
1062
+
1063
+ | Name | Type | Description | Notes |
1064
+ |------------- | ------------- | ------------- | -------------|
1065
+ | **createSlackUserRequestDTO** | [CreateSlackUserRequestDTO](CreateSlackUserRequestDTO.md) | User data | |
1066
+
1067
+ ### Return type
1068
+
1069
+ [**ClientSlackUserAccountDTO**](ClientSlackUserAccountDTO.md)
1070
+
1071
+ ### Authorization
1072
+
1073
+ [auth0JWT](../README.md#auth0JWT)
1074
+
1075
+ ### HTTP request headers
1076
+
1077
+ - **Content-Type**: `application/json`
1078
+ - **Accept**: `application/json`
1079
+
1080
+
1081
+ ### HTTP response details
1082
+ | Status code | Description | Response headers |
1083
+ |-------------|-------------|------------------|
1084
+ | **201** | Created | - |
1085
+ | **400** | Return an error if user ID format is invalid or request body is invalid | - |
1086
+ | **500** | Return an error if the server finds an error | - |
1087
+
1088
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1089
+
1090
+
1014
1091
  ## deleteClient
1015
1092
 
1016
1093
  > deleteClient(clientId)
@@ -1542,6 +1619,72 @@ example().catch(console.error);
1542
1619
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1543
1620
 
1544
1621
 
1622
+ ## deleteSlackUser
1623
+
1624
+ > deleteSlackUser()
1625
+
1626
+ Delete Slack user
1627
+
1628
+ Delete the authenticated user\&#39;s Slack account
1629
+
1630
+ ### Example
1631
+
1632
+ ```ts
1633
+ import {
1634
+ Configuration,
1635
+ ClientApi,
1636
+ } from '';
1637
+ import type { DeleteSlackUserRequest } from '';
1638
+
1639
+ async function example() {
1640
+ console.log("🚀 Testing SDK...");
1641
+ const config = new Configuration({
1642
+ // To configure API key authorization: auth0JWT
1643
+ apiKey: "YOUR API KEY",
1644
+ });
1645
+ const api = new ClientApi(config);
1646
+
1647
+ try {
1648
+ const data = await api.deleteSlackUser();
1649
+ console.log(data);
1650
+ } catch (error) {
1651
+ console.error(error);
1652
+ }
1653
+ }
1654
+
1655
+ // Run the test
1656
+ example().catch(console.error);
1657
+ ```
1658
+
1659
+ ### Parameters
1660
+
1661
+ This endpoint does not need any parameter.
1662
+
1663
+ ### Return type
1664
+
1665
+ `void` (Empty response body)
1666
+
1667
+ ### Authorization
1668
+
1669
+ [auth0JWT](../README.md#auth0JWT)
1670
+
1671
+ ### HTTP request headers
1672
+
1673
+ - **Content-Type**: Not defined
1674
+ - **Accept**: `application/json`
1675
+
1676
+
1677
+ ### HTTP response details
1678
+ | Status code | Description | Response headers |
1679
+ |-------------|-------------|------------------|
1680
+ | **204** | No Content | - |
1681
+ | **400** | Return an error if user ID format is invalid | - |
1682
+ | **404** | Return an error if the user is not found | - |
1683
+ | **500** | Return an error if the server finds an error | - |
1684
+
1685
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1686
+
1687
+
1545
1688
  ## downloadAdjustedTimesheetPdf
1546
1689
 
1547
1690
  > string downloadAdjustedTimesheetPdf(projectId, timesheetId)
@@ -3919,6 +4062,72 @@ example().catch(console.error);
3919
4062
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
3920
4063
 
3921
4064
 
4065
+ ## getSlackUserAccount
4066
+
4067
+ > ClientSlackUserAccountDTO getSlackUserAccount()
4068
+
4069
+ Get Slack user account
4070
+
4071
+ Get Slack account information for the authenticated user
4072
+
4073
+ ### Example
4074
+
4075
+ ```ts
4076
+ import {
4077
+ Configuration,
4078
+ ClientApi,
4079
+ } from '';
4080
+ import type { GetSlackUserAccountRequest } from '';
4081
+
4082
+ async function example() {
4083
+ console.log("🚀 Testing SDK...");
4084
+ const config = new Configuration({
4085
+ // To configure API key authorization: auth0JWT
4086
+ apiKey: "YOUR API KEY",
4087
+ });
4088
+ const api = new ClientApi(config);
4089
+
4090
+ try {
4091
+ const data = await api.getSlackUserAccount();
4092
+ console.log(data);
4093
+ } catch (error) {
4094
+ console.error(error);
4095
+ }
4096
+ }
4097
+
4098
+ // Run the test
4099
+ example().catch(console.error);
4100
+ ```
4101
+
4102
+ ### Parameters
4103
+
4104
+ This endpoint does not need any parameter.
4105
+
4106
+ ### Return type
4107
+
4108
+ [**ClientSlackUserAccountDTO**](ClientSlackUserAccountDTO.md)
4109
+
4110
+ ### Authorization
4111
+
4112
+ [auth0JWT](../README.md#auth0JWT)
4113
+
4114
+ ### HTTP request headers
4115
+
4116
+ - **Content-Type**: Not defined
4117
+ - **Accept**: `application/json`
4118
+
4119
+
4120
+ ### HTTP response details
4121
+ | Status code | Description | Response headers |
4122
+ |-------------|-------------|------------------|
4123
+ | **200** | OK | - |
4124
+ | **400** | Return an error if user ID format is invalid | - |
4125
+ | **404** | Return an error if Slack account is not found | - |
4126
+ | **500** | Return an error if the server finds an error | - |
4127
+
4128
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
4129
+
4130
+
3922
4131
  ## getTeam
3923
4132
 
3924
4133
  > PaginatedUsers getTeam(projectId, page, pageSize, search)
@@ -5138,6 +5347,80 @@ example().catch(console.error);
5138
5347
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
5139
5348
 
5140
5349
 
5350
+ ## updateSlackUser
5351
+
5352
+ > ClientSlackUserDTO updateSlackUser(clientUpdateSlackUserDTO)
5353
+
5354
+ Update Slack user
5355
+
5356
+ Update Slack user settings for the authenticated user
5357
+
5358
+ ### Example
5359
+
5360
+ ```ts
5361
+ import {
5362
+ Configuration,
5363
+ ClientApi,
5364
+ } from '';
5365
+ import type { UpdateSlackUserRequest } from '';
5366
+
5367
+ async function example() {
5368
+ console.log("🚀 Testing SDK...");
5369
+ const config = new Configuration({
5370
+ // To configure API key authorization: auth0JWT
5371
+ apiKey: "YOUR API KEY",
5372
+ });
5373
+ const api = new ClientApi(config);
5374
+
5375
+ const body = {
5376
+ // ClientUpdateSlackUserDTO | User update data
5377
+ clientUpdateSlackUserDTO: ...,
5378
+ } satisfies UpdateSlackUserRequest;
5379
+
5380
+ try {
5381
+ const data = await api.updateSlackUser(body);
5382
+ console.log(data);
5383
+ } catch (error) {
5384
+ console.error(error);
5385
+ }
5386
+ }
5387
+
5388
+ // Run the test
5389
+ example().catch(console.error);
5390
+ ```
5391
+
5392
+ ### Parameters
5393
+
5394
+
5395
+ | Name | Type | Description | Notes |
5396
+ |------------- | ------------- | ------------- | -------------|
5397
+ | **clientUpdateSlackUserDTO** | [ClientUpdateSlackUserDTO](ClientUpdateSlackUserDTO.md) | User update data | |
5398
+
5399
+ ### Return type
5400
+
5401
+ [**ClientSlackUserDTO**](ClientSlackUserDTO.md)
5402
+
5403
+ ### Authorization
5404
+
5405
+ [auth0JWT](../README.md#auth0JWT)
5406
+
5407
+ ### HTTP request headers
5408
+
5409
+ - **Content-Type**: `application/json`
5410
+ - **Accept**: `application/json`
5411
+
5412
+
5413
+ ### HTTP response details
5414
+ | Status code | Description | Response headers |
5415
+ |-------------|-------------|------------------|
5416
+ | **200** | OK | - |
5417
+ | **400** | Return an error if user ID format is invalid or request body is invalid | - |
5418
+ | **404** | Return an error if the user is not found | - |
5419
+ | **500** | Return an error if the server finds an error | - |
5420
+
5421
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
5422
+
5423
+
5141
5424
  ## updateTeam
5142
5425
 
5143
5426
  > updateTeam(projectId, teamUpdateDTO)
@@ -0,0 +1,34 @@
1
+
2
+ # ClientSlackAccountResponseDTO
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `slackAccountId` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ClientSlackAccountResponseDTO } from ''
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "slackAccountId": null,
19
+ } satisfies ClientSlackAccountResponseDTO
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as ClientSlackAccountResponseDTO
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,36 @@
1
+
2
+ # ClientSlackUserAccountDTO
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `slackAccount` | [ClientSlackAccountResponseDTO](ClientSlackAccountResponseDTO.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ClientSlackUserAccountDTO } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "id": null,
20
+ "slackAccount": null,
21
+ } satisfies ClientSlackUserAccountDTO
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as ClientSlackUserAccountDTO
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+