tuix-timesheets-api 0.67.0 → 0.68.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/.openapi-generator/FILES +4 -4
- package/apis/TuixTimesheetsClientApi.js +36 -26
- package/apis/TuixTimesheetsClientApi.js.map +1 -1
- package/apis/TuixTimesheetsClientApi.ts +55 -45
- package/models/{CreateUserDto.js → CreateUserDTO.js} +15 -15
- package/models/CreateUserDTO.js.map +1 -0
- package/models/{CreateUserDto.ts → CreateUserDTO.ts} +16 -16
- package/models/ErrorDTO.js +2 -2
- package/models/ErrorDTO.js.map +1 -1
- package/models/ErrorDTO.ts +2 -3
- package/models/SlackAccountResponseDTO.js +51 -0
- package/models/SlackAccountResponseDTO.js.map +1 -0
- package/models/{SlackAccountReponseDto.ts → SlackAccountResponseDTO.ts} +9 -9
- package/models/SlackUserDTO.js +55 -0
- package/models/SlackUserDTO.js.map +1 -0
- package/models/{SlackUserDto.ts → SlackUserDTO.ts} +20 -23
- package/models/UpdateUserDTO.js +53 -0
- package/models/UpdateUserDTO.js.map +1 -0
- package/models/{UpdateUserDto.ts → UpdateUserDTO.ts} +17 -19
- package/models/index.js +4 -4
- package/models/index.js.map +1 -1
- package/models/index.ts +4 -4
- package/package.json +1 -1
- package/models/CreateUserDto.js.map +0 -1
- package/models/SlackAccountReponseDto.js +0 -51
- package/models/SlackAccountReponseDto.js.map +0 -1
- package/models/SlackUserDto.js +0 -57
- package/models/SlackUserDto.js.map +0 -1
- package/models/UpdateUserDto.js +0 -54
- package/models/UpdateUserDto.js.map +0 -1
|
@@ -26,7 +26,7 @@ import type {
|
|
|
26
26
|
CreateJiraAccountDTO,
|
|
27
27
|
CreateJiraUserDTO,
|
|
28
28
|
CreateTokenResponseDTO,
|
|
29
|
-
|
|
29
|
+
CreateUserDTO,
|
|
30
30
|
EmployeeDTO,
|
|
31
31
|
EmployeeInvoiceDTO,
|
|
32
32
|
EmployeeUpdateDTO,
|
|
@@ -59,15 +59,15 @@ import type {
|
|
|
59
59
|
ProjectInputDTO,
|
|
60
60
|
ProjectUpdateDTO,
|
|
61
61
|
RolePermissionsDTO,
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
SlackAccountResponseDTO,
|
|
63
|
+
SlackUserDTO,
|
|
64
64
|
TeamUpdateDTO,
|
|
65
65
|
TimesheetDTO,
|
|
66
66
|
TimesheetEntryUpdateDTO,
|
|
67
67
|
TokenDTO,
|
|
68
68
|
TokenInputDTO,
|
|
69
69
|
TokenValidationErrorDTO,
|
|
70
|
-
|
|
70
|
+
UpdateUserDTO,
|
|
71
71
|
} from '../models/index';
|
|
72
72
|
import {
|
|
73
73
|
AccountInfoDTOFromJSON,
|
|
@@ -92,8 +92,8 @@ import {
|
|
|
92
92
|
CreateJiraUserDTOToJSON,
|
|
93
93
|
CreateTokenResponseDTOFromJSON,
|
|
94
94
|
CreateTokenResponseDTOToJSON,
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
CreateUserDTOFromJSON,
|
|
96
|
+
CreateUserDTOToJSON,
|
|
97
97
|
EmployeeDTOFromJSON,
|
|
98
98
|
EmployeeDTOToJSON,
|
|
99
99
|
EmployeeInvoiceDTOFromJSON,
|
|
@@ -158,10 +158,10 @@ import {
|
|
|
158
158
|
ProjectUpdateDTOToJSON,
|
|
159
159
|
RolePermissionsDTOFromJSON,
|
|
160
160
|
RolePermissionsDTOToJSON,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
161
|
+
SlackAccountResponseDTOFromJSON,
|
|
162
|
+
SlackAccountResponseDTOToJSON,
|
|
163
|
+
SlackUserDTOFromJSON,
|
|
164
|
+
SlackUserDTOToJSON,
|
|
165
165
|
TeamUpdateDTOFromJSON,
|
|
166
166
|
TeamUpdateDTOToJSON,
|
|
167
167
|
TimesheetDTOFromJSON,
|
|
@@ -174,8 +174,8 @@ import {
|
|
|
174
174
|
TokenInputDTOToJSON,
|
|
175
175
|
TokenValidationErrorDTOFromJSON,
|
|
176
176
|
TokenValidationErrorDTOToJSON,
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
UpdateUserDTOFromJSON,
|
|
178
|
+
UpdateUserDTOToJSON,
|
|
179
179
|
} from '../models/index';
|
|
180
180
|
|
|
181
181
|
export interface AddJiraAccountRequest {
|
|
@@ -227,7 +227,7 @@ export interface CreateProjectRequest {
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
export interface CreateSlackUserRequest {
|
|
230
|
-
|
|
230
|
+
createUserDTO: CreateUserDTO;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
export interface CreateTokenRequest {
|
|
@@ -496,9 +496,9 @@ export interface UpdateProjectRequest {
|
|
|
496
496
|
projectUpdateDTO: ProjectUpdateDTO;
|
|
497
497
|
}
|
|
498
498
|
|
|
499
|
-
export interface
|
|
499
|
+
export interface UpdateSlackUserRequest {
|
|
500
500
|
userId: string;
|
|
501
|
-
|
|
501
|
+
updateUserDTO: UpdateUserDTO;
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
export interface UpdateTeamRequest {
|
|
@@ -948,11 +948,12 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
948
948
|
}
|
|
949
949
|
|
|
950
950
|
/**
|
|
951
|
-
*
|
|
951
|
+
* Create a new Slack user account
|
|
952
|
+
* Create Slack user
|
|
952
953
|
*/
|
|
953
|
-
async createSlackUserRaw(requestParameters: CreateSlackUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
954
|
-
if (requestParameters.
|
|
955
|
-
throw new runtime.RequiredError('
|
|
954
|
+
async createSlackUserRaw(requestParameters: CreateSlackUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SlackAccountResponseDTO>> {
|
|
955
|
+
if (requestParameters.createUserDTO === null || requestParameters.createUserDTO === undefined) {
|
|
956
|
+
throw new runtime.RequiredError('createUserDTO','Required parameter requestParameters.createUserDTO was null or undefined when calling createSlackUser.');
|
|
956
957
|
}
|
|
957
958
|
|
|
958
959
|
const queryParameters: any = {};
|
|
@@ -970,16 +971,17 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
970
971
|
method: 'POST',
|
|
971
972
|
headers: headerParameters,
|
|
972
973
|
query: queryParameters,
|
|
973
|
-
body:
|
|
974
|
+
body: CreateUserDTOToJSON(requestParameters.createUserDTO),
|
|
974
975
|
}, initOverrides);
|
|
975
976
|
|
|
976
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
977
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SlackAccountResponseDTOFromJSON(jsonValue));
|
|
977
978
|
}
|
|
978
979
|
|
|
979
980
|
/**
|
|
980
|
-
*
|
|
981
|
+
* Create a new Slack user account
|
|
982
|
+
* Create Slack user
|
|
981
983
|
*/
|
|
982
|
-
async createSlackUser(requestParameters: CreateSlackUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
984
|
+
async createSlackUser(requestParameters: CreateSlackUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SlackAccountResponseDTO> {
|
|
983
985
|
const response = await this.createSlackUserRaw(requestParameters, initOverrides);
|
|
984
986
|
return await response.value();
|
|
985
987
|
}
|
|
@@ -1269,7 +1271,8 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1269
1271
|
}
|
|
1270
1272
|
|
|
1271
1273
|
/**
|
|
1272
|
-
*
|
|
1274
|
+
* Delete the authenticated user\'s Slack account
|
|
1275
|
+
* Delete Slack user
|
|
1273
1276
|
*/
|
|
1274
1277
|
async deleteSlackUserRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1275
1278
|
const queryParameters: any = {};
|
|
@@ -1291,7 +1294,8 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1291
1294
|
}
|
|
1292
1295
|
|
|
1293
1296
|
/**
|
|
1294
|
-
*
|
|
1297
|
+
* Delete the authenticated user\'s Slack account
|
|
1298
|
+
* Delete Slack user
|
|
1295
1299
|
*/
|
|
1296
1300
|
async deleteSlackUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1297
1301
|
await this.deleteSlackUserRaw(initOverrides);
|
|
@@ -2555,9 +2559,10 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2555
2559
|
}
|
|
2556
2560
|
|
|
2557
2561
|
/**
|
|
2558
|
-
*
|
|
2562
|
+
* Get the Slack account for the authenticated user
|
|
2563
|
+
* Get Slack account
|
|
2559
2564
|
*/
|
|
2560
|
-
async getSlackAccountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
2565
|
+
async getSlackAccountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SlackAccountResponseDTO>> {
|
|
2561
2566
|
const queryParameters: any = {};
|
|
2562
2567
|
|
|
2563
2568
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -2573,13 +2578,14 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2573
2578
|
query: queryParameters,
|
|
2574
2579
|
}, initOverrides);
|
|
2575
2580
|
|
|
2576
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2581
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SlackAccountResponseDTOFromJSON(jsonValue));
|
|
2577
2582
|
}
|
|
2578
2583
|
|
|
2579
2584
|
/**
|
|
2580
|
-
*
|
|
2585
|
+
* Get the Slack account for the authenticated user
|
|
2586
|
+
* Get Slack account
|
|
2581
2587
|
*/
|
|
2582
|
-
async getSlackAccount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
2588
|
+
async getSlackAccount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SlackAccountResponseDTO> {
|
|
2583
2589
|
const response = await this.getSlackAccountRaw(initOverrides);
|
|
2584
2590
|
return await response.value();
|
|
2585
2591
|
}
|
|
@@ -2829,9 +2835,10 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2829
2835
|
}
|
|
2830
2836
|
|
|
2831
2837
|
/**
|
|
2832
|
-
*
|
|
2838
|
+
* Handle incoming Slack action from interactive components
|
|
2839
|
+
* Handle Slack action
|
|
2833
2840
|
*/
|
|
2834
|
-
async
|
|
2841
|
+
async handleSlackActionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
2835
2842
|
const queryParameters: any = {};
|
|
2836
2843
|
|
|
2837
2844
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -2847,10 +2854,11 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2847
2854
|
}
|
|
2848
2855
|
|
|
2849
2856
|
/**
|
|
2850
|
-
*
|
|
2857
|
+
* Handle incoming Slack action from interactive components
|
|
2858
|
+
* Handle Slack action
|
|
2851
2859
|
*/
|
|
2852
|
-
async
|
|
2853
|
-
await this.
|
|
2860
|
+
async handleSlackAction(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
2861
|
+
await this.handleSlackActionRaw(initOverrides);
|
|
2854
2862
|
}
|
|
2855
2863
|
|
|
2856
2864
|
/**
|
|
@@ -3370,15 +3378,16 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
3370
3378
|
}
|
|
3371
3379
|
|
|
3372
3380
|
/**
|
|
3373
|
-
*
|
|
3381
|
+
* Update user settings
|
|
3382
|
+
* Update Slack user
|
|
3374
3383
|
*/
|
|
3375
|
-
async
|
|
3384
|
+
async updateSlackUserRaw(requestParameters: UpdateSlackUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SlackUserDTO>> {
|
|
3376
3385
|
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
3377
|
-
throw new runtime.RequiredError('userId','Required parameter requestParameters.userId was null or undefined when calling
|
|
3386
|
+
throw new runtime.RequiredError('userId','Required parameter requestParameters.userId was null or undefined when calling updateSlackUser.');
|
|
3378
3387
|
}
|
|
3379
3388
|
|
|
3380
|
-
if (requestParameters.
|
|
3381
|
-
throw new runtime.RequiredError('
|
|
3389
|
+
if (requestParameters.updateUserDTO === null || requestParameters.updateUserDTO === undefined) {
|
|
3390
|
+
throw new runtime.RequiredError('updateUserDTO','Required parameter requestParameters.updateUserDTO was null or undefined when calling updateSlackUser.');
|
|
3382
3391
|
}
|
|
3383
3392
|
|
|
3384
3393
|
const queryParameters: any = {};
|
|
@@ -3396,17 +3405,18 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
3396
3405
|
method: 'PATCH',
|
|
3397
3406
|
headers: headerParameters,
|
|
3398
3407
|
query: queryParameters,
|
|
3399
|
-
body:
|
|
3408
|
+
body: UpdateUserDTOToJSON(requestParameters.updateUserDTO),
|
|
3400
3409
|
}, initOverrides);
|
|
3401
3410
|
|
|
3402
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
3411
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SlackUserDTOFromJSON(jsonValue));
|
|
3403
3412
|
}
|
|
3404
3413
|
|
|
3405
3414
|
/**
|
|
3406
|
-
*
|
|
3415
|
+
* Update user settings
|
|
3416
|
+
* Update Slack user
|
|
3407
3417
|
*/
|
|
3408
|
-
async
|
|
3409
|
-
const response = await this.
|
|
3418
|
+
async updateSlackUser(requestParameters: UpdateSlackUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SlackUserDTO> {
|
|
3419
|
+
const response = await this.updateSlackUserRaw(requestParameters, initOverrides);
|
|
3410
3420
|
return await response.value();
|
|
3411
3421
|
}
|
|
3412
3422
|
|
|
@@ -13,34 +13,34 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.CreateUserDTOToJSON = exports.CreateUserDTOFromJSONTyped = exports.CreateUserDTOFromJSON = exports.instanceOfCreateUserDTO = void 0;
|
|
17
17
|
/**
|
|
18
|
-
* Check if a given object implements the
|
|
18
|
+
* Check if a given object implements the CreateUserDTO interface.
|
|
19
19
|
*/
|
|
20
|
-
function
|
|
20
|
+
function instanceOfCreateUserDTO(value) {
|
|
21
21
|
let isInstance = true;
|
|
22
|
-
isInstance = isInstance && "email" in value;
|
|
23
22
|
isInstance = isInstance && "code" in value;
|
|
23
|
+
isInstance = isInstance && "email" in value;
|
|
24
24
|
isInstance = isInstance && "redirectUri" in value;
|
|
25
25
|
return isInstance;
|
|
26
26
|
}
|
|
27
|
-
exports.
|
|
28
|
-
function
|
|
29
|
-
return
|
|
27
|
+
exports.instanceOfCreateUserDTO = instanceOfCreateUserDTO;
|
|
28
|
+
function CreateUserDTOFromJSON(json) {
|
|
29
|
+
return CreateUserDTOFromJSONTyped(json, false);
|
|
30
30
|
}
|
|
31
|
-
exports.
|
|
32
|
-
function
|
|
31
|
+
exports.CreateUserDTOFromJSON = CreateUserDTOFromJSON;
|
|
32
|
+
function CreateUserDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
33
|
if ((json === undefined) || (json === null)) {
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
'email': json['email'],
|
|
38
37
|
'code': json['code'],
|
|
38
|
+
'email': json['email'],
|
|
39
39
|
'redirectUri': json['redirectUri'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
exports.
|
|
43
|
-
function
|
|
42
|
+
exports.CreateUserDTOFromJSONTyped = CreateUserDTOFromJSONTyped;
|
|
43
|
+
function CreateUserDTOToJSON(value) {
|
|
44
44
|
if (value === undefined) {
|
|
45
45
|
return undefined;
|
|
46
46
|
}
|
|
@@ -48,10 +48,10 @@ function CreateUserDtoToJSON(value) {
|
|
|
48
48
|
return null;
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
|
-
'email': value.email,
|
|
52
51
|
'code': value.code,
|
|
52
|
+
'email': value.email,
|
|
53
53
|
'redirectUri': value.redirectUri,
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
exports.
|
|
57
|
-
//# sourceMappingURL=
|
|
56
|
+
exports.CreateUserDTOToJSON = CreateUserDTOToJSON;
|
|
57
|
+
//# sourceMappingURL=CreateUserDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateUserDTO.js","sourceRoot":"","sources":["CreateUserDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AA6BH;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,MAAM,IAAI,KAAK,CAAC;IAC3C,UAAU,GAAG,UAAU,IAAI,OAAO,IAAI,KAAK,CAAC;IAC5C,UAAU,GAAG,UAAU,IAAI,aAAa,IAAI,KAAK,CAAC;IAElD,OAAO,UAAU,CAAC;AACtB,CAAC;AAPD,0DAOC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAFD,sDAEC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;KACrC,CAAC;AACN,CAAC;AAVD,gEAUC;AAED,SAAgB,mBAAmB,CAAC,KAA4B;IAC5D,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,aAAa,EAAE,KAAK,CAAC,WAAW;KACnC,CAAC;AACN,CAAC;AAbD,kDAaC"}
|
|
@@ -16,58 +16,58 @@ import { exists, mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface CreateUserDTO
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface CreateUserDTO {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof CreateUserDTO
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
code: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof CreateUserDTO
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
email: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof CreateUserDTO
|
|
38
38
|
*/
|
|
39
39
|
redirectUri: string;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Check if a given object implements the
|
|
43
|
+
* Check if a given object implements the CreateUserDTO interface.
|
|
44
44
|
*/
|
|
45
|
-
export function
|
|
45
|
+
export function instanceOfCreateUserDTO(value: object): boolean {
|
|
46
46
|
let isInstance = true;
|
|
47
|
-
isInstance = isInstance && "email" in value;
|
|
48
47
|
isInstance = isInstance && "code" in value;
|
|
48
|
+
isInstance = isInstance && "email" in value;
|
|
49
49
|
isInstance = isInstance && "redirectUri" in value;
|
|
50
50
|
|
|
51
51
|
return isInstance;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
export function
|
|
55
|
-
return
|
|
54
|
+
export function CreateUserDTOFromJSON(json: any): CreateUserDTO {
|
|
55
|
+
return CreateUserDTOFromJSONTyped(json, false);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
export function
|
|
58
|
+
export function CreateUserDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserDTO {
|
|
59
59
|
if ((json === undefined) || (json === null)) {
|
|
60
60
|
return json;
|
|
61
61
|
}
|
|
62
62
|
return {
|
|
63
63
|
|
|
64
|
-
'email': json['email'],
|
|
65
64
|
'code': json['code'],
|
|
65
|
+
'email': json['email'],
|
|
66
66
|
'redirectUri': json['redirectUri'],
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
export function
|
|
70
|
+
export function CreateUserDTOToJSON(value?: CreateUserDTO | null): any {
|
|
71
71
|
if (value === undefined) {
|
|
72
72
|
return undefined;
|
|
73
73
|
}
|
|
@@ -76,8 +76,8 @@ export function CreateUserDtoToJSON(value?: CreateUserDto | null): any {
|
|
|
76
76
|
}
|
|
77
77
|
return {
|
|
78
78
|
|
|
79
|
-
'email': value.email,
|
|
80
79
|
'code': value.code,
|
|
80
|
+
'email': value.email,
|
|
81
81
|
'redirectUri': value.redirectUri,
|
|
82
82
|
};
|
|
83
83
|
}
|
package/models/ErrorDTO.js
CHANGED
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ErrorDTOToJSON = exports.ErrorDTOFromJSONTyped = exports.ErrorDTOFromJSON = exports.instanceOfErrorDTO = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
17
18
|
/**
|
|
18
19
|
* Check if a given object implements the ErrorDTO interface.
|
|
19
20
|
*/
|
|
20
21
|
function instanceOfErrorDTO(value) {
|
|
21
22
|
let isInstance = true;
|
|
22
|
-
isInstance = isInstance && "message" in value;
|
|
23
23
|
return isInstance;
|
|
24
24
|
}
|
|
25
25
|
exports.instanceOfErrorDTO = instanceOfErrorDTO;
|
|
@@ -32,7 +32,7 @@ function ErrorDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
-
'message': json['message'],
|
|
35
|
+
'message': !(0, runtime_1.exists)(json, 'message') ? undefined : json['message'],
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
exports.ErrorDTOFromJSONTyped = ErrorDTOFromJSONTyped;
|
package/models/ErrorDTO.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorDTO.js","sourceRoot":"","sources":["ErrorDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;
|
|
1
|
+
{"version":3,"file":"ErrorDTO.js","sourceRoot":"","sources":["ErrorDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAEH,wCAA+C;AAe/C;;GAEG;AACH,SAAgB,kBAAkB,CAAC,KAAa;IAC5C,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAJD,gDAIC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAFD,4CAEC;AAED,SAAgB,qBAAqB,CAAC,IAAS,EAAE,mBAA4B;IACzE,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;KACpE,CAAC;AACN,CAAC;AARD,sDAQC;AAED,SAAgB,cAAc,CAAC,KAAuB;IAClD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,OAAO;KAC3B,CAAC;AACN,CAAC;AAXD,wCAWC"}
|
package/models/ErrorDTO.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface ErrorDTO {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ErrorDTO
|
|
26
26
|
*/
|
|
27
|
-
message
|
|
27
|
+
message?: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
@@ -32,7 +32,6 @@ export interface ErrorDTO {
|
|
|
32
32
|
*/
|
|
33
33
|
export function instanceOfErrorDTO(value: object): boolean {
|
|
34
34
|
let isInstance = true;
|
|
35
|
-
isInstance = isInstance && "message" in value;
|
|
36
35
|
|
|
37
36
|
return isInstance;
|
|
38
37
|
}
|
|
@@ -47,7 +46,7 @@ export function ErrorDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
47
46
|
}
|
|
48
47
|
return {
|
|
49
48
|
|
|
50
|
-
'message': json['message'],
|
|
49
|
+
'message': !exists(json, 'message') ? undefined : json['message'],
|
|
51
50
|
};
|
|
52
51
|
}
|
|
53
52
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tuix Services
|
|
6
|
+
* Tuix Services API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SlackAccountResponseDTOToJSON = exports.SlackAccountResponseDTOFromJSONTyped = exports.SlackAccountResponseDTOFromJSON = exports.instanceOfSlackAccountResponseDTO = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the SlackAccountResponseDTO interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfSlackAccountResponseDTO(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "slackAccountId" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfSlackAccountResponseDTO = instanceOfSlackAccountResponseDTO;
|
|
26
|
+
function SlackAccountResponseDTOFromJSON(json) {
|
|
27
|
+
return SlackAccountResponseDTOFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.SlackAccountResponseDTOFromJSON = SlackAccountResponseDTOFromJSON;
|
|
30
|
+
function SlackAccountResponseDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'slackAccountId': json['slackAccountId'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.SlackAccountResponseDTOFromJSONTyped = SlackAccountResponseDTOFromJSONTyped;
|
|
39
|
+
function SlackAccountResponseDTOToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'slackAccountId': value.slackAccountId,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.SlackAccountResponseDTOToJSON = SlackAccountResponseDTOToJSON;
|
|
51
|
+
//# sourceMappingURL=SlackAccountResponseDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlackAccountResponseDTO.js","sourceRoot":"","sources":["SlackAccountResponseDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAiBH;;GAEG;AACH,SAAgB,iCAAiC,CAAC,KAAa;IAC3D,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,gBAAgB,IAAI,KAAK,CAAC;IAErD,OAAO,UAAU,CAAC;AACtB,CAAC;AALD,8EAKC;AAED,SAAgB,+BAA+B,CAAC,IAAS;IACrD,OAAO,oCAAoC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC;AAFD,0EAEC;AAED,SAAgB,oCAAoC,CAAC,IAAS,EAAE,mBAA4B;IACxF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC;KAC3C,CAAC;AACN,CAAC;AARD,oFAQC;AAED,SAAgB,6BAA6B,CAAC,KAAsC;IAChF,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,gBAAgB,EAAE,KAAK,CAAC,cAAc;KACzC,CAAC;AACN,CAAC;AAXD,sEAWC"}
|
|
@@ -16,32 +16,32 @@ import { exists, mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface SlackAccountResponseDTO
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface SlackAccountResponseDTO {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof SlackAccountResponseDTO
|
|
26
26
|
*/
|
|
27
27
|
slackAccountId: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Check if a given object implements the
|
|
31
|
+
* Check if a given object implements the SlackAccountResponseDTO interface.
|
|
32
32
|
*/
|
|
33
|
-
export function
|
|
33
|
+
export function instanceOfSlackAccountResponseDTO(value: object): boolean {
|
|
34
34
|
let isInstance = true;
|
|
35
35
|
isInstance = isInstance && "slackAccountId" in value;
|
|
36
36
|
|
|
37
37
|
return isInstance;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export function
|
|
41
|
-
return
|
|
40
|
+
export function SlackAccountResponseDTOFromJSON(json: any): SlackAccountResponseDTO {
|
|
41
|
+
return SlackAccountResponseDTOFromJSONTyped(json, false);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export function
|
|
44
|
+
export function SlackAccountResponseDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): SlackAccountResponseDTO {
|
|
45
45
|
if ((json === undefined) || (json === null)) {
|
|
46
46
|
return json;
|
|
47
47
|
}
|
|
@@ -51,7 +51,7 @@ export function SlackAccountReponseDtoFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
export function
|
|
54
|
+
export function SlackAccountResponseDTOToJSON(value?: SlackAccountResponseDTO | null): any {
|
|
55
55
|
if (value === undefined) {
|
|
56
56
|
return undefined;
|
|
57
57
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tuix Services
|
|
6
|
+
* Tuix Services API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SlackUserDTOToJSON = exports.SlackUserDTOFromJSONTyped = exports.SlackUserDTOFromJSON = exports.instanceOfSlackUserDTO = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SlackUserDTO interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfSlackUserDTO(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfSlackUserDTO = instanceOfSlackUserDTO;
|
|
26
|
+
function SlackUserDTOFromJSON(json) {
|
|
27
|
+
return SlackUserDTOFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.SlackUserDTOFromJSON = SlackUserDTOFromJSON;
|
|
30
|
+
function SlackUserDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
|
|
36
|
+
'timeZone': !(0, runtime_1.exists)(json, 'timeZone') ? undefined : json['timeZone'],
|
|
37
|
+
'workingHours': !(0, runtime_1.exists)(json, 'workingHours') ? undefined : json['workingHours'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.SlackUserDTOFromJSONTyped = SlackUserDTOFromJSONTyped;
|
|
41
|
+
function SlackUserDTOToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'email': value.email,
|
|
50
|
+
'timeZone': value.timeZone,
|
|
51
|
+
'workingHours': value.workingHours,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.SlackUserDTOToJSON = SlackUserDTOToJSON;
|
|
55
|
+
//# sourceMappingURL=SlackUserDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlackUserDTO.js","sourceRoot":"","sources":["SlackUserDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAEH,wCAA+C;AA2B/C;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAJD,wDAIC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAFD,oDAEC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QAC3D,UAAU,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QACpE,cAAc,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC;KACnF,CAAC;AACN,CAAC;AAVD,8DAUC;AAED,SAAgB,kBAAkB,CAAC,KAA2B;IAC1D,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,cAAc,EAAE,KAAK,CAAC,YAAY;KACrC,CAAC;AACN,CAAC;AAbD,gDAaC"}
|