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
|
@@ -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 SubscriptionsGet200Response
|
|
27
|
+
*/
|
|
28
|
+
export interface SubscriptionsGet200Response {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<SubscriptionsGet200ResponseSubscriptionsInner>}
|
|
32
|
+
* @memberof SubscriptionsGet200Response
|
|
33
|
+
*/
|
|
34
|
+
subscriptions: Array<SubscriptionsGet200ResponseSubscriptionsInner>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SubscriptionsGet200Response interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfSubscriptionsGet200Response(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "subscriptions" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function SubscriptionsGet200ResponseFromJSON(json: any): SubscriptionsGet200Response {
|
|
48
|
+
return SubscriptionsGet200ResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SubscriptionsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionsGet200Response {
|
|
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 SubscriptionsGet200ResponseToJSON(value?: SubscriptionsGet200Response | 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
|
+
|
|
@@ -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 SubscriptionsGet200ResponseSubscriptionsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface SubscriptionsGet200ResponseSubscriptionsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SubscriptionsGet200ResponseSubscriptionsInner
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof SubscriptionsGet200ResponseSubscriptionsInner
|
|
32
|
+
*/
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof SubscriptionsGet200ResponseSubscriptionsInner
|
|
38
|
+
*/
|
|
39
|
+
updatedAt: Date;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof SubscriptionsGet200ResponseSubscriptionsInner
|
|
44
|
+
*/
|
|
45
|
+
email: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof SubscriptionsGet200ResponseSubscriptionsInner
|
|
50
|
+
*/
|
|
51
|
+
language: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the SubscriptionsGet200ResponseSubscriptionsInner interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfSubscriptionsGet200ResponseSubscriptionsInner(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 SubscriptionsGet200ResponseSubscriptionsInnerFromJSON(json: any): SubscriptionsGet200ResponseSubscriptionsInner {
|
|
69
|
+
return SubscriptionsGet200ResponseSubscriptionsInnerFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function SubscriptionsGet200ResponseSubscriptionsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionsGet200ResponseSubscriptionsInner {
|
|
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 SubscriptionsGet200ResponseSubscriptionsInnerToJSON(value?: SubscriptionsGet200ResponseSubscriptionsInner | 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,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 SubscriptionsGet500Response
|
|
20
|
+
*/
|
|
21
|
+
export interface SubscriptionsGet500Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SubscriptionsGet500Response
|
|
26
|
+
*/
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SubscriptionsGet500Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfSubscriptionsGet500Response(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "message" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function SubscriptionsGet500ResponseFromJSON(json: any): SubscriptionsGet500Response {
|
|
41
|
+
return SubscriptionsGet500ResponseFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function SubscriptionsGet500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionsGet500Response {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'message': json['message'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function SubscriptionsGet500ResponseToJSON(value?: SubscriptionsGet500Response | 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,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 { SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner } from './SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner';
|
|
17
|
+
import {
|
|
18
|
+
SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInnerFromJSON,
|
|
19
|
+
SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInnerFromJSONTyped,
|
|
20
|
+
SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInnerToJSON,
|
|
21
|
+
} from './SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface SubscriptionsNewsletterPost201Response
|
|
27
|
+
*/
|
|
28
|
+
export interface SubscriptionsNewsletterPost201Response {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner>}
|
|
32
|
+
* @memberof SubscriptionsNewsletterPost201Response
|
|
33
|
+
*/
|
|
34
|
+
subscriptionsProcessed: Array<SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SubscriptionsNewsletterPost201Response interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfSubscriptionsNewsletterPost201Response(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "subscriptionsProcessed" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function SubscriptionsNewsletterPost201ResponseFromJSON(json: any): SubscriptionsNewsletterPost201Response {
|
|
48
|
+
return SubscriptionsNewsletterPost201ResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SubscriptionsNewsletterPost201ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionsNewsletterPost201Response {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'subscriptionsProcessed': ((json['subscriptionsProcessed'] as Array<any>).map(SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInnerFromJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function SubscriptionsNewsletterPost201ResponseToJSON(value?: SubscriptionsNewsletterPost201Response | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'subscriptionsProcessed': ((value.subscriptionsProcessed as Array<any>).map(SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInnerToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -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 SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner
|
|
20
|
+
*/
|
|
21
|
+
export interface SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner
|
|
32
|
+
*/
|
|
33
|
+
language: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner
|
|
38
|
+
*/
|
|
39
|
+
isSent: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfSubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner(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 SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInnerFromJSON(json: any): SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner {
|
|
55
|
+
return SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInnerFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner {
|
|
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 SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInnerToJSON(value?: SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner | 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 { SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner } from './SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner';
|
|
17
|
+
import {
|
|
18
|
+
SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInnerFromJSON,
|
|
19
|
+
SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInnerFromJSONTyped,
|
|
20
|
+
SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInnerToJSON,
|
|
21
|
+
} from './SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface SubscriptionsSentResponseDto
|
|
27
|
+
*/
|
|
28
|
+
export interface SubscriptionsSentResponseDto {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner>}
|
|
32
|
+
* @memberof SubscriptionsSentResponseDto
|
|
33
|
+
*/
|
|
34
|
+
subscriptionsProcessed: Array<SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SubscriptionsSentResponseDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfSubscriptionsSentResponseDto(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "subscriptionsProcessed" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function SubscriptionsSentResponseDtoFromJSON(json: any): SubscriptionsSentResponseDto {
|
|
48
|
+
return SubscriptionsSentResponseDtoFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SubscriptionsSentResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionsSentResponseDto {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'subscriptionsProcessed': ((json['subscriptionsProcessed'] as Array<any>).map(SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInnerFromJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function SubscriptionsSentResponseDtoToJSON(value?: SubscriptionsSentResponseDto | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'subscriptionsProcessed': ((value.subscriptionsProcessed as Array<any>).map(SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInnerToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/models/index.ts
CHANGED
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
3
|
+
export * from './ClientDTO';
|
|
4
|
+
export * from './ClientsGet200Response';
|
|
5
|
+
export * from './ClientsPost400Response';
|
|
6
6
|
export * from './CompaniesGet200ResponseInner';
|
|
7
7
|
export * from './CompaniesIdPatchRequest';
|
|
8
8
|
export * from './CompaniesPostRequest';
|
|
9
9
|
export * from './Company';
|
|
10
|
-
export * from './CreateClientDTO';
|
|
11
10
|
export * from './CreateCompanyDTO';
|
|
12
11
|
export * from './CreateSubscriptionDTO';
|
|
13
12
|
export * from './EmailTemplateDto';
|
|
13
|
+
export * from './ErrorDTO';
|
|
14
|
+
export * from './ErrorDto';
|
|
14
15
|
export * from './SendNewsletterDto';
|
|
16
|
+
export * from './Subscription';
|
|
17
|
+
export * from './SubscriptionSentDto';
|
|
18
|
+
export * from './SubscriptionsArrayDto';
|
|
19
|
+
export * from './SubscriptionsGet200Response';
|
|
20
|
+
export * from './SubscriptionsGet200ResponseSubscriptionsInner';
|
|
21
|
+
export * from './SubscriptionsGet500Response';
|
|
22
|
+
export * from './SubscriptionsNewsletterPost201Response';
|
|
23
|
+
export * from './SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner';
|
|
15
24
|
export * from './SubscriptionsNewsletterPostRequest';
|
|
16
25
|
export * from './SubscriptionsPostRequest';
|
|
26
|
+
export * from './SubscriptionsSentResponseDto';
|
|
17
27
|
export * from './TemplatesPostRequest';
|
|
18
28
|
export * from './TestUsersGet200ResponseInner';
|
|
19
|
-
export * from './UpdateClientDto';
|
|
20
29
|
export * from './UpdateCompanyDto';
|
|
21
30
|
export * from './UserDTOSc';
|