tuix-timesheets-api 0.6.0 → 0.6.1
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 +6 -4
- package/apis/TuixTimesheetsClientApi.js +169 -29
- package/apis/TuixTimesheetsClientApi.js.map +1 -1
- package/apis/TuixTimesheetsClientApi.ts +251 -38
- package/models/Client.js +78 -0
- package/models/Client.js.map +1 -0
- package/models/Client.ts +147 -0
- package/models/ClientsGet200ResponseInner.js +25 -22
- package/models/ClientsGet200ResponseInner.js.map +1 -1
- package/models/ClientsGet200ResponseInner.ts +35 -49
- package/models/ClientsIdPatchRequest.js +69 -0
- package/models/ClientsIdPatchRequest.js.map +1 -0
- package/models/ClientsIdPatchRequest.ts +137 -0
- package/models/CreateClientDTO.js +78 -0
- package/models/CreateClientDTO.js.map +1 -0
- package/models/CreateClientDTO.ts +147 -0
- package/models/TestUsersGet200ResponseInner.js +57 -0
- package/models/TestUsersGet200ResponseInner.js.map +1 -0
- package/models/TestUsersGet200ResponseInner.ts +89 -0
- package/models/UpdateClientDto.js +69 -0
- package/models/UpdateClientDto.js.map +1 -0
- package/models/UpdateClientDto.ts +137 -0
- package/models/UserDTOSc.js +57 -0
- package/models/UserDTOSc.js.map +1 -0
- package/models/UserDTOSc.ts +89 -0
- package/models/index.js +6 -3
- package/models/index.js.map +1 -1
- package/models/index.ts +6 -3
- package/package.json +1 -1
- package/runtime.js +1 -1
- package/runtime.js.map +1 -1
- package/runtime.ts +1 -1
package/models/Client.ts
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
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 Client
|
|
20
|
+
*/
|
|
21
|
+
export interface Client {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Client
|
|
26
|
+
*/
|
|
27
|
+
companyName: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Client
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Client
|
|
38
|
+
*/
|
|
39
|
+
street: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Client
|
|
44
|
+
*/
|
|
45
|
+
postalCode: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof Client
|
|
50
|
+
*/
|
|
51
|
+
houseNumber: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof Client
|
|
56
|
+
*/
|
|
57
|
+
city: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof Client
|
|
62
|
+
*/
|
|
63
|
+
country: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof Client
|
|
68
|
+
*/
|
|
69
|
+
phoneNumber: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof Client
|
|
74
|
+
*/
|
|
75
|
+
vatNumber: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof Client
|
|
80
|
+
*/
|
|
81
|
+
reverseCharged: boolean;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the Client interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfClient(value: object): boolean {
|
|
88
|
+
let isInstance = true;
|
|
89
|
+
isInstance = isInstance && "companyName" in value;
|
|
90
|
+
isInstance = isInstance && "email" in value;
|
|
91
|
+
isInstance = isInstance && "street" in value;
|
|
92
|
+
isInstance = isInstance && "postalCode" in value;
|
|
93
|
+
isInstance = isInstance && "houseNumber" in value;
|
|
94
|
+
isInstance = isInstance && "city" in value;
|
|
95
|
+
isInstance = isInstance && "country" in value;
|
|
96
|
+
isInstance = isInstance && "phoneNumber" in value;
|
|
97
|
+
isInstance = isInstance && "vatNumber" in value;
|
|
98
|
+
isInstance = isInstance && "reverseCharged" in value;
|
|
99
|
+
|
|
100
|
+
return isInstance;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function ClientFromJSON(json: any): Client {
|
|
104
|
+
return ClientFromJSONTyped(json, false);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function ClientFromJSONTyped(json: any, ignoreDiscriminator: boolean): Client {
|
|
108
|
+
if ((json === undefined) || (json === null)) {
|
|
109
|
+
return json;
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
|
|
113
|
+
'companyName': json['companyName'],
|
|
114
|
+
'email': json['email'],
|
|
115
|
+
'street': json['street'],
|
|
116
|
+
'postalCode': json['postalCode'],
|
|
117
|
+
'houseNumber': json['houseNumber'],
|
|
118
|
+
'city': json['city'],
|
|
119
|
+
'country': json['country'],
|
|
120
|
+
'phoneNumber': json['phoneNumber'],
|
|
121
|
+
'vatNumber': json['vatNumber'],
|
|
122
|
+
'reverseCharged': json['reverseCharged'],
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function ClientToJSON(value?: Client | null): any {
|
|
127
|
+
if (value === undefined) {
|
|
128
|
+
return undefined;
|
|
129
|
+
}
|
|
130
|
+
if (value === null) {
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
return {
|
|
134
|
+
|
|
135
|
+
'companyName': value.companyName,
|
|
136
|
+
'email': value.email,
|
|
137
|
+
'street': value.street,
|
|
138
|
+
'postalCode': value.postalCode,
|
|
139
|
+
'houseNumber': value.houseNumber,
|
|
140
|
+
'city': value.city,
|
|
141
|
+
'country': value.country,
|
|
142
|
+
'phoneNumber': value.phoneNumber,
|
|
143
|
+
'vatNumber': value.vatNumber,
|
|
144
|
+
'reverseCharged': value.reverseCharged,
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
@@ -14,12 +14,21 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ClientsGet200ResponseInnerToJSON = exports.ClientsGet200ResponseInnerFromJSONTyped = exports.ClientsGet200ResponseInnerFromJSON = exports.instanceOfClientsGet200ResponseInner = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the ClientsGet200ResponseInner interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfClientsGet200ResponseInner(value) {
|
|
22
21
|
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "companyName" in value;
|
|
23
|
+
isInstance = isInstance && "email" in value;
|
|
24
|
+
isInstance = isInstance && "street" in value;
|
|
25
|
+
isInstance = isInstance && "postalCode" in value;
|
|
26
|
+
isInstance = isInstance && "houseNumber" in value;
|
|
27
|
+
isInstance = isInstance && "city" in value;
|
|
28
|
+
isInstance = isInstance && "country" in value;
|
|
29
|
+
isInstance = isInstance && "phoneNumber" in value;
|
|
30
|
+
isInstance = isInstance && "vatNumber" in value;
|
|
31
|
+
isInstance = isInstance && "reverseCharged" in value;
|
|
23
32
|
return isInstance;
|
|
24
33
|
}
|
|
25
34
|
exports.instanceOfClientsGet200ResponseInner = instanceOfClientsGet200ResponseInner;
|
|
@@ -32,19 +41,16 @@ function ClientsGet200ResponseInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
41
|
return json;
|
|
33
42
|
}
|
|
34
43
|
return {
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'phoneNumber':
|
|
43
|
-
'
|
|
44
|
-
'reverseCharged':
|
|
45
|
-
'street': !(0, runtime_1.exists)(json, 'street') ? undefined : json['street'],
|
|
46
|
-
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : json['updatedAt'],
|
|
47
|
-
'vatNumber': !(0, runtime_1.exists)(json, 'vatNumber') ? undefined : json['vatNumber'],
|
|
44
|
+
'companyName': json['companyName'],
|
|
45
|
+
'email': json['email'],
|
|
46
|
+
'street': json['street'],
|
|
47
|
+
'postalCode': json['postalCode'],
|
|
48
|
+
'houseNumber': json['houseNumber'],
|
|
49
|
+
'city': json['city'],
|
|
50
|
+
'country': json['country'],
|
|
51
|
+
'phoneNumber': json['phoneNumber'],
|
|
52
|
+
'vatNumber': json['vatNumber'],
|
|
53
|
+
'reverseCharged': json['reverseCharged'],
|
|
48
54
|
};
|
|
49
55
|
}
|
|
50
56
|
exports.ClientsGet200ResponseInnerFromJSONTyped = ClientsGet200ResponseInnerFromJSONTyped;
|
|
@@ -56,19 +62,16 @@ function ClientsGet200ResponseInnerToJSON(value) {
|
|
|
56
62
|
return null;
|
|
57
63
|
}
|
|
58
64
|
return {
|
|
59
|
-
'city': value.city,
|
|
60
65
|
'companyName': value.companyName,
|
|
61
|
-
'country': value.country,
|
|
62
|
-
'createdAt': value.createdAt,
|
|
63
66
|
'email': value.email,
|
|
67
|
+
'street': value.street,
|
|
68
|
+
'postalCode': value.postalCode,
|
|
64
69
|
'houseNumber': value.houseNumber,
|
|
65
|
-
'
|
|
70
|
+
'city': value.city,
|
|
71
|
+
'country': value.country,
|
|
66
72
|
'phoneNumber': value.phoneNumber,
|
|
67
|
-
'postalCode': value.postalCode,
|
|
68
|
-
'reverseCharged': value.reverseCharged,
|
|
69
|
-
'street': value.street,
|
|
70
|
-
'updatedAt': value.updatedAt,
|
|
71
73
|
'vatNumber': value.vatNumber,
|
|
74
|
+
'reverseCharged': value.reverseCharged,
|
|
72
75
|
};
|
|
73
76
|
}
|
|
74
77
|
exports.ClientsGet200ResponseInnerToJSON = ClientsGet200ResponseInnerToJSON;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientsGet200ResponseInner.js","sourceRoot":"","sources":["ClientsGet200ResponseInner.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;
|
|
1
|
+
{"version":3,"file":"ClientsGet200ResponseInner.js","sourceRoot":"","sources":["ClientsGet200ResponseInner.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAuEH;;GAEG;AACH,SAAgB,oCAAoC,CAAC,KAAa;IAC9D,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,aAAa,IAAI,KAAK,CAAC;IAClD,UAAU,GAAG,UAAU,IAAI,OAAO,IAAI,KAAK,CAAC;IAC5C,UAAU,GAAG,UAAU,IAAI,QAAQ,IAAI,KAAK,CAAC;IAC7C,UAAU,GAAG,UAAU,IAAI,YAAY,IAAI,KAAK,CAAC;IACjD,UAAU,GAAG,UAAU,IAAI,aAAa,IAAI,KAAK,CAAC;IAClD,UAAU,GAAG,UAAU,IAAI,MAAM,IAAI,KAAK,CAAC;IAC3C,UAAU,GAAG,UAAU,IAAI,SAAS,IAAI,KAAK,CAAC;IAC9C,UAAU,GAAG,UAAU,IAAI,aAAa,IAAI,KAAK,CAAC;IAClD,UAAU,GAAG,UAAU,IAAI,WAAW,I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,UAAU;QAC9B,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,SAAS,EAAE,KAAK,CAAC,OAAO;QACxB,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,gBAAgB,EAAE,KAAK,CAAC,cAAc;KACzC,CAAC;AACN,CAAC;AApBD,4EAoBC"}
|
|
@@ -24,79 +24,61 @@ export interface ClientsGet200ResponseInner {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ClientsGet200ResponseInner
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
companyName: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof ClientsGet200ResponseInner
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
email: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof ClientsGet200ResponseInner
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
street: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof ClientsGet200ResponseInner
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
postalCode: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof ClientsGet200ResponseInner
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
houseNumber: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof ClientsGet200ResponseInner
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
city: string;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof ClientsGet200ResponseInner
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
country: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
67
67
|
* @memberof ClientsGet200ResponseInner
|
|
68
68
|
*/
|
|
69
|
-
phoneNumber
|
|
69
|
+
phoneNumber: string;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof ClientsGet200ResponseInner
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
vatNumber: string;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {boolean}
|
|
79
79
|
* @memberof ClientsGet200ResponseInner
|
|
80
80
|
*/
|
|
81
|
-
reverseCharged
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {string}
|
|
85
|
-
* @memberof ClientsGet200ResponseInner
|
|
86
|
-
*/
|
|
87
|
-
street?: string;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {string}
|
|
91
|
-
* @memberof ClientsGet200ResponseInner
|
|
92
|
-
*/
|
|
93
|
-
updatedAt?: string;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {string}
|
|
97
|
-
* @memberof ClientsGet200ResponseInner
|
|
98
|
-
*/
|
|
99
|
-
vatNumber?: string;
|
|
81
|
+
reverseCharged: boolean;
|
|
100
82
|
}
|
|
101
83
|
|
|
102
84
|
/**
|
|
@@ -104,6 +86,16 @@ export interface ClientsGet200ResponseInner {
|
|
|
104
86
|
*/
|
|
105
87
|
export function instanceOfClientsGet200ResponseInner(value: object): boolean {
|
|
106
88
|
let isInstance = true;
|
|
89
|
+
isInstance = isInstance && "companyName" in value;
|
|
90
|
+
isInstance = isInstance && "email" in value;
|
|
91
|
+
isInstance = isInstance && "street" in value;
|
|
92
|
+
isInstance = isInstance && "postalCode" in value;
|
|
93
|
+
isInstance = isInstance && "houseNumber" in value;
|
|
94
|
+
isInstance = isInstance && "city" in value;
|
|
95
|
+
isInstance = isInstance && "country" in value;
|
|
96
|
+
isInstance = isInstance && "phoneNumber" in value;
|
|
97
|
+
isInstance = isInstance && "vatNumber" in value;
|
|
98
|
+
isInstance = isInstance && "reverseCharged" in value;
|
|
107
99
|
|
|
108
100
|
return isInstance;
|
|
109
101
|
}
|
|
@@ -118,19 +110,16 @@ export function ClientsGet200ResponseInnerFromJSONTyped(json: any, ignoreDiscrim
|
|
|
118
110
|
}
|
|
119
111
|
return {
|
|
120
112
|
|
|
121
|
-
'
|
|
122
|
-
'
|
|
123
|
-
'
|
|
124
|
-
'
|
|
125
|
-
'
|
|
126
|
-
'
|
|
127
|
-
'
|
|
128
|
-
'phoneNumber':
|
|
129
|
-
'
|
|
130
|
-
'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
|
+
'companyName': json['companyName'],
|
|
114
|
+
'email': json['email'],
|
|
115
|
+
'street': json['street'],
|
|
116
|
+
'postalCode': json['postalCode'],
|
|
117
|
+
'houseNumber': json['houseNumber'],
|
|
118
|
+
'city': json['city'],
|
|
119
|
+
'country': json['country'],
|
|
120
|
+
'phoneNumber': json['phoneNumber'],
|
|
121
|
+
'vatNumber': json['vatNumber'],
|
|
122
|
+
'reverseCharged': json['reverseCharged'],
|
|
134
123
|
};
|
|
135
124
|
}
|
|
136
125
|
|
|
@@ -143,19 +132,16 @@ export function ClientsGet200ResponseInnerToJSON(value?: ClientsGet200ResponseIn
|
|
|
143
132
|
}
|
|
144
133
|
return {
|
|
145
134
|
|
|
146
|
-
'city': value.city,
|
|
147
135
|
'companyName': value.companyName,
|
|
148
|
-
'country': value.country,
|
|
149
|
-
'createdAt': value.createdAt,
|
|
150
136
|
'email': value.email,
|
|
137
|
+
'street': value.street,
|
|
138
|
+
'postalCode': value.postalCode,
|
|
151
139
|
'houseNumber': value.houseNumber,
|
|
152
|
-
'
|
|
140
|
+
'city': value.city,
|
|
141
|
+
'country': value.country,
|
|
153
142
|
'phoneNumber': value.phoneNumber,
|
|
154
|
-
'postalCode': value.postalCode,
|
|
155
|
-
'reverseCharged': value.reverseCharged,
|
|
156
|
-
'street': value.street,
|
|
157
|
-
'updatedAt': value.updatedAt,
|
|
158
143
|
'vatNumber': value.vatNumber,
|
|
144
|
+
'reverseCharged': value.reverseCharged,
|
|
159
145
|
};
|
|
160
146
|
}
|
|
161
147
|
|
|
@@ -0,0 +1,69 @@
|
|
|
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.ClientsIdPatchRequestToJSON = exports.ClientsIdPatchRequestFromJSONTyped = exports.ClientsIdPatchRequestFromJSON = exports.instanceOfClientsIdPatchRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ClientsIdPatchRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfClientsIdPatchRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfClientsIdPatchRequest = instanceOfClientsIdPatchRequest;
|
|
26
|
+
function ClientsIdPatchRequestFromJSON(json) {
|
|
27
|
+
return ClientsIdPatchRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ClientsIdPatchRequestFromJSON = ClientsIdPatchRequestFromJSON;
|
|
30
|
+
function ClientsIdPatchRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'companyName': !(0, runtime_1.exists)(json, 'companyName') ? undefined : json['companyName'],
|
|
36
|
+
'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
|
|
37
|
+
'street': !(0, runtime_1.exists)(json, 'street') ? undefined : json['street'],
|
|
38
|
+
'postalCode': !(0, runtime_1.exists)(json, 'postalCode') ? undefined : json['postalCode'],
|
|
39
|
+
'houseNumber': !(0, runtime_1.exists)(json, 'houseNumber') ? undefined : json['houseNumber'],
|
|
40
|
+
'city': !(0, runtime_1.exists)(json, 'city') ? undefined : json['city'],
|
|
41
|
+
'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
|
|
42
|
+
'phoneNumber': !(0, runtime_1.exists)(json, 'phoneNumber') ? undefined : json['phoneNumber'],
|
|
43
|
+
'vatNumber': !(0, runtime_1.exists)(json, 'vatNumber') ? undefined : json['vatNumber'],
|
|
44
|
+
'reverseCharged': !(0, runtime_1.exists)(json, 'reverseCharged') ? undefined : json['reverseCharged'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.ClientsIdPatchRequestFromJSONTyped = ClientsIdPatchRequestFromJSONTyped;
|
|
48
|
+
function ClientsIdPatchRequestToJSON(value) {
|
|
49
|
+
if (value === undefined) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
if (value === null) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'companyName': value.companyName,
|
|
57
|
+
'email': value.email,
|
|
58
|
+
'street': value.street,
|
|
59
|
+
'postalCode': value.postalCode,
|
|
60
|
+
'houseNumber': value.houseNumber,
|
|
61
|
+
'city': value.city,
|
|
62
|
+
'country': value.country,
|
|
63
|
+
'phoneNumber': value.phoneNumber,
|
|
64
|
+
'vatNumber': value.vatNumber,
|
|
65
|
+
'reverseCharged': value.reverseCharged,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
exports.ClientsIdPatchRequestToJSON = ClientsIdPatchRequestToJSON;
|
|
69
|
+
//# sourceMappingURL=ClientsIdPatchRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientsIdPatchRequest.js","sourceRoot":"","sources":["ClientsIdPatchRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAEH,wCAA+C;AAqE/C;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAJD,0EAIC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAFD,sEAEC;AAED,SAAgB,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,aAAa,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;QAC7E,OAAO,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QAC3D,QAAQ,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC9D,YAAY,EAAE,C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KAAK;QACpB,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,SAAS,EAAE,KAAK,CAAC,OAAO;QACxB,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,gBAAgB,EAAE,KAAK,CAAC,cAAc;KACzC,CAAC;AACN,CAAC;AApBD,kEAoBC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
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 ClientsIdPatchRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ClientsIdPatchRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ClientsIdPatchRequest
|
|
26
|
+
*/
|
|
27
|
+
companyName?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ClientsIdPatchRequest
|
|
32
|
+
*/
|
|
33
|
+
email?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ClientsIdPatchRequest
|
|
38
|
+
*/
|
|
39
|
+
street?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ClientsIdPatchRequest
|
|
44
|
+
*/
|
|
45
|
+
postalCode?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ClientsIdPatchRequest
|
|
50
|
+
*/
|
|
51
|
+
houseNumber?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ClientsIdPatchRequest
|
|
56
|
+
*/
|
|
57
|
+
city?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof ClientsIdPatchRequest
|
|
62
|
+
*/
|
|
63
|
+
country?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof ClientsIdPatchRequest
|
|
68
|
+
*/
|
|
69
|
+
phoneNumber?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof ClientsIdPatchRequest
|
|
74
|
+
*/
|
|
75
|
+
vatNumber?: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof ClientsIdPatchRequest
|
|
80
|
+
*/
|
|
81
|
+
reverseCharged?: boolean;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the ClientsIdPatchRequest interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfClientsIdPatchRequest(value: object): boolean {
|
|
88
|
+
let isInstance = true;
|
|
89
|
+
|
|
90
|
+
return isInstance;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function ClientsIdPatchRequestFromJSON(json: any): ClientsIdPatchRequest {
|
|
94
|
+
return ClientsIdPatchRequestFromJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function ClientsIdPatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientsIdPatchRequest {
|
|
98
|
+
if ((json === undefined) || (json === null)) {
|
|
99
|
+
return json;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'companyName': !exists(json, 'companyName') ? undefined : json['companyName'],
|
|
104
|
+
'email': !exists(json, 'email') ? undefined : json['email'],
|
|
105
|
+
'street': !exists(json, 'street') ? undefined : json['street'],
|
|
106
|
+
'postalCode': !exists(json, 'postalCode') ? undefined : json['postalCode'],
|
|
107
|
+
'houseNumber': !exists(json, 'houseNumber') ? undefined : json['houseNumber'],
|
|
108
|
+
'city': !exists(json, 'city') ? undefined : json['city'],
|
|
109
|
+
'country': !exists(json, 'country') ? undefined : json['country'],
|
|
110
|
+
'phoneNumber': !exists(json, 'phoneNumber') ? undefined : json['phoneNumber'],
|
|
111
|
+
'vatNumber': !exists(json, 'vatNumber') ? undefined : json['vatNumber'],
|
|
112
|
+
'reverseCharged': !exists(json, 'reverseCharged') ? undefined : json['reverseCharged'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function ClientsIdPatchRequestToJSON(value?: ClientsIdPatchRequest | null): any {
|
|
117
|
+
if (value === undefined) {
|
|
118
|
+
return undefined;
|
|
119
|
+
}
|
|
120
|
+
if (value === null) {
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
|
|
125
|
+
'companyName': value.companyName,
|
|
126
|
+
'email': value.email,
|
|
127
|
+
'street': value.street,
|
|
128
|
+
'postalCode': value.postalCode,
|
|
129
|
+
'houseNumber': value.houseNumber,
|
|
130
|
+
'city': value.city,
|
|
131
|
+
'country': value.country,
|
|
132
|
+
'phoneNumber': value.phoneNumber,
|
|
133
|
+
'vatNumber': value.vatNumber,
|
|
134
|
+
'reverseCharged': value.reverseCharged,
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|