tuix-projects-service-client 0.0.37 → 0.0.39

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.
Files changed (38) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/apis/ClientApi.js +193 -0
  3. package/apis/ClientApi.js.map +1 -1
  4. package/apis/ClientApi.ts +295 -0
  5. package/docs/ClientApi.md +376 -0
  6. package/docs/CreateTokenResponseDTO.md +46 -0
  7. package/docs/PaginatedTokens.md +42 -0
  8. package/docs/PermissionDTO.md +40 -0
  9. package/docs/RolePermissionsDTO.md +36 -0
  10. package/docs/TokenDTO.md +46 -0
  11. package/docs/TokenInputDTO.md +38 -0
  12. package/docs/TokenValidationErrorDTO.md +42 -0
  13. package/models/CreateTokenResponseDTO.js +62 -0
  14. package/models/CreateTokenResponseDTO.js.map +1 -0
  15. package/models/CreateTokenResponseDTO.ts +121 -0
  16. package/models/PaginatedTokens.js +68 -0
  17. package/models/PaginatedTokens.js.map +1 -0
  18. package/models/PaginatedTokens.ts +110 -0
  19. package/models/PermissionDTO.js +55 -0
  20. package/models/PermissionDTO.js.map +1 -0
  21. package/models/PermissionDTO.ts +89 -0
  22. package/models/RolePermissionsDTO.js +52 -0
  23. package/models/RolePermissionsDTO.js.map +1 -0
  24. package/models/RolePermissionsDTO.ts +81 -0
  25. package/models/TokenDTO.js +62 -0
  26. package/models/TokenDTO.js.map +1 -0
  27. package/models/TokenDTO.ts +121 -0
  28. package/models/TokenInputDTO.js +57 -0
  29. package/models/TokenInputDTO.js.map +1 -0
  30. package/models/TokenInputDTO.ts +83 -0
  31. package/models/TokenValidationErrorDTO.js +58 -0
  32. package/models/TokenValidationErrorDTO.js.map +1 -0
  33. package/models/TokenValidationErrorDTO.ts +105 -0
  34. package/models/index.js +7 -0
  35. package/models/index.js.map +1 -1
  36. package/models/index.ts +7 -0
  37. package/package.json +1 -1
  38. package/tsconfig.build.tsbuildinfo +1 -1
package/docs/ClientApi.md CHANGED
@@ -18,6 +18,7 @@ All URIs are relative to *http://localhost:3000*
18
18
  | [**createJiraUser**](ClientApi.md#createjirauser) | **POST** /jira-users | Create Jira user |
19
19
  | [**createProject**](ClientApi.md#createproject) | **POST** /projects | Creates a new project |
20
20
  | [**createSlackUser**](ClientApi.md#createslackuser) | **POST** /slackbot-users | Create Slack user |
21
+ | [**createToken**](ClientApi.md#createtoken) | **POST** /pats | Create a new API token with role-based permissions |
21
22
  | [**deleteClient**](ClientApi.md#deleteclient) | **DELETE** /clients/{clientId} | Delete client |
22
23
  | [**deleteCompany**](ClientApi.md#deletecompany) | **DELETE** /companies/{companyId} | Delete a company |
23
24
  | [**deleteEmployee**](ClientApi.md#deleteemployee) | **DELETE** /employees/{userId} | Delete an employee |
@@ -26,6 +27,7 @@ All URIs are relative to *http://localhost:3000*
26
27
  | [**deleteHoliday**](ClientApi.md#deleteholiday) | **DELETE** /holidays/{holidayId} | Delete a holiday |
27
28
  | [**deleteProject**](ClientApi.md#deleteproject) | **DELETE** /projects/{projectId} | Delete a project |
28
29
  | [**deleteSlackUser**](ClientApi.md#deleteslackuser) | **DELETE** /slackbot-users | Delete Slack user |
30
+ | [**deleteToken**](ClientApi.md#deletetoken) | **DELETE** /pats/{tokenId} | Delete an API token by ID |
29
31
  | [**downloadAdjustedTimesheetPdf**](ClientApi.md#downloadadjustedtimesheetpdf) | **GET** /projects/{projectId}/adjusted-timesheets/{timesheetId}/download | Download an AdjustedTimesheet report in PDF format |
30
32
  | [**downloadClientInvoicePdf**](ClientApi.md#downloadclientinvoicepdf) | **GET** /clients/{clientId}/invoices/{invoiceId}/download | Download client invoice pdf |
31
33
  | [**downloadEmployeeInvoicePdf**](ClientApi.md#downloademployeeinvoicepdf) | **GET** /employees/{userId}/invoices/{employeeInvoiceId}/download | Download the employee invoice report in PDF format |
@@ -60,6 +62,9 @@ All URIs are relative to *http://localhost:3000*
60
62
  | [**getTeam**](ClientApi.md#getteam) | **GET** /projects/{projectId}/team | Get all users in a project |
61
63
  | [**getTimesheet**](ClientApi.md#gettimesheet) | **GET** /projects/{projectId}/timesheets/{timesheetId} | Get a timesheet |
62
64
  | [**getTimesheets**](ClientApi.md#gettimesheets) | **GET** /projects/{projectId}/timesheets | Get all timesheets in a project without timesheet entries. |
65
+ | [**getToken**](ClientApi.md#gettoken) | **GET** /pats/{tokenId} | Get a specific API token by ID |
66
+ | [**getUserPermissions**](ClientApi.md#getuserpermissions) | **GET** /permissions | Get all available permissions for current user based on their role |
67
+ | [**getUserTokens**](ClientApi.md#getusertokens) | **GET** /pats | Get all API tokens for current user with pagination |
63
68
  | [**inviteEmployee**](ClientApi.md#inviteemployee) | **POST** /employees/invite | Invite an employee to a company |
64
69
  | [**markEmployeeInvoiceAsPaid**](ClientApi.md#markemployeeinvoiceaspaid) | **POST** /employees/{userId}/invoices/{employeeInvoiceId}/mark-paid | Mark an employee invoice as paid |
65
70
  | [**markInvoiceAsPaid**](ClientApi.md#markinvoiceaspaid) | **POST** /clients/{clientId}/invoices/{invoiceId}/mark-paid | Mark a client invoice as paid with the specified date and time |
@@ -1167,6 +1172,82 @@ example().catch(console.error);
1167
1172
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1168
1173
 
1169
1174
 
1175
+ ## createToken
1176
+
1177
+ > CreateTokenResponseDTO createToken(tokenInputDTO)
1178
+
1179
+ Create a new API token with role-based permissions
1180
+
1181
+ Create a new API token
1182
+
1183
+ ### Example
1184
+
1185
+ ```ts
1186
+ import {
1187
+ Configuration,
1188
+ ClientApi,
1189
+ } from '';
1190
+ import type { CreateTokenRequest } from '';
1191
+
1192
+ async function example() {
1193
+ console.log("🚀 Testing SDK...");
1194
+ const config = new Configuration({
1195
+ // To configure API key authorization: auth0JWT
1196
+ apiKey: "YOUR API KEY",
1197
+ });
1198
+ const api = new ClientApi(config);
1199
+
1200
+ const body = {
1201
+ // TokenInputDTO | Token creation data
1202
+ tokenInputDTO: ...,
1203
+ } satisfies CreateTokenRequest;
1204
+
1205
+ try {
1206
+ const data = await api.createToken(body);
1207
+ console.log(data);
1208
+ } catch (error) {
1209
+ console.error(error);
1210
+ }
1211
+ }
1212
+
1213
+ // Run the test
1214
+ example().catch(console.error);
1215
+ ```
1216
+
1217
+ ### Parameters
1218
+
1219
+
1220
+ | Name | Type | Description | Notes |
1221
+ |------------- | ------------- | ------------- | -------------|
1222
+ | **tokenInputDTO** | [TokenInputDTO](TokenInputDTO.md) | Token creation data | |
1223
+
1224
+ ### Return type
1225
+
1226
+ [**CreateTokenResponseDTO**](CreateTokenResponseDTO.md)
1227
+
1228
+ ### Authorization
1229
+
1230
+ [auth0JWT](../README.md#auth0JWT)
1231
+
1232
+ ### HTTP request headers
1233
+
1234
+ - **Content-Type**: `application/json`
1235
+ - **Accept**: `application/json`
1236
+
1237
+
1238
+ ### HTTP response details
1239
+ | Status code | Description | Response headers |
1240
+ |-------------|-------------|------------------|
1241
+ | **201** | Return the created token (only shown once) | - |
1242
+ | **400** | Return detailed validation error if permissions are not allowed for the role | - |
1243
+ | **401** | Return an error if the user is not authenticated | - |
1244
+ | **403** | Return an error if the user does not have the required permissions | - |
1245
+ | **409** | Return an error if the token name already exists | - |
1246
+ | **500** | Return an error if the server encounters an error | - |
1247
+
1248
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1249
+
1250
+
1170
1251
  ## deleteClient
1171
1252
 
1172
1253
  > deleteClient(clientId)
@@ -1764,6 +1845,82 @@ This endpoint does not need any parameter.
1764
1845
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1765
1846
 
1766
1847
 
1848
+ ## deleteToken
1849
+
1850
+ > deleteToken(tokenId)
1851
+
1852
+ Delete an API token by ID
1853
+
1854
+ Delete token
1855
+
1856
+ ### Example
1857
+
1858
+ ```ts
1859
+ import {
1860
+ Configuration,
1861
+ ClientApi,
1862
+ } from '';
1863
+ import type { DeleteTokenRequest } from '';
1864
+
1865
+ async function example() {
1866
+ console.log("🚀 Testing SDK...");
1867
+ const config = new Configuration({
1868
+ // To configure API key authorization: auth0JWT
1869
+ apiKey: "YOUR API KEY",
1870
+ });
1871
+ const api = new ClientApi(config);
1872
+
1873
+ const body = {
1874
+ // string | Token ID
1875
+ tokenId: tokenId_example,
1876
+ } satisfies DeleteTokenRequest;
1877
+
1878
+ try {
1879
+ const data = await api.deleteToken(body);
1880
+ console.log(data);
1881
+ } catch (error) {
1882
+ console.error(error);
1883
+ }
1884
+ }
1885
+
1886
+ // Run the test
1887
+ example().catch(console.error);
1888
+ ```
1889
+
1890
+ ### Parameters
1891
+
1892
+
1893
+ | Name | Type | Description | Notes |
1894
+ |------------- | ------------- | ------------- | -------------|
1895
+ | **tokenId** | `string` | Token ID | [Defaults to `undefined`] |
1896
+
1897
+ ### Return type
1898
+
1899
+ `void` (Empty response body)
1900
+
1901
+ ### Authorization
1902
+
1903
+ [auth0JWT](../README.md#auth0JWT)
1904
+
1905
+ ### HTTP request headers
1906
+
1907
+ - **Content-Type**: Not defined
1908
+ - **Accept**: `application/json`
1909
+
1910
+
1911
+ ### HTTP response details
1912
+ | Status code | Description | Response headers |
1913
+ |-------------|-------------|------------------|
1914
+ | **204** | Token deleted successfully | - |
1915
+ | **400** | Return an error if provided ID is not a valid UUID | - |
1916
+ | **401** | Return an error if the user is not authenticated | - |
1917
+ | **403** | Return an error if the user does not have the required permissions | - |
1918
+ | **404** | Return an error if the token is not found | - |
1919
+ | **500** | Return an error if the server encounters an error | - |
1920
+
1921
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1922
+
1923
+
1767
1924
  ## downloadAdjustedTimesheetPdf
1768
1925
 
1769
1926
  > string downloadAdjustedTimesheetPdf(projectId, timesheetId)
@@ -4459,6 +4616,225 @@ example().catch(console.error);
4459
4616
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
4460
4617
 
4461
4618
 
4619
+ ## getToken
4620
+
4621
+ > TokenDTO getToken(tokenId)
4622
+
4623
+ Get a specific API token by ID
4624
+
4625
+ Get token by ID
4626
+
4627
+ ### Example
4628
+
4629
+ ```ts
4630
+ import {
4631
+ Configuration,
4632
+ ClientApi,
4633
+ } from '';
4634
+ import type { GetTokenRequest } from '';
4635
+
4636
+ async function example() {
4637
+ console.log("🚀 Testing SDK...");
4638
+ const config = new Configuration({
4639
+ // To configure API key authorization: auth0JWT
4640
+ apiKey: "YOUR API KEY",
4641
+ });
4642
+ const api = new ClientApi(config);
4643
+
4644
+ const body = {
4645
+ // string | Token ID
4646
+ tokenId: tokenId_example,
4647
+ } satisfies GetTokenRequest;
4648
+
4649
+ try {
4650
+ const data = await api.getToken(body);
4651
+ console.log(data);
4652
+ } catch (error) {
4653
+ console.error(error);
4654
+ }
4655
+ }
4656
+
4657
+ // Run the test
4658
+ example().catch(console.error);
4659
+ ```
4660
+
4661
+ ### Parameters
4662
+
4663
+
4664
+ | Name | Type | Description | Notes |
4665
+ |------------- | ------------- | ------------- | -------------|
4666
+ | **tokenId** | `string` | Token ID | [Defaults to `undefined`] |
4667
+
4668
+ ### Return type
4669
+
4670
+ [**TokenDTO**](TokenDTO.md)
4671
+
4672
+ ### Authorization
4673
+
4674
+ [auth0JWT](../README.md#auth0JWT)
4675
+
4676
+ ### HTTP request headers
4677
+
4678
+ - **Content-Type**: Not defined
4679
+ - **Accept**: `application/json`
4680
+
4681
+
4682
+ ### HTTP response details
4683
+ | Status code | Description | Response headers |
4684
+ |-------------|-------------|------------------|
4685
+ | **200** | Return the token details | - |
4686
+ | **400** | Return an error if provided ID is not a valid UUID | - |
4687
+ | **401** | Return an error if the user is not authenticated | - |
4688
+ | **403** | Return an error if the user does not have the required permissions | - |
4689
+ | **404** | Return an error if the token is not found | - |
4690
+ | **500** | Return an error if the server encounters an error | - |
4691
+
4692
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
4693
+
4694
+
4695
+ ## getUserPermissions
4696
+
4697
+ > RolePermissionsDTO getUserPermissions()
4698
+
4699
+ Get all available permissions for current user based on their role
4700
+
4701
+ Get permissions for current user
4702
+
4703
+ ### Example
4704
+
4705
+ ```ts
4706
+ import {
4707
+ Configuration,
4708
+ ClientApi,
4709
+ } from '';
4710
+ import type { GetUserPermissionsRequest } from '';
4711
+
4712
+ async function example() {
4713
+ console.log("🚀 Testing SDK...");
4714
+ const config = new Configuration({
4715
+ // To configure API key authorization: auth0JWT
4716
+ apiKey: "YOUR API KEY",
4717
+ });
4718
+ const api = new ClientApi(config);
4719
+
4720
+ try {
4721
+ const data = await api.getUserPermissions();
4722
+ console.log(data);
4723
+ } catch (error) {
4724
+ console.error(error);
4725
+ }
4726
+ }
4727
+
4728
+ // Run the test
4729
+ example().catch(console.error);
4730
+ ```
4731
+
4732
+ ### Parameters
4733
+
4734
+ This endpoint does not need any parameter.
4735
+
4736
+ ### Return type
4737
+
4738
+ [**RolePermissionsDTO**](RolePermissionsDTO.md)
4739
+
4740
+ ### Authorization
4741
+
4742
+ [auth0JWT](../README.md#auth0JWT)
4743
+
4744
+ ### HTTP request headers
4745
+
4746
+ - **Content-Type**: Not defined
4747
+ - **Accept**: `application/json`
4748
+
4749
+
4750
+ ### HTTP response details
4751
+ | Status code | Description | Response headers |
4752
+ |-------------|-------------|------------------|
4753
+ | **200** | Return user permissions | - |
4754
+ | **401** | Return an error if the user is not authenticated | - |
4755
+ | **500** | Return an error if the server encounters an error | - |
4756
+
4757
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
4758
+
4759
+
4760
+ ## getUserTokens
4761
+
4762
+ > PaginatedTokens getUserTokens(page, pageSize)
4763
+
4764
+ Get all API tokens for current user with pagination
4765
+
4766
+ Get all tokens for current user with pagination
4767
+
4768
+ ### Example
4769
+
4770
+ ```ts
4771
+ import {
4772
+ Configuration,
4773
+ ClientApi,
4774
+ } from '';
4775
+ import type { GetUserTokensRequest } from '';
4776
+
4777
+ async function example() {
4778
+ console.log("🚀 Testing SDK...");
4779
+ const config = new Configuration({
4780
+ // To configure API key authorization: auth0JWT
4781
+ apiKey: "YOUR API KEY",
4782
+ });
4783
+ const api = new ClientApi(config);
4784
+
4785
+ const body = {
4786
+ // number | Page number (default: 1) (optional)
4787
+ page: 56,
4788
+ // number | Page size (default: 10) (optional)
4789
+ pageSize: 56,
4790
+ } satisfies GetUserTokensRequest;
4791
+
4792
+ try {
4793
+ const data = await api.getUserTokens(body);
4794
+ console.log(data);
4795
+ } catch (error) {
4796
+ console.error(error);
4797
+ }
4798
+ }
4799
+
4800
+ // Run the test
4801
+ example().catch(console.error);
4802
+ ```
4803
+
4804
+ ### Parameters
4805
+
4806
+
4807
+ | Name | Type | Description | Notes |
4808
+ |------------- | ------------- | ------------- | -------------|
4809
+ | **page** | `number` | Page number (default: 1) | [Optional] [Defaults to `1`] |
4810
+ | **pageSize** | `number` | Page size (default: 10) | [Optional] [Defaults to `10`] |
4811
+
4812
+ ### Return type
4813
+
4814
+ [**PaginatedTokens**](PaginatedTokens.md)
4815
+
4816
+ ### Authorization
4817
+
4818
+ [auth0JWT](../README.md#auth0JWT)
4819
+
4820
+ ### HTTP request headers
4821
+
4822
+ - **Content-Type**: Not defined
4823
+ - **Accept**: `application/json`
4824
+
4825
+
4826
+ ### HTTP response details
4827
+ | Status code | Description | Response headers |
4828
+ |-------------|-------------|------------------|
4829
+ | **200** | Return paginated list of user tokens | - |
4830
+ | **400** | Return an error if pagination parameters are invalid | - |
4831
+ | **401** | Return an error if the user is not authenticated | - |
4832
+ | **403** | Return an error if the user does not have the required permissions | - |
4833
+ | **500** | Return an error if the server encounters an error | - |
4834
+
4835
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
4836
+
4837
+
4462
4838
  ## inviteEmployee
4463
4839
 
4464
4840
  > EmployeeDTO inviteEmployee(employeeDTO)
@@ -0,0 +1,46 @@
1
+
2
+ # CreateTokenResponseDTO
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `createdAt` | string
10
+ `expiresAt` | string
11
+ `permissions` | [Array<PermissionDTO>](PermissionDTO.md)
12
+ `role` | string
13
+ `token` | string
14
+ `tokenId` | string
15
+ `tokenName` | string
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { CreateTokenResponseDTO } from ''
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "createdAt": null,
25
+ "expiresAt": null,
26
+ "permissions": null,
27
+ "role": null,
28
+ "token": null,
29
+ "tokenId": null,
30
+ "tokenName": null,
31
+ } satisfies CreateTokenResponseDTO
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as CreateTokenResponseDTO
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+
@@ -0,0 +1,42 @@
1
+
2
+ # PaginatedTokens
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `items` | [Array<TokenDTO>](TokenDTO.md)
10
+ `page` | number
11
+ `pageSize` | number
12
+ `totalItems` | number
13
+ `totalPages` | number
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { PaginatedTokens } from ''
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "items": null,
23
+ "page": null,
24
+ "pageSize": null,
25
+ "totalItems": null,
26
+ "totalPages": null,
27
+ } satisfies PaginatedTokens
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as PaginatedTokens
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,40 @@
1
+
2
+ # PermissionDTO
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `category` | string
10
+ `description` | string
11
+ `id` | string
12
+ `name` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { PermissionDTO } from ''
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "category": null,
22
+ "description": null,
23
+ "id": null,
24
+ "name": null,
25
+ } satisfies PermissionDTO
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as PermissionDTO
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,36 @@
1
+
2
+ # RolePermissionsDTO
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `permissions` | [Array<PermissionDTO>](PermissionDTO.md)
10
+ `role` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { RolePermissionsDTO } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "permissions": null,
20
+ "role": null,
21
+ } satisfies RolePermissionsDTO
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 RolePermissionsDTO
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
+
@@ -0,0 +1,46 @@
1
+
2
+ # TokenDTO
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `createdAt` | string
10
+ `expiresAt` | string
11
+ `id` | string
12
+ `name` | string
13
+ `permissions` | [Array<PermissionDTO>](PermissionDTO.md)
14
+ `role` | string
15
+ `updatedAt` | string
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { TokenDTO } from ''
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "createdAt": null,
25
+ "expiresAt": null,
26
+ "id": null,
27
+ "name": null,
28
+ "permissions": null,
29
+ "role": null,
30
+ "updatedAt": null,
31
+ } satisfies TokenDTO
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as TokenDTO
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+
@@ -0,0 +1,38 @@
1
+
2
+ # TokenInputDTO
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `expiresAt` | string
10
+ `permissionIds` | Array<string>
11
+ `tokenName` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { TokenInputDTO } from ''
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "expiresAt": null,
21
+ "permissionIds": null,
22
+ "tokenName": null,
23
+ } satisfies TokenInputDTO
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as TokenInputDTO
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,42 @@
1
+
2
+ # TokenValidationErrorDTO
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `availablePermissions` | [Array<PermissionDTO>](PermissionDTO.md)
10
+ `invalidPermissions` | Array<string>
11
+ `message` | string
12
+ `role` | string
13
+ `validPermissions` | [Array<PermissionDTO>](PermissionDTO.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { TokenValidationErrorDTO } from ''
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "availablePermissions": null,
23
+ "invalidPermissions": null,
24
+ "message": null,
25
+ "role": null,
26
+ "validPermissions": null,
27
+ } satisfies TokenValidationErrorDTO
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as TokenValidationErrorDTO
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+