tuix-timesheets-api 0.45.0 → 0.46.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 +2 -3
- package/apis/TuixTimesheetsClientApi.js +51 -63
- package/apis/TuixTimesheetsClientApi.js.map +1 -1
- package/apis/TuixTimesheetsClientApi.ts +73 -92
- package/models/EmailTemplateDTO.js +57 -0
- package/models/EmailTemplateDTO.js.map +1 -0
- package/models/EmailTemplateDTO.ts +89 -0
- package/models/PaginatedEmailTemplateDTO.js +64 -0
- package/models/PaginatedEmailTemplateDTO.js.map +1 -0
- package/models/PaginatedEmailTemplateDTO.ts +109 -0
- package/models/index.js +2 -3
- package/models/index.js.map +1 -1
- package/models/index.ts +2 -3
- package/package.json +1 -1
- package/models/EmailTemplates.js +0 -60
- package/models/EmailTemplates.js.map +0 -1
- package/models/EmailTemplates.ts +0 -93
- package/models/SDKTestRequestDTO.js +0 -60
- package/models/SDKTestRequestDTO.js.map +0 -1
- package/models/SDKTestRequestDTO.ts +0 -93
- package/models/SDKTestResponseDTO.js +0 -60
- package/models/SDKTestResponseDTO.js.map +0 -1
- package/models/SDKTestResponseDTO.ts +0 -93
|
@@ -27,7 +27,7 @@ import type {
|
|
|
27
27
|
CreateJiraUserDto,
|
|
28
28
|
CreateSubscriptionDTO,
|
|
29
29
|
CreateUserDto,
|
|
30
|
-
|
|
30
|
+
EmailTemplateDTO,
|
|
31
31
|
EmployeeDTO,
|
|
32
32
|
EmployeeInvoiceDTO,
|
|
33
33
|
EmployeeUpdateDTO,
|
|
@@ -45,6 +45,7 @@ import type {
|
|
|
45
45
|
PaginatedAdjustedTimesheets,
|
|
46
46
|
PaginatedClientInvoices,
|
|
47
47
|
PaginatedClients,
|
|
48
|
+
PaginatedEmailTemplateDTO,
|
|
48
49
|
PaginatedEmployeeInvoices,
|
|
49
50
|
PaginatedEmployeeProjects,
|
|
50
51
|
PaginatedEmployees,
|
|
@@ -57,8 +58,6 @@ import type {
|
|
|
57
58
|
ProjectDTO,
|
|
58
59
|
ProjectInputDTO,
|
|
59
60
|
ProjectUpdateDTO,
|
|
60
|
-
SDKTestRequestDTO,
|
|
61
|
-
SDKTestResponseDTO,
|
|
62
61
|
SendNewsletterDto,
|
|
63
62
|
SlackAccountReponseDto,
|
|
64
63
|
SlackUserDto,
|
|
@@ -97,8 +96,8 @@ import {
|
|
|
97
96
|
CreateSubscriptionDTOToJSON,
|
|
98
97
|
CreateUserDtoFromJSON,
|
|
99
98
|
CreateUserDtoToJSON,
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
EmailTemplateDTOFromJSON,
|
|
100
|
+
EmailTemplateDTOToJSON,
|
|
102
101
|
EmployeeDTOFromJSON,
|
|
103
102
|
EmployeeDTOToJSON,
|
|
104
103
|
EmployeeInvoiceDTOFromJSON,
|
|
@@ -133,6 +132,8 @@ import {
|
|
|
133
132
|
PaginatedClientInvoicesToJSON,
|
|
134
133
|
PaginatedClientsFromJSON,
|
|
135
134
|
PaginatedClientsToJSON,
|
|
135
|
+
PaginatedEmailTemplateDTOFromJSON,
|
|
136
|
+
PaginatedEmailTemplateDTOToJSON,
|
|
136
137
|
PaginatedEmployeeInvoicesFromJSON,
|
|
137
138
|
PaginatedEmployeeInvoicesToJSON,
|
|
138
139
|
PaginatedEmployeeProjectsFromJSON,
|
|
@@ -157,10 +158,6 @@ import {
|
|
|
157
158
|
ProjectInputDTOToJSON,
|
|
158
159
|
ProjectUpdateDTOFromJSON,
|
|
159
160
|
ProjectUpdateDTOToJSON,
|
|
160
|
-
SDKTestRequestDTOFromJSON,
|
|
161
|
-
SDKTestRequestDTOToJSON,
|
|
162
|
-
SDKTestResponseDTOFromJSON,
|
|
163
|
-
SDKTestResponseDTOToJSON,
|
|
164
161
|
SendNewsletterDtoFromJSON,
|
|
165
162
|
SendNewsletterDtoToJSON,
|
|
166
163
|
SlackAccountReponseDtoFromJSON,
|
|
@@ -411,10 +408,15 @@ export interface GetTeamRequest {
|
|
|
411
408
|
pageSize?: number;
|
|
412
409
|
}
|
|
413
410
|
|
|
414
|
-
export interface
|
|
411
|
+
export interface GetTemplateRequest {
|
|
415
412
|
id: string;
|
|
416
413
|
}
|
|
417
414
|
|
|
415
|
+
export interface GetTemplatesRequest {
|
|
416
|
+
page?: number;
|
|
417
|
+
pageSize?: number;
|
|
418
|
+
}
|
|
419
|
+
|
|
418
420
|
export interface GetTimesheetRequest {
|
|
419
421
|
projectId: string;
|
|
420
422
|
timesheetId: string;
|
|
@@ -443,15 +445,11 @@ export interface RemoveJiraAccountRequest {
|
|
|
443
445
|
jiraAccountId: string;
|
|
444
446
|
}
|
|
445
447
|
|
|
446
|
-
export interface SdkTestRequest {
|
|
447
|
-
sDKTestRequestDTO: SDKTestRequestDTO;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
448
|
export interface SendEmailRequest {
|
|
451
449
|
from: string;
|
|
452
|
-
to: string;
|
|
453
450
|
subject: string;
|
|
454
451
|
templateUUID: string;
|
|
452
|
+
to: string;
|
|
455
453
|
body?: string;
|
|
456
454
|
data?: string;
|
|
457
455
|
file?: Blob;
|
|
@@ -528,8 +526,8 @@ export interface UploadPdfTemplateRequest {
|
|
|
528
526
|
}
|
|
529
527
|
|
|
530
528
|
export interface UploadTemplateRequest {
|
|
531
|
-
name: string;
|
|
532
529
|
file: Blob;
|
|
530
|
+
name: string;
|
|
533
531
|
}
|
|
534
532
|
|
|
535
533
|
/**
|
|
@@ -2703,11 +2701,12 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2703
2701
|
}
|
|
2704
2702
|
|
|
2705
2703
|
/**
|
|
2706
|
-
*
|
|
2704
|
+
* Return a template
|
|
2705
|
+
* Return a template
|
|
2707
2706
|
*/
|
|
2708
|
-
async
|
|
2707
|
+
async getTemplateRaw(requestParameters: GetTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
2709
2708
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
2710
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling
|
|
2709
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getTemplate.');
|
|
2711
2710
|
}
|
|
2712
2711
|
|
|
2713
2712
|
const queryParameters: any = {};
|
|
@@ -2733,19 +2732,29 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2733
2732
|
}
|
|
2734
2733
|
|
|
2735
2734
|
/**
|
|
2736
|
-
*
|
|
2735
|
+
* Return a template
|
|
2736
|
+
* Return a template
|
|
2737
2737
|
*/
|
|
2738
|
-
async
|
|
2739
|
-
const response = await this.
|
|
2738
|
+
async getTemplate(requestParameters: GetTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
2739
|
+
const response = await this.getTemplateRaw(requestParameters, initOverrides);
|
|
2740
2740
|
return await response.value();
|
|
2741
2741
|
}
|
|
2742
2742
|
|
|
2743
2743
|
/**
|
|
2744
|
-
*
|
|
2744
|
+
* Return all templates
|
|
2745
|
+
* Return all templates
|
|
2745
2746
|
*/
|
|
2746
|
-
async getTemplatesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
2747
|
+
async getTemplatesRaw(requestParameters: GetTemplatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedEmailTemplateDTO>> {
|
|
2747
2748
|
const queryParameters: any = {};
|
|
2748
2749
|
|
|
2750
|
+
if (requestParameters.page !== undefined) {
|
|
2751
|
+
queryParameters['page'] = requestParameters.page;
|
|
2752
|
+
}
|
|
2753
|
+
|
|
2754
|
+
if (requestParameters.pageSize !== undefined) {
|
|
2755
|
+
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2749
2758
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2750
2759
|
|
|
2751
2760
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -2759,14 +2768,15 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2759
2768
|
query: queryParameters,
|
|
2760
2769
|
}, initOverrides);
|
|
2761
2770
|
|
|
2762
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
2771
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedEmailTemplateDTOFromJSON(jsonValue));
|
|
2763
2772
|
}
|
|
2764
2773
|
|
|
2765
2774
|
/**
|
|
2766
|
-
*
|
|
2775
|
+
* Return all templates
|
|
2776
|
+
* Return all templates
|
|
2767
2777
|
*/
|
|
2768
|
-
async getTemplates(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
2769
|
-
const response = await this.getTemplatesRaw(initOverrides);
|
|
2778
|
+
async getTemplates(requestParameters: GetTemplatesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedEmailTemplateDTO> {
|
|
2779
|
+
const response = await this.getTemplatesRaw(requestParameters, initOverrides);
|
|
2770
2780
|
return await response.value();
|
|
2771
2781
|
}
|
|
2772
2782
|
|
|
@@ -3059,50 +3069,14 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
3059
3069
|
}
|
|
3060
3070
|
|
|
3061
3071
|
/**
|
|
3062
|
-
*
|
|
3063
|
-
|
|
3064
|
-
async sdkTestRaw(requestParameters: SdkTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SDKTestResponseDTO>> {
|
|
3065
|
-
if (requestParameters.sDKTestRequestDTO === null || requestParameters.sDKTestRequestDTO === undefined) {
|
|
3066
|
-
throw new runtime.RequiredError('sDKTestRequestDTO','Required parameter requestParameters.sDKTestRequestDTO was null or undefined when calling sdkTest.');
|
|
3067
|
-
}
|
|
3068
|
-
|
|
3069
|
-
const queryParameters: any = {};
|
|
3070
|
-
|
|
3071
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
3072
|
-
|
|
3073
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
3074
|
-
|
|
3075
|
-
const response = await this.request({
|
|
3076
|
-
path: `/sdkTest`,
|
|
3077
|
-
method: 'POST',
|
|
3078
|
-
headers: headerParameters,
|
|
3079
|
-
query: queryParameters,
|
|
3080
|
-
body: SDKTestRequestDTOToJSON(requestParameters.sDKTestRequestDTO),
|
|
3081
|
-
}, initOverrides);
|
|
3082
|
-
|
|
3083
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SDKTestResponseDTOFromJSON(jsonValue));
|
|
3084
|
-
}
|
|
3085
|
-
|
|
3086
|
-
/**
|
|
3087
|
-
*
|
|
3088
|
-
*/
|
|
3089
|
-
async sdkTest(requestParameters: SdkTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SDKTestResponseDTO> {
|
|
3090
|
-
const response = await this.sdkTestRaw(requestParameters, initOverrides);
|
|
3091
|
-
return await response.value();
|
|
3092
|
-
}
|
|
3093
|
-
|
|
3094
|
-
/**
|
|
3095
|
-
*
|
|
3072
|
+
* Send an email
|
|
3073
|
+
* Send an email
|
|
3096
3074
|
*/
|
|
3097
3075
|
async sendEmailRaw(requestParameters: SendEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3098
3076
|
if (requestParameters.from === null || requestParameters.from === undefined) {
|
|
3099
3077
|
throw new runtime.RequiredError('from','Required parameter requestParameters.from was null or undefined when calling sendEmail.');
|
|
3100
3078
|
}
|
|
3101
3079
|
|
|
3102
|
-
if (requestParameters.to === null || requestParameters.to === undefined) {
|
|
3103
|
-
throw new runtime.RequiredError('to','Required parameter requestParameters.to was null or undefined when calling sendEmail.');
|
|
3104
|
-
}
|
|
3105
|
-
|
|
3106
3080
|
if (requestParameters.subject === null || requestParameters.subject === undefined) {
|
|
3107
3081
|
throw new runtime.RequiredError('subject','Required parameter requestParameters.subject was null or undefined when calling sendEmail.');
|
|
3108
3082
|
}
|
|
@@ -3111,6 +3085,10 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
3111
3085
|
throw new runtime.RequiredError('templateUUID','Required parameter requestParameters.templateUUID was null or undefined when calling sendEmail.');
|
|
3112
3086
|
}
|
|
3113
3087
|
|
|
3088
|
+
if (requestParameters.to === null || requestParameters.to === undefined) {
|
|
3089
|
+
throw new runtime.RequiredError('to','Required parameter requestParameters.to was null or undefined when calling sendEmail.');
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3114
3092
|
const queryParameters: any = {};
|
|
3115
3093
|
|
|
3116
3094
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -3131,32 +3109,32 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
3131
3109
|
formParams = new URLSearchParams();
|
|
3132
3110
|
}
|
|
3133
3111
|
|
|
3134
|
-
if (requestParameters.
|
|
3135
|
-
formParams.append('
|
|
3112
|
+
if (requestParameters.body !== undefined) {
|
|
3113
|
+
formParams.append('body', requestParameters.body as any);
|
|
3136
3114
|
}
|
|
3137
3115
|
|
|
3138
|
-
if (requestParameters.
|
|
3139
|
-
formParams.append('
|
|
3116
|
+
if (requestParameters.data !== undefined) {
|
|
3117
|
+
formParams.append('data', requestParameters.data as any);
|
|
3140
3118
|
}
|
|
3141
3119
|
|
|
3142
|
-
if (requestParameters.
|
|
3143
|
-
formParams.append('
|
|
3120
|
+
if (requestParameters.file !== undefined) {
|
|
3121
|
+
formParams.append('file', requestParameters.file as any);
|
|
3144
3122
|
}
|
|
3145
3123
|
|
|
3146
|
-
if (requestParameters.
|
|
3147
|
-
formParams.append('
|
|
3124
|
+
if (requestParameters.from !== undefined) {
|
|
3125
|
+
formParams.append('from', requestParameters.from as any);
|
|
3148
3126
|
}
|
|
3149
3127
|
|
|
3150
|
-
if (requestParameters.
|
|
3151
|
-
formParams.append('
|
|
3128
|
+
if (requestParameters.subject !== undefined) {
|
|
3129
|
+
formParams.append('subject', requestParameters.subject as any);
|
|
3152
3130
|
}
|
|
3153
3131
|
|
|
3154
3132
|
if (requestParameters.templateUUID !== undefined) {
|
|
3155
3133
|
formParams.append('templateUUID', requestParameters.templateUUID as any);
|
|
3156
3134
|
}
|
|
3157
3135
|
|
|
3158
|
-
if (requestParameters.
|
|
3159
|
-
formParams.append('
|
|
3136
|
+
if (requestParameters.to !== undefined) {
|
|
3137
|
+
formParams.append('to', requestParameters.to as any);
|
|
3160
3138
|
}
|
|
3161
3139
|
|
|
3162
3140
|
const response = await this.request({
|
|
@@ -3171,7 +3149,8 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
3171
3149
|
}
|
|
3172
3150
|
|
|
3173
3151
|
/**
|
|
3174
|
-
*
|
|
3152
|
+
* Send an email
|
|
3153
|
+
* Send an email
|
|
3175
3154
|
*/
|
|
3176
3155
|
async sendEmail(requestParameters: SendEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3177
3156
|
await this.sendEmailRaw(requestParameters, initOverrides);
|
|
@@ -3763,17 +3742,18 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
3763
3742
|
}
|
|
3764
3743
|
|
|
3765
3744
|
/**
|
|
3766
|
-
*
|
|
3745
|
+
* Upload a template
|
|
3746
|
+
* Upload a template
|
|
3767
3747
|
*/
|
|
3768
|
-
async uploadTemplateRaw(requestParameters: UploadTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
3769
|
-
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
3770
|
-
throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling uploadTemplate.');
|
|
3771
|
-
}
|
|
3772
|
-
|
|
3748
|
+
async uploadTemplateRaw(requestParameters: UploadTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmailTemplateDTO>> {
|
|
3773
3749
|
if (requestParameters.file === null || requestParameters.file === undefined) {
|
|
3774
3750
|
throw new runtime.RequiredError('file','Required parameter requestParameters.file was null or undefined when calling uploadTemplate.');
|
|
3775
3751
|
}
|
|
3776
3752
|
|
|
3753
|
+
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
3754
|
+
throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling uploadTemplate.');
|
|
3755
|
+
}
|
|
3756
|
+
|
|
3777
3757
|
const queryParameters: any = {};
|
|
3778
3758
|
|
|
3779
3759
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -3798,14 +3778,14 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
3798
3778
|
formParams = new URLSearchParams();
|
|
3799
3779
|
}
|
|
3800
3780
|
|
|
3801
|
-
if (requestParameters.name !== undefined) {
|
|
3802
|
-
formParams.append('name', requestParameters.name as any);
|
|
3803
|
-
}
|
|
3804
|
-
|
|
3805
3781
|
if (requestParameters.file !== undefined) {
|
|
3806
3782
|
formParams.append('file', requestParameters.file as any);
|
|
3807
3783
|
}
|
|
3808
3784
|
|
|
3785
|
+
if (requestParameters.name !== undefined) {
|
|
3786
|
+
formParams.append('name', requestParameters.name as any);
|
|
3787
|
+
}
|
|
3788
|
+
|
|
3809
3789
|
const response = await this.request({
|
|
3810
3790
|
path: `/templates`,
|
|
3811
3791
|
method: 'POST',
|
|
@@ -3814,13 +3794,14 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
3814
3794
|
body: formParams,
|
|
3815
3795
|
}, initOverrides);
|
|
3816
3796
|
|
|
3817
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
3797
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EmailTemplateDTOFromJSON(jsonValue));
|
|
3818
3798
|
}
|
|
3819
3799
|
|
|
3820
3800
|
/**
|
|
3821
|
-
*
|
|
3801
|
+
* Upload a template
|
|
3802
|
+
* Upload a template
|
|
3822
3803
|
*/
|
|
3823
|
-
async uploadTemplate(requestParameters: UploadTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
3804
|
+
async uploadTemplate(requestParameters: UploadTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailTemplateDTO> {
|
|
3824
3805
|
const response = await this.uploadTemplateRaw(requestParameters, initOverrides);
|
|
3825
3806
|
return await response.value();
|
|
3826
3807
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.EmailTemplateDTOToJSON = exports.EmailTemplateDTOFromJSONTyped = exports.EmailTemplateDTOFromJSON = exports.instanceOfEmailTemplateDTO = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the EmailTemplateDTO interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfEmailTemplateDTO(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfEmailTemplateDTO = instanceOfEmailTemplateDTO;
|
|
26
|
+
function EmailTemplateDTOFromJSON(json) {
|
|
27
|
+
return EmailTemplateDTOFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.EmailTemplateDTOFromJSON = EmailTemplateDTOFromJSON;
|
|
30
|
+
function EmailTemplateDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : json['createdAt'],
|
|
36
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
37
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
38
|
+
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : json['updatedAt'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.EmailTemplateDTOFromJSONTyped = EmailTemplateDTOFromJSONTyped;
|
|
42
|
+
function EmailTemplateDTOToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'createdAt': value.createdAt,
|
|
51
|
+
'id': value.id,
|
|
52
|
+
'name': value.name,
|
|
53
|
+
'updatedAt': value.updatedAt,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.EmailTemplateDTOToJSON = EmailTemplateDTOToJSON;
|
|
57
|
+
//# sourceMappingURL=EmailTemplateDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmailTemplateDTO.js","sourceRoot":"","sources":["EmailTemplateDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAEH,wCAA+C;AAiC/C;;GAEG;AACH,SAAgB,0BAA0B,CAAC,KAAa;IACpD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAJD,gEAIC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAFD,4DAEC;AAED,SAAgB,6BAA6B,CAAC,IAAS,EAAE,mBAA4B;IACjF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,WAAW,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;QACvE,IAAI,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAClD,MAAM,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,WAAW,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;KAC1E,CAAC;AACN,CAAC;AAXD,sEAWC;AAED,SAAgB,sBAAsB,CAAC,KAA+B;IAClE,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,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,WAAW,EAAE,KAAK,CAAC,SAAS;KAC/B,CAAC;AACN,CAAC;AAdD,wDAcC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tuix Services
|
|
5
|
+
* Tuix Services API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface EmailTemplateDTO
|
|
20
|
+
*/
|
|
21
|
+
export interface EmailTemplateDTO {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof EmailTemplateDTO
|
|
26
|
+
*/
|
|
27
|
+
createdAt?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof EmailTemplateDTO
|
|
32
|
+
*/
|
|
33
|
+
id?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof EmailTemplateDTO
|
|
38
|
+
*/
|
|
39
|
+
name?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof EmailTemplateDTO
|
|
44
|
+
*/
|
|
45
|
+
updatedAt?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the EmailTemplateDTO interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfEmailTemplateDTO(value: object): boolean {
|
|
52
|
+
let isInstance = true;
|
|
53
|
+
|
|
54
|
+
return isInstance;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function EmailTemplateDTOFromJSON(json: any): EmailTemplateDTO {
|
|
58
|
+
return EmailTemplateDTOFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function EmailTemplateDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailTemplateDTO {
|
|
62
|
+
if ((json === undefined) || (json === null)) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'createdAt': !exists(json, 'createdAt') ? undefined : json['createdAt'],
|
|
68
|
+
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
69
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
70
|
+
'updatedAt': !exists(json, 'updatedAt') ? undefined : json['updatedAt'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function EmailTemplateDTOToJSON(value?: EmailTemplateDTO | null): any {
|
|
75
|
+
if (value === undefined) {
|
|
76
|
+
return undefined;
|
|
77
|
+
}
|
|
78
|
+
if (value === null) {
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'createdAt': value.createdAt,
|
|
84
|
+
'id': value.id,
|
|
85
|
+
'name': value.name,
|
|
86
|
+
'updatedAt': value.updatedAt,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
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.PaginatedEmailTemplateDTOToJSON = exports.PaginatedEmailTemplateDTOFromJSONTyped = exports.PaginatedEmailTemplateDTOFromJSON = exports.instanceOfPaginatedEmailTemplateDTO = void 0;
|
|
17
|
+
const EmailTemplateDTO_1 = require("./EmailTemplateDTO");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PaginatedEmailTemplateDTO interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfPaginatedEmailTemplateDTO(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "items" in value;
|
|
24
|
+
isInstance = isInstance && "page" in value;
|
|
25
|
+
isInstance = isInstance && "pageSize" in value;
|
|
26
|
+
isInstance = isInstance && "totalItems" in value;
|
|
27
|
+
isInstance = isInstance && "totalPages" in value;
|
|
28
|
+
return isInstance;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfPaginatedEmailTemplateDTO = instanceOfPaginatedEmailTemplateDTO;
|
|
31
|
+
function PaginatedEmailTemplateDTOFromJSON(json) {
|
|
32
|
+
return PaginatedEmailTemplateDTOFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.PaginatedEmailTemplateDTOFromJSON = PaginatedEmailTemplateDTOFromJSON;
|
|
35
|
+
function PaginatedEmailTemplateDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if ((json === undefined) || (json === null)) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'items': (json['items'].map(EmailTemplateDTO_1.EmailTemplateDTOFromJSON)),
|
|
41
|
+
'page': json['page'],
|
|
42
|
+
'pageSize': json['pageSize'],
|
|
43
|
+
'totalItems': json['totalItems'],
|
|
44
|
+
'totalPages': json['totalPages'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.PaginatedEmailTemplateDTOFromJSONTyped = PaginatedEmailTemplateDTOFromJSONTyped;
|
|
48
|
+
function PaginatedEmailTemplateDTOToJSON(value) {
|
|
49
|
+
if (value === undefined) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
if (value === null) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'items': (value.items.map(EmailTemplateDTO_1.EmailTemplateDTOToJSON)),
|
|
57
|
+
'page': value.page,
|
|
58
|
+
'pageSize': value.pageSize,
|
|
59
|
+
'totalItems': value.totalItems,
|
|
60
|
+
'totalPages': value.totalPages,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.PaginatedEmailTemplateDTOToJSON = PaginatedEmailTemplateDTOToJSON;
|
|
64
|
+
//# sourceMappingURL=PaginatedEmailTemplateDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaginatedEmailTemplateDTO.js","sourceRoot":"","sources":["PaginatedEmailTemplateDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH,yDAI4B;AAwC5B;;GAEG;AACH,SAAgB,mCAAmC,CAAC,KAAa;IAC7D,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,OAAO,IAAI,KAAK,CAAC;IAC5C,UAAU,GAAG,UAAU,IAAI,MAAM,IAAI,KAAK,CAAC;IAC3C,UAAU,GAAG,UAAU,IAAI,UAAU,IAAI,KAAK,CAAC;IAC/C,UAAU,GAAG,UAAU,IAAI,YAAY,IAAI,KAAK,CAAC;IACjD,UAAU,GAAG,UAAU,IAAI,YAAY,IAAI,KAAK,CAAC;IAEjD,OAAO,UAAU,CAAC;AACtB,CAAC;AATD,kFASC;AAED,SAAgB,iCAAiC,CAAC,IAAS;IACvD,OAAO,sCAAsC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC;AAFD,8EAEC;AAED,SAAgB,sCAAsC,CAAC,IAAS,EAAE,mBAA4B;IAC1F,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,CAAE,IAAI,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,2CAAwB,CAAC,CAAC;QACtE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;QAC5B,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAChC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;KACnC,CAAC;AACN,CAAC;AAZD,wFAYC;AAED,SAAgB,+BAA+B,CAAC,KAAwC;IACpF,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,CAAE,KAAK,CAAC,KAAoB,CAAC,GAAG,CAAC,yCAAsB,CAAC,CAAC;QAClE,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,YAAY,EAAE,KAAK,CAAC,UAAU;KACjC,CAAC;AACN,CAAC;AAfD,0EAeC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tuix Services
|
|
5
|
+
* Tuix Services API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { EmailTemplateDTO } from './EmailTemplateDTO';
|
|
17
|
+
import {
|
|
18
|
+
EmailTemplateDTOFromJSON,
|
|
19
|
+
EmailTemplateDTOFromJSONTyped,
|
|
20
|
+
EmailTemplateDTOToJSON,
|
|
21
|
+
} from './EmailTemplateDTO';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface PaginatedEmailTemplateDTO
|
|
27
|
+
*/
|
|
28
|
+
export interface PaginatedEmailTemplateDTO {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<EmailTemplateDTO>}
|
|
32
|
+
* @memberof PaginatedEmailTemplateDTO
|
|
33
|
+
*/
|
|
34
|
+
items: Array<EmailTemplateDTO>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof PaginatedEmailTemplateDTO
|
|
39
|
+
*/
|
|
40
|
+
page: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof PaginatedEmailTemplateDTO
|
|
45
|
+
*/
|
|
46
|
+
pageSize: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof PaginatedEmailTemplateDTO
|
|
51
|
+
*/
|
|
52
|
+
totalItems: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof PaginatedEmailTemplateDTO
|
|
57
|
+
*/
|
|
58
|
+
totalPages: number;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the PaginatedEmailTemplateDTO interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfPaginatedEmailTemplateDTO(value: object): boolean {
|
|
65
|
+
let isInstance = true;
|
|
66
|
+
isInstance = isInstance && "items" in value;
|
|
67
|
+
isInstance = isInstance && "page" in value;
|
|
68
|
+
isInstance = isInstance && "pageSize" in value;
|
|
69
|
+
isInstance = isInstance && "totalItems" in value;
|
|
70
|
+
isInstance = isInstance && "totalPages" in value;
|
|
71
|
+
|
|
72
|
+
return isInstance;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedEmailTemplateDTOFromJSON(json: any): PaginatedEmailTemplateDTO {
|
|
76
|
+
return PaginatedEmailTemplateDTOFromJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedEmailTemplateDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedEmailTemplateDTO {
|
|
80
|
+
if ((json === undefined) || (json === null)) {
|
|
81
|
+
return json;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'items': ((json['items'] as Array<any>).map(EmailTemplateDTOFromJSON)),
|
|
86
|
+
'page': json['page'],
|
|
87
|
+
'pageSize': json['pageSize'],
|
|
88
|
+
'totalItems': json['totalItems'],
|
|
89
|
+
'totalPages': json['totalPages'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function PaginatedEmailTemplateDTOToJSON(value?: PaginatedEmailTemplateDTO | null): any {
|
|
94
|
+
if (value === undefined) {
|
|
95
|
+
return undefined;
|
|
96
|
+
}
|
|
97
|
+
if (value === null) {
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'items': ((value.items as Array<any>).map(EmailTemplateDTOToJSON)),
|
|
103
|
+
'page': value.page,
|
|
104
|
+
'pageSize': value.pageSize,
|
|
105
|
+
'totalItems': value.totalItems,
|
|
106
|
+
'totalPages': value.totalPages,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|