tuix-timesheets-api 0.5.8 → 0.5.10
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 +10 -0
- package/apis/TuixTimesheetsClientApi.ts +35 -12
- 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 +10 -0
- package/package.json +1 -1
- package/apis/TuixTimesheetsClientApi.js +0 -734
- 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/ClientDTO.js +0 -75
- package/models/ClientDTO.js.map +0 -1
- package/models/ClientsGet200Response.js +0 -75
- package/models/ClientsGet200Response.js.map +0 -1
- package/models/ClientsPost400Response.js +0 -51
- package/models/ClientsPost400Response.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/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/ErrorDTO.js +0 -51
- package/models/ErrorDTO.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/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 -37
- package/models/index.js.map +0 -1
- package/runtime.js +0 -326
- package/runtime.js.map +0 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -13,9 +13,19 @@ models/CreateCompanyDTO.ts
|
|
|
13
13
|
models/CreateSubscriptionDTO.ts
|
|
14
14
|
models/EmailTemplateDto.ts
|
|
15
15
|
models/ErrorDTO.ts
|
|
16
|
+
models/ErrorDto.ts
|
|
16
17
|
models/SendNewsletterDto.ts
|
|
18
|
+
models/Subscription.ts
|
|
19
|
+
models/SubscriptionSentDto.ts
|
|
20
|
+
models/SubscriptionsArrayDto.ts
|
|
21
|
+
models/SubscriptionsGet200Response.ts
|
|
22
|
+
models/SubscriptionsGet200ResponseSubscriptionsInner.ts
|
|
23
|
+
models/SubscriptionsGet500Response.ts
|
|
24
|
+
models/SubscriptionsNewsletterPost201Response.ts
|
|
25
|
+
models/SubscriptionsNewsletterPost201ResponseSubscriptionsProcessedInner.ts
|
|
17
26
|
models/SubscriptionsNewsletterPostRequest.ts
|
|
18
27
|
models/SubscriptionsPostRequest.ts
|
|
28
|
+
models/SubscriptionsSentResponseDto.ts
|
|
19
29
|
models/TemplatesPostRequest.ts
|
|
20
30
|
models/TestUsersGet200ResponseInner.ts
|
|
21
31
|
models/UpdateCompanyDto.ts
|
|
@@ -20,6 +20,10 @@ import type {
|
|
|
20
20
|
CompaniesGet200ResponseInner,
|
|
21
21
|
CompaniesIdPatchRequest,
|
|
22
22
|
CompaniesPostRequest,
|
|
23
|
+
SubscriptionsGet200Response,
|
|
24
|
+
SubscriptionsGet200ResponseSubscriptionsInner,
|
|
25
|
+
SubscriptionsGet500Response,
|
|
26
|
+
SubscriptionsNewsletterPost201Response,
|
|
23
27
|
SubscriptionsNewsletterPostRequest,
|
|
24
28
|
SubscriptionsPostRequest,
|
|
25
29
|
TemplatesPostRequest,
|
|
@@ -36,6 +40,14 @@ import {
|
|
|
36
40
|
CompaniesIdPatchRequestToJSON,
|
|
37
41
|
CompaniesPostRequestFromJSON,
|
|
38
42
|
CompaniesPostRequestToJSON,
|
|
43
|
+
SubscriptionsGet200ResponseFromJSON,
|
|
44
|
+
SubscriptionsGet200ResponseToJSON,
|
|
45
|
+
SubscriptionsGet200ResponseSubscriptionsInnerFromJSON,
|
|
46
|
+
SubscriptionsGet200ResponseSubscriptionsInnerToJSON,
|
|
47
|
+
SubscriptionsGet500ResponseFromJSON,
|
|
48
|
+
SubscriptionsGet500ResponseToJSON,
|
|
49
|
+
SubscriptionsNewsletterPost201ResponseFromJSON,
|
|
50
|
+
SubscriptionsNewsletterPost201ResponseToJSON,
|
|
39
51
|
SubscriptionsNewsletterPostRequestFromJSON,
|
|
40
52
|
SubscriptionsNewsletterPostRequestToJSON,
|
|
41
53
|
SubscriptionsPostRequestFromJSON,
|
|
@@ -673,8 +685,9 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
673
685
|
}
|
|
674
686
|
|
|
675
687
|
/**
|
|
688
|
+
*
|
|
676
689
|
*/
|
|
677
|
-
async subscriptionsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
690
|
+
async subscriptionsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionsGet200Response>> {
|
|
678
691
|
const queryParameters: any = {};
|
|
679
692
|
|
|
680
693
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -686,16 +699,19 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
686
699
|
query: queryParameters,
|
|
687
700
|
}, initOverrides);
|
|
688
701
|
|
|
689
|
-
return new runtime.
|
|
702
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionsGet200ResponseFromJSON(jsonValue));
|
|
690
703
|
}
|
|
691
704
|
|
|
692
705
|
/**
|
|
706
|
+
*
|
|
693
707
|
*/
|
|
694
|
-
async subscriptionsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
695
|
-
await this.subscriptionsGetRaw(initOverrides);
|
|
708
|
+
async subscriptionsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionsGet200Response> {
|
|
709
|
+
const response = await this.subscriptionsGetRaw(initOverrides);
|
|
710
|
+
return await response.value();
|
|
696
711
|
}
|
|
697
712
|
|
|
698
713
|
/**
|
|
714
|
+
*
|
|
699
715
|
*/
|
|
700
716
|
async subscriptionsIdDeleteRaw(requestParameters: SubscriptionsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
701
717
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
@@ -717,14 +733,16 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
717
733
|
}
|
|
718
734
|
|
|
719
735
|
/**
|
|
736
|
+
*
|
|
720
737
|
*/
|
|
721
738
|
async subscriptionsIdDelete(requestParameters: SubscriptionsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
722
739
|
await this.subscriptionsIdDeleteRaw(requestParameters, initOverrides);
|
|
723
740
|
}
|
|
724
741
|
|
|
725
742
|
/**
|
|
743
|
+
*
|
|
726
744
|
*/
|
|
727
|
-
async subscriptionsNewsletterPostRaw(requestParameters: SubscriptionsNewsletterPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
745
|
+
async subscriptionsNewsletterPostRaw(requestParameters: SubscriptionsNewsletterPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionsNewsletterPost201Response>> {
|
|
728
746
|
if (requestParameters.subscriptionsNewsletterPostRequest === null || requestParameters.subscriptionsNewsletterPostRequest === undefined) {
|
|
729
747
|
throw new runtime.RequiredError('subscriptionsNewsletterPostRequest','Required parameter requestParameters.subscriptionsNewsletterPostRequest was null or undefined when calling subscriptionsNewsletterPost.');
|
|
730
748
|
}
|
|
@@ -743,18 +761,21 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
743
761
|
body: SubscriptionsNewsletterPostRequestToJSON(requestParameters.subscriptionsNewsletterPostRequest),
|
|
744
762
|
}, initOverrides);
|
|
745
763
|
|
|
746
|
-
return new runtime.
|
|
764
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionsNewsletterPost201ResponseFromJSON(jsonValue));
|
|
747
765
|
}
|
|
748
766
|
|
|
749
767
|
/**
|
|
768
|
+
*
|
|
750
769
|
*/
|
|
751
|
-
async subscriptionsNewsletterPost(requestParameters: SubscriptionsNewsletterPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
752
|
-
await this.subscriptionsNewsletterPostRaw(requestParameters, initOverrides);
|
|
770
|
+
async subscriptionsNewsletterPost(requestParameters: SubscriptionsNewsletterPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionsNewsletterPost201Response> {
|
|
771
|
+
const response = await this.subscriptionsNewsletterPostRaw(requestParameters, initOverrides);
|
|
772
|
+
return await response.value();
|
|
753
773
|
}
|
|
754
774
|
|
|
755
775
|
/**
|
|
776
|
+
*
|
|
756
777
|
*/
|
|
757
|
-
async subscriptionsPostRaw(requestParameters: SubscriptionsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
778
|
+
async subscriptionsPostRaw(requestParameters: SubscriptionsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionsGet200ResponseSubscriptionsInner>> {
|
|
758
779
|
if (requestParameters.subscriptionsPostRequest === null || requestParameters.subscriptionsPostRequest === undefined) {
|
|
759
780
|
throw new runtime.RequiredError('subscriptionsPostRequest','Required parameter requestParameters.subscriptionsPostRequest was null or undefined when calling subscriptionsPost.');
|
|
760
781
|
}
|
|
@@ -773,13 +794,15 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
773
794
|
body: SubscriptionsPostRequestToJSON(requestParameters.subscriptionsPostRequest),
|
|
774
795
|
}, initOverrides);
|
|
775
796
|
|
|
776
|
-
return new runtime.
|
|
797
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionsGet200ResponseSubscriptionsInnerFromJSON(jsonValue));
|
|
777
798
|
}
|
|
778
799
|
|
|
779
800
|
/**
|
|
801
|
+
*
|
|
780
802
|
*/
|
|
781
|
-
async subscriptionsPost(requestParameters: SubscriptionsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
782
|
-
await this.subscriptionsPostRaw(requestParameters, initOverrides);
|
|
803
|
+
async subscriptionsPost(requestParameters: SubscriptionsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionsGet200ResponseSubscriptionsInner> {
|
|
804
|
+
const response = await this.subscriptionsPostRaw(requestParameters, initOverrides);
|
|
805
|
+
return await response.value();
|
|
783
806
|
}
|
|
784
807
|
|
|
785
808
|
/**
|
|
@@ -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
|
+
|
|
@@ -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
|
+
|