tuix-timesheets-api 0.5.7 → 0.5.9
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 +14 -5
- package/apis/TuixTimesheetsClientApi.ts +75 -71
- package/models/{UpdateClientDto.ts → ClientDTO.ts} +60 -36
- package/models/{ClientsIdPatchRequest.ts → ClientsGet200Response.ts} +60 -36
- package/models/ClientsPost400Response.ts +65 -0
- package/models/ErrorDTO.ts +65 -0
- package/models/ErrorDto.ts +66 -0
- package/models/Subscription.ts +102 -0
- package/models/SubscriptionSentDto.ts +84 -0
- package/models/SubscriptionsArrayDto.ts +73 -0
- package/models/SubscriptionsGet200Response.ts +73 -0
- package/models/SubscriptionsGet200ResponseSubscriptionsInner.ts +102 -0
- package/models/SubscriptionsGet500Response.ts +66 -0
- package/models/SubscriptionsNewsletterPost201Response.ts +73 -0
- package/models/SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner.ts +84 -0
- package/models/SubscriptionsSentResponseDto.ts +73 -0
- package/models/index.ts +14 -5
- package/package.json +1 -1
- package/apis/TuixTimesheetsClientApi.js +0 -748
- package/apis/TuixTimesheetsClientApi.js.map +0 -1
- package/apis/index.js +0 -20
- package/apis/index.js.map +0 -1
- package/index.js +0 -22
- package/index.js.map +0 -1
- package/models/Client.js +0 -78
- package/models/Client.js.map +0 -1
- package/models/Client.ts +0 -147
- package/models/ClientsGet200ResponseInner.js +0 -78
- package/models/ClientsGet200ResponseInner.js.map +0 -1
- package/models/ClientsGet200ResponseInner.ts +0 -147
- package/models/ClientsIdPatchRequest.js +0 -69
- package/models/ClientsIdPatchRequest.js.map +0 -1
- package/models/CompaniesGet200ResponseInner.js +0 -99
- package/models/CompaniesGet200ResponseInner.js.map +0 -1
- package/models/CompaniesIdPatchRequest.js +0 -85
- package/models/CompaniesIdPatchRequest.js.map +0 -1
- package/models/CompaniesPostRequest.js +0 -102
- package/models/CompaniesPostRequest.js.map +0 -1
- package/models/Company.js +0 -99
- package/models/Company.js.map +0 -1
- package/models/CreateClientDTO.js +0 -78
- package/models/CreateClientDTO.js.map +0 -1
- package/models/CreateClientDTO.ts +0 -147
- package/models/CreateCompanyDTO.js +0 -102
- package/models/CreateCompanyDTO.js.map +0 -1
- package/models/CreateSubscriptionDTO.js +0 -54
- package/models/CreateSubscriptionDTO.js.map +0 -1
- package/models/EmailTemplateDto.js +0 -51
- package/models/EmailTemplateDto.js.map +0 -1
- package/models/SendNewsletterDto.js +0 -51
- package/models/SendNewsletterDto.js.map +0 -1
- package/models/SubscriptionsNewsletterPostRequest.js +0 -51
- package/models/SubscriptionsNewsletterPostRequest.js.map +0 -1
- package/models/SubscriptionsPostRequest.js +0 -54
- package/models/SubscriptionsPostRequest.js.map +0 -1
- package/models/TemplatesPostRequest.js +0 -51
- package/models/TemplatesPostRequest.js.map +0 -1
- package/models/TestUsersGet200ResponseInner.js +0 -57
- package/models/TestUsersGet200ResponseInner.js.map +0 -1
- package/models/UpdateClientDto.js +0 -69
- package/models/UpdateClientDto.js.map +0 -1
- package/models/UpdateCompanyDto.js +0 -85
- package/models/UpdateCompanyDto.js.map +0 -1
- package/models/UserDTOSc.js +0 -57
- package/models/UserDTOSc.js.map +0 -1
- package/models/index.js +0 -38
- package/models/index.js.map +0 -1
- package/runtime.js +0 -326
- package/runtime.js.map +0 -1
|
@@ -16,104 +16,125 @@ import { exists, mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface ClientsGet200Response
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface ClientsGet200Response {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof ClientsGet200Response
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
city?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof ClientsGet200Response
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
companyName?: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof ClientsGet200Response
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
country?: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof ClientsGet200Response
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
createdAt?: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
|
-
* @memberof
|
|
49
|
+
* @memberof ClientsGet200Response
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
email?: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
|
-
* @memberof
|
|
55
|
+
* @memberof ClientsGet200Response
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
houseNumber?: string;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
61
|
-
* @memberof
|
|
61
|
+
* @memberof ClientsGet200Response
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
id?: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
67
|
-
* @memberof
|
|
67
|
+
* @memberof ClientsGet200Response
|
|
68
68
|
*/
|
|
69
69
|
phoneNumber?: string;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @type {string}
|
|
73
|
-
* @memberof
|
|
73
|
+
* @memberof ClientsGet200Response
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
postalCode?: string;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {boolean}
|
|
79
|
-
* @memberof
|
|
79
|
+
* @memberof ClientsGet200Response
|
|
80
80
|
*/
|
|
81
81
|
reverseCharged?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof ClientsGet200Response
|
|
86
|
+
*/
|
|
87
|
+
street?: string;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof ClientsGet200Response
|
|
92
|
+
*/
|
|
93
|
+
updatedAt?: string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof ClientsGet200Response
|
|
98
|
+
*/
|
|
99
|
+
vatNumber?: string;
|
|
82
100
|
}
|
|
83
101
|
|
|
84
102
|
/**
|
|
85
|
-
* Check if a given object implements the
|
|
103
|
+
* Check if a given object implements the ClientsGet200Response interface.
|
|
86
104
|
*/
|
|
87
|
-
export function
|
|
105
|
+
export function instanceOfClientsGet200Response(value: object): boolean {
|
|
88
106
|
let isInstance = true;
|
|
89
107
|
|
|
90
108
|
return isInstance;
|
|
91
109
|
}
|
|
92
110
|
|
|
93
|
-
export function
|
|
94
|
-
return
|
|
111
|
+
export function ClientsGet200ResponseFromJSON(json: any): ClientsGet200Response {
|
|
112
|
+
return ClientsGet200ResponseFromJSONTyped(json, false);
|
|
95
113
|
}
|
|
96
114
|
|
|
97
|
-
export function
|
|
115
|
+
export function ClientsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientsGet200Response {
|
|
98
116
|
if ((json === undefined) || (json === null)) {
|
|
99
117
|
return json;
|
|
100
118
|
}
|
|
101
119
|
return {
|
|
102
120
|
|
|
121
|
+
'city': !exists(json, 'city') ? undefined : json['city'],
|
|
103
122
|
'companyName': !exists(json, 'companyName') ? undefined : json['companyName'],
|
|
123
|
+
'country': !exists(json, 'country') ? undefined : json['country'],
|
|
124
|
+
'createdAt': !exists(json, 'createdAt') ? undefined : json['createdAt'],
|
|
104
125
|
'email': !exists(json, 'email') ? undefined : json['email'],
|
|
105
|
-
'street': !exists(json, 'street') ? undefined : json['street'],
|
|
106
|
-
'postalCode': !exists(json, 'postalCode') ? undefined : json['postalCode'],
|
|
107
126
|
'houseNumber': !exists(json, 'houseNumber') ? undefined : json['houseNumber'],
|
|
108
|
-
'
|
|
109
|
-
'country': !exists(json, 'country') ? undefined : json['country'],
|
|
127
|
+
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
110
128
|
'phoneNumber': !exists(json, 'phoneNumber') ? undefined : json['phoneNumber'],
|
|
111
|
-
'
|
|
129
|
+
'postalCode': !exists(json, 'postalCode') ? undefined : json['postalCode'],
|
|
112
130
|
'reverseCharged': !exists(json, 'reverseCharged') ? undefined : json['reverseCharged'],
|
|
131
|
+
'street': !exists(json, 'street') ? undefined : json['street'],
|
|
132
|
+
'updatedAt': !exists(json, 'updatedAt') ? undefined : json['updatedAt'],
|
|
133
|
+
'vatNumber': !exists(json, 'vatNumber') ? undefined : json['vatNumber'],
|
|
113
134
|
};
|
|
114
135
|
}
|
|
115
136
|
|
|
116
|
-
export function
|
|
137
|
+
export function ClientsGet200ResponseToJSON(value?: ClientsGet200Response | null): any {
|
|
117
138
|
if (value === undefined) {
|
|
118
139
|
return undefined;
|
|
119
140
|
}
|
|
@@ -122,16 +143,19 @@ export function ClientsIdPatchRequestToJSON(value?: ClientsIdPatchRequest | null
|
|
|
122
143
|
}
|
|
123
144
|
return {
|
|
124
145
|
|
|
146
|
+
'city': value.city,
|
|
125
147
|
'companyName': value.companyName,
|
|
148
|
+
'country': value.country,
|
|
149
|
+
'createdAt': value.createdAt,
|
|
126
150
|
'email': value.email,
|
|
127
|
-
'street': value.street,
|
|
128
|
-
'postalCode': value.postalCode,
|
|
129
151
|
'houseNumber': value.houseNumber,
|
|
130
|
-
'
|
|
131
|
-
'country': value.country,
|
|
152
|
+
'id': value.id,
|
|
132
153
|
'phoneNumber': value.phoneNumber,
|
|
133
|
-
'
|
|
154
|
+
'postalCode': value.postalCode,
|
|
134
155
|
'reverseCharged': value.reverseCharged,
|
|
156
|
+
'street': value.street,
|
|
157
|
+
'updatedAt': value.updatedAt,
|
|
158
|
+
'vatNumber': value.vatNumber,
|
|
135
159
|
};
|
|
136
160
|
}
|
|
137
161
|
|
|
@@ -0,0 +1,65 @@
|
|
|
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 ClientsPost400Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ClientsPost400Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ClientsPost400Response
|
|
26
|
+
*/
|
|
27
|
+
message?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ClientsPost400Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfClientsPost400Response(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
|
|
36
|
+
return isInstance;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ClientsPost400ResponseFromJSON(json: any): ClientsPost400Response {
|
|
40
|
+
return ClientsPost400ResponseFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ClientsPost400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientsPost400Response {
|
|
44
|
+
if ((json === undefined) || (json === null)) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'message': !exists(json, 'message') ? undefined : json['message'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ClientsPost400ResponseToJSON(value?: ClientsPost400Response | null): any {
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'message': value.message,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 ErrorDTO
|
|
20
|
+
*/
|
|
21
|
+
export interface ErrorDTO {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ErrorDTO
|
|
26
|
+
*/
|
|
27
|
+
message?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ErrorDTO interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfErrorDTO(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
|
|
36
|
+
return isInstance;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ErrorDTOFromJSON(json: any): ErrorDTO {
|
|
40
|
+
return ErrorDTOFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ErrorDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorDTO {
|
|
44
|
+
if ((json === undefined) || (json === null)) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'message': !exists(json, 'message') ? undefined : json['message'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ErrorDTOToJSON(value?: ErrorDTO | null): any {
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'message': value.message,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 ErrorDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ErrorDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ErrorDto
|
|
26
|
+
*/
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ErrorDto interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfErrorDto(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "message" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function ErrorDtoFromJSON(json: any): ErrorDto {
|
|
41
|
+
return ErrorDtoFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ErrorDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorDto {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'message': json['message'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ErrorDtoToJSON(value?: ErrorDto | null): any {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'message': value.message,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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 Subscription
|
|
20
|
+
*/
|
|
21
|
+
export interface Subscription {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Subscription
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof Subscription
|
|
32
|
+
*/
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof Subscription
|
|
38
|
+
*/
|
|
39
|
+
updatedAt: Date;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Subscription
|
|
44
|
+
*/
|
|
45
|
+
email: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof Subscription
|
|
50
|
+
*/
|
|
51
|
+
language: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the Subscription interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfSubscription(value: object): boolean {
|
|
58
|
+
let isInstance = true;
|
|
59
|
+
isInstance = isInstance && "id" in value;
|
|
60
|
+
isInstance = isInstance && "createdAt" in value;
|
|
61
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
62
|
+
isInstance = isInstance && "email" in value;
|
|
63
|
+
isInstance = isInstance && "language" in value;
|
|
64
|
+
|
|
65
|
+
return isInstance;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function SubscriptionFromJSON(json: any): Subscription {
|
|
69
|
+
return SubscriptionFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function SubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Subscription {
|
|
73
|
+
if ((json === undefined) || (json === null)) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'id': json['id'],
|
|
79
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
80
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
81
|
+
'email': json['email'],
|
|
82
|
+
'language': json['language'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function SubscriptionToJSON(value?: Subscription | null): any {
|
|
87
|
+
if (value === undefined) {
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
if (value === null) {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value.id,
|
|
96
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
97
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
98
|
+
'email': value.email,
|
|
99
|
+
'language': value.language,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 SubscriptionSentDto
|
|
20
|
+
*/
|
|
21
|
+
export interface SubscriptionSentDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SubscriptionSentDto
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SubscriptionSentDto
|
|
32
|
+
*/
|
|
33
|
+
language: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof SubscriptionSentDto
|
|
38
|
+
*/
|
|
39
|
+
isSent: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the SubscriptionSentDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfSubscriptionSentDto(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "email" in value;
|
|
48
|
+
isInstance = isInstance && "language" in value;
|
|
49
|
+
isInstance = isInstance && "isSent" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function SubscriptionSentDtoFromJSON(json: any): SubscriptionSentDto {
|
|
55
|
+
return SubscriptionSentDtoFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function SubscriptionSentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionSentDto {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'email': json['email'],
|
|
65
|
+
'language': json['language'],
|
|
66
|
+
'isSent': json['isSent'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function SubscriptionSentDtoToJSON(value?: SubscriptionSentDto | null): any {
|
|
71
|
+
if (value === undefined) {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
if (value === null) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'email': value.email,
|
|
80
|
+
'language': value.language,
|
|
81
|
+
'isSent': value.isSent,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { SubscriptionsGet200ResponseSubscriptionsInner } from './SubscriptionsGet200ResponseSubscriptionsInner';
|
|
17
|
+
import {
|
|
18
|
+
SubscriptionsGet200ResponseSubscriptionsInnerFromJSON,
|
|
19
|
+
SubscriptionsGet200ResponseSubscriptionsInnerFromJSONTyped,
|
|
20
|
+
SubscriptionsGet200ResponseSubscriptionsInnerToJSON,
|
|
21
|
+
} from './SubscriptionsGet200ResponseSubscriptionsInner';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface SubscriptionsArrayDto
|
|
27
|
+
*/
|
|
28
|
+
export interface SubscriptionsArrayDto {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<SubscriptionsGet200ResponseSubscriptionsInner>}
|
|
32
|
+
* @memberof SubscriptionsArrayDto
|
|
33
|
+
*/
|
|
34
|
+
subscriptions: Array<SubscriptionsGet200ResponseSubscriptionsInner>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SubscriptionsArrayDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfSubscriptionsArrayDto(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "subscriptions" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function SubscriptionsArrayDtoFromJSON(json: any): SubscriptionsArrayDto {
|
|
48
|
+
return SubscriptionsArrayDtoFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SubscriptionsArrayDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionsArrayDto {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'subscriptions': ((json['subscriptions'] as Array<any>).map(SubscriptionsGet200ResponseSubscriptionsInnerFromJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function SubscriptionsArrayDtoToJSON(value?: SubscriptionsArrayDto | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'subscriptions': ((value.subscriptions as Array<any>).map(SubscriptionsGet200ResponseSubscriptionsInnerToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|