@randock/nameshift-api-client 0.0.18 → 0.0.19
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 +1 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +6 -4
- package/dist/apis/AccountsApi.js +18 -18
- package/dist/apis/AuthApi.js +3 -3
- package/dist/apis/DomainsApi.d.ts +1 -1
- package/dist/apis/DomainsApi.js +30 -30
- package/dist/apis/LeadsApi.js +18 -18
- package/dist/apis/LeadsPublicApi.js +3 -3
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AccountAddressDto.js +21 -21
- package/dist/models/AccountAddressInput.js +21 -21
- package/dist/models/AccountDto.js +10 -12
- package/dist/models/AccountFinancialInput.js +16 -16
- package/dist/models/AccountSettingsInput.js +6 -11
- package/dist/models/BatchUpdate404Response.js +12 -15
- package/dist/models/BatchUpdateDomainsInput.js +10 -12
- package/dist/models/CreateLeadInput.js +22 -20
- package/dist/models/CreateLeadMessageInput.js +7 -10
- package/dist/models/DeleteDomainsInput.js +7 -10
- package/dist/models/DomainDto.d.ts +2 -2
- package/dist/models/DomainDto.js +25 -22
- package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js +19 -18
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +2 -2
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +28 -24
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +2 -2
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +31 -26
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +22 -20
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +40 -32
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +7 -10
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +10 -12
- package/dist/models/LeadMessageData.js +7 -10
- package/dist/models/LeadMessageDto.js +25 -22
- package/dist/models/LeadMessageDtoData.js +7 -10
- package/dist/models/List200Response.js +13 -14
- package/dist/models/List400Response.js +12 -15
- package/dist/models/List401Response.js +12 -15
- package/dist/models/ListLeadMessagesDto.js +7 -10
- package/dist/models/Login401Response.js +12 -15
- package/dist/models/Login429Response.js +12 -15
- package/dist/models/LoginInput.js +10 -12
- package/dist/models/MoneyDto.js +10 -12
- package/dist/models/MoneyInput.js +10 -12
- package/dist/models/ObjectId.js +7 -10
- package/dist/models/PaginateResponse.js +13 -14
- package/dist/models/PaginateResponseLinks.d.ts +5 -5
- package/dist/models/PaginateResponseLinks.js +14 -19
- package/dist/models/PaginateResponseMeta.js +18 -23
- package/dist/models/PutLeadInput.js +7 -10
- package/dist/models/TokenDto.js +7 -10
- package/dist/models/UpdateDomainInput.d.ts +2 -2
- package/dist/models/UpdateDomainInput.js +8 -13
- package/dist/models/UpdateFinancial400Response.js +12 -15
- package/dist/models/UpdateSettings400Response.js +12 -15
- package/dist/models/UpdateSettings401Response.js +12 -15
- package/dist/models/UpdateSettings429Response.js +12 -15
- package/dist/models/WithFinancialDtoInner.js +16 -16
- package/dist/models/WithSettingsInner.js +7 -10
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/dist/runtime.d.ts +2 -3
- package/dist/runtime.js +1 -6
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +36 -18
- package/src/apis/AuthApi.ts +6 -3
- package/src/apis/DomainsApi.ts +49 -31
- package/src/apis/LeadsApi.ts +36 -18
- package/src/apis/LeadsPublicApi.ts +6 -3
- package/src/apis/index.ts +0 -1
- package/src/models/AccountAddressDto.ts +17 -22
- package/src/models/AccountAddressInput.ts +17 -22
- package/src/models/AccountDto.ts +9 -14
- package/src/models/AccountFinancialInput.ts +13 -18
- package/src/models/AccountSettingsInput.ts +7 -12
- package/src/models/BatchUpdate404Response.ts +11 -16
- package/src/models/BatchUpdateDomainsInput.ts +9 -14
- package/src/models/CreateLeadInput.ts +17 -22
- package/src/models/CreateLeadMessageInput.ts +7 -12
- package/src/models/DeleteDomainsInput.ts +7 -12
- package/src/models/DomainDto.ts +21 -26
- package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +15 -20
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +23 -28
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +25 -30
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +17 -22
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +29 -34
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +7 -12
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +9 -14
- package/src/models/LeadMessageData.ts +7 -12
- package/src/models/LeadMessageDto.ts +19 -24
- package/src/models/LeadMessageDtoData.ts +7 -12
- package/src/models/List200Response.ts +11 -16
- package/src/models/List400Response.ts +11 -16
- package/src/models/List401Response.ts +11 -16
- package/src/models/ListLeadMessagesDto.ts +7 -12
- package/src/models/Login401Response.ts +11 -16
- package/src/models/Login429Response.ts +11 -16
- package/src/models/LoginInput.ts +9 -14
- package/src/models/MoneyDto.ts +9 -14
- package/src/models/MoneyInput.ts +9 -14
- package/src/models/ObjectId.ts +7 -12
- package/src/models/PaginateResponse.ts +11 -16
- package/src/models/PaginateResponseLinks.ts +20 -25
- package/src/models/PaginateResponseMeta.ts +19 -24
- package/src/models/PutLeadInput.ts +7 -12
- package/src/models/TokenDto.ts +7 -12
- package/src/models/UpdateDomainInput.ts +11 -16
- package/src/models/UpdateFinancial400Response.ts +11 -16
- package/src/models/UpdateSettings400Response.ts +11 -16
- package/src/models/UpdateSettings401Response.ts +11 -16
- package/src/models/UpdateSettings429Response.ts +11 -16
- package/src/models/WithFinancialDtoInner.ts +13 -18
- package/src/models/WithSettingsInner.ts +7 -12
- package/src/models/index.ts +0 -1
- package/src/runtime.ts +3 -8
- package/dist/apis/DomainsPublicApi.d.ts +0 -35
- package/dist/apis/DomainsPublicApi.js +0 -164
- package/dist/apis/TestApi.d.ts +0 -23
- package/dist/apis/TestApi.js +0 -116
- package/dist/models/CreateLeadMessageInputData.d.ts +0 -32
- package/dist/models/CreateLeadMessageInputData.js +0 -51
- package/dist/models/ImportDomainsDto.d.ts +0 -49
- package/dist/models/ImportDomainsDto.js +0 -59
- package/dist/models/IntersectionAccountDtoWithAddressDto.d.ts +0 -44
- package/dist/models/IntersectionAccountDtoWithAddressDto.js +0 -57
- package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +0 -44
- package/dist/models/IntersectionAccountDtoWithFinancialDto.js +0 -57
- package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.d.ts +0 -49
- package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.js +0 -56
- package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +0 -44
- package/dist/models/IntersectionAccountDtoWithSettingsDto.js +0 -57
- package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.d.ts +0 -32
- package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.js +0 -51
- package/dist/models/IntersectionLeadDto.d.ts +0 -52
- package/dist/models/IntersectionLeadDto.js +0 -64
- package/dist/models/LeadDto.d.ts +0 -74
- package/dist/models/LeadDto.js +0 -79
- package/dist/models/List429Response.d.ts +0 -43
- package/dist/models/List429Response.js +0 -56
- package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.d.ts +0 -43
- package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.js +0 -56
- package/src/apis/DomainsPublicApi.ts +0 -97
- package/src/apis/TestApi.ts +0 -46
- package/src/models/CreateLeadMessageInputData.ts +0 -73
- package/src/models/ImportDomainsDto.ts +0 -93
- package/src/models/IntersectionAccountDtoWithAddressDto.ts +0 -91
- package/src/models/IntersectionAccountDtoWithFinancialDto.ts +0 -91
- package/src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts +0 -89
- package/src/models/IntersectionAccountDtoWithSettingsDto.ts +0 -91
- package/src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts +0 -72
- package/src/models/IntersectionLeadDto.ts +0 -96
- package/src/models/LeadDto.ts +0 -131
- package/src/models/List429Response.ts +0 -83
- package/src/models/PublicDomainControllerGetDomainIdentifier404Response.ts +0 -83
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
|
|
17
17
|
import {
|
|
18
18
|
IntersectionDomainDtoWithAccountDtoFromJSON,
|
|
@@ -96,15 +96,13 @@ export type IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum = typeof Inters
|
|
|
96
96
|
* Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDto interface.
|
|
97
97
|
*/
|
|
98
98
|
export function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value: object): boolean {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
return isInstance;
|
|
99
|
+
if (!('id' in value)) return false;
|
|
100
|
+
if (!('status' in value)) return false;
|
|
101
|
+
if (!('lastOffer' in value)) return false;
|
|
102
|
+
if (!('lastOfferBy' in value)) return false;
|
|
103
|
+
if (!('domain' in value)) return false;
|
|
104
|
+
if (!('createdAt' in value)) return false;
|
|
105
|
+
return true;
|
|
108
106
|
}
|
|
109
107
|
|
|
110
108
|
export function IntersectionLeadDtoWithLeadDetailsDtoFromJSON(json: any): IntersectionLeadDtoWithLeadDetailsDto {
|
|
@@ -112,7 +110,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoFromJSON(json: any): Inters
|
|
|
112
110
|
}
|
|
113
111
|
|
|
114
112
|
export function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithLeadDetailsDto {
|
|
115
|
-
if (
|
|
113
|
+
if (json == null) {
|
|
116
114
|
return json;
|
|
117
115
|
}
|
|
118
116
|
return {
|
|
@@ -127,20 +125,17 @@ export function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json: any, ig
|
|
|
127
125
|
}
|
|
128
126
|
|
|
129
127
|
export function IntersectionLeadDtoWithLeadDetailsDtoToJSON(value?: IntersectionLeadDtoWithLeadDetailsDto | null): any {
|
|
130
|
-
if (value
|
|
131
|
-
return
|
|
132
|
-
}
|
|
133
|
-
if (value === null) {
|
|
134
|
-
return null;
|
|
128
|
+
if (value == null) {
|
|
129
|
+
return value;
|
|
135
130
|
}
|
|
136
131
|
return {
|
|
137
132
|
|
|
138
|
-
'id': value
|
|
139
|
-
'status': value
|
|
140
|
-
'lastOffer': IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value
|
|
141
|
-
'lastOfferBy': value
|
|
142
|
-
'domain': IntersectionDomainDtoWithAccountDtoToJSON(value
|
|
143
|
-
'createdAt': (value
|
|
133
|
+
'id': value['id'],
|
|
134
|
+
'status': value['status'],
|
|
135
|
+
'lastOffer': IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value['lastOffer']),
|
|
136
|
+
'lastOfferBy': value['lastOfferBy'],
|
|
137
|
+
'domain': IntersectionDomainDtoWithAccountDtoToJSON(value['domain']),
|
|
138
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
144
139
|
};
|
|
145
140
|
}
|
|
146
141
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { IntersectionLeadDtoWithListFieldsDtoLastMessageData } from './IntersectionLeadDtoWithListFieldsDtoLastMessageData';
|
|
17
17
|
import {
|
|
18
18
|
IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON,
|
|
@@ -151,21 +151,19 @@ export type IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = typeof Int
|
|
|
151
151
|
* Check if a given object implements the IntersectionLeadDtoWithListFieldsDto interface.
|
|
152
152
|
*/
|
|
153
153
|
export function instanceOfIntersectionLeadDtoWithListFieldsDto(value: object): boolean {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
return isInstance;
|
|
154
|
+
if (!('id' in value)) return false;
|
|
155
|
+
if (!('status' in value)) return false;
|
|
156
|
+
if (!('lastOffer' in value)) return false;
|
|
157
|
+
if (!('lastOfferBy' in value)) return false;
|
|
158
|
+
if (!('lastMessageFrom' in value)) return false;
|
|
159
|
+
if (!('lastMessageType' in value)) return false;
|
|
160
|
+
if (!('lastMessageData' in value)) return false;
|
|
161
|
+
if (!('createdAt' in value)) return false;
|
|
162
|
+
if (!('domainName' in value)) return false;
|
|
163
|
+
if (!('buyerInitials' in value)) return false;
|
|
164
|
+
if (!('lastMessageMessage' in value)) return false;
|
|
165
|
+
if (!('lastMessageDate' in value)) return false;
|
|
166
|
+
return true;
|
|
169
167
|
}
|
|
170
168
|
|
|
171
169
|
export function IntersectionLeadDtoWithListFieldsDtoFromJSON(json: any): IntersectionLeadDtoWithListFieldsDto {
|
|
@@ -173,7 +171,7 @@ export function IntersectionLeadDtoWithListFieldsDtoFromJSON(json: any): Interse
|
|
|
173
171
|
}
|
|
174
172
|
|
|
175
173
|
export function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithListFieldsDto {
|
|
176
|
-
if (
|
|
174
|
+
if (json == null) {
|
|
177
175
|
return json;
|
|
178
176
|
}
|
|
179
177
|
return {
|
|
@@ -194,26 +192,23 @@ export function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json: any, ign
|
|
|
194
192
|
}
|
|
195
193
|
|
|
196
194
|
export function IntersectionLeadDtoWithListFieldsDtoToJSON(value?: IntersectionLeadDtoWithListFieldsDto | null): any {
|
|
197
|
-
if (value
|
|
198
|
-
return
|
|
199
|
-
}
|
|
200
|
-
if (value === null) {
|
|
201
|
-
return null;
|
|
195
|
+
if (value == null) {
|
|
196
|
+
return value;
|
|
202
197
|
}
|
|
203
198
|
return {
|
|
204
199
|
|
|
205
|
-
'id': value
|
|
206
|
-
'status': value
|
|
207
|
-
'lastOffer': IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value
|
|
208
|
-
'lastOfferBy': value
|
|
209
|
-
'lastMessageFrom': value
|
|
210
|
-
'lastMessageType': value
|
|
211
|
-
'lastMessageData': IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON(value
|
|
212
|
-
'createdAt': (value
|
|
213
|
-
'domainName': value
|
|
214
|
-
'buyerInitials': value
|
|
215
|
-
'lastMessageMessage': value
|
|
216
|
-
'lastMessageDate': (value
|
|
200
|
+
'id': value['id'],
|
|
201
|
+
'status': value['status'],
|
|
202
|
+
'lastOffer': IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value['lastOffer']),
|
|
203
|
+
'lastOfferBy': value['lastOfferBy'],
|
|
204
|
+
'lastMessageFrom': value['lastMessageFrom'],
|
|
205
|
+
'lastMessageType': value['lastMessageType'],
|
|
206
|
+
'lastMessageData': IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON(value['lastMessageData']),
|
|
207
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
208
|
+
'domainName': value['domainName'],
|
|
209
|
+
'buyerInitials': value['buyerInitials'],
|
|
210
|
+
'lastMessageMessage': value['lastMessageMessage'],
|
|
211
|
+
'lastMessageDate': ((value['lastMessageDate']).toISOString()),
|
|
217
212
|
};
|
|
218
213
|
}
|
|
219
214
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { MoneyDto } from './MoneyDto';
|
|
17
17
|
import {
|
|
18
18
|
MoneyDtoFromJSON,
|
|
@@ -38,10 +38,8 @@ export interface IntersectionLeadDtoWithListFieldsDtoLastMessageData {
|
|
|
38
38
|
* Check if a given object implements the IntersectionLeadDtoWithListFieldsDtoLastMessageData interface.
|
|
39
39
|
*/
|
|
40
40
|
export function instanceOfIntersectionLeadDtoWithListFieldsDtoLastMessageData(value: object): boolean {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return isInstance;
|
|
41
|
+
if (!('price' in value)) return false;
|
|
42
|
+
return true;
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
export function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON(json: any): IntersectionLeadDtoWithListFieldsDtoLastMessageData {
|
|
@@ -49,7 +47,7 @@ export function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON(json
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
export function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithListFieldsDtoLastMessageData {
|
|
52
|
-
if (
|
|
50
|
+
if (json == null) {
|
|
53
51
|
return json;
|
|
54
52
|
}
|
|
55
53
|
return {
|
|
@@ -59,15 +57,12 @@ export function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped
|
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
export function IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON(value?: IntersectionLeadDtoWithListFieldsDtoLastMessageData | null): any {
|
|
62
|
-
if (value
|
|
63
|
-
return
|
|
64
|
-
}
|
|
65
|
-
if (value === null) {
|
|
66
|
-
return null;
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
67
62
|
}
|
|
68
63
|
return {
|
|
69
64
|
|
|
70
|
-
'price': MoneyDtoToJSON(value
|
|
65
|
+
'price': MoneyDtoToJSON(value['price']),
|
|
71
66
|
};
|
|
72
67
|
}
|
|
73
68
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -37,11 +37,9 @@ export interface IntersectionLeadDtoWithListFieldsDtoLastOffer {
|
|
|
37
37
|
* Check if a given object implements the IntersectionLeadDtoWithListFieldsDtoLastOffer interface.
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfIntersectionLeadDtoWithListFieldsDtoLastOffer(value: object): boolean {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return isInstance;
|
|
40
|
+
if (!('amount' in value)) return false;
|
|
41
|
+
if (!('currencyCode' in value)) return false;
|
|
42
|
+
return true;
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
export function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON(json: any): IntersectionLeadDtoWithListFieldsDtoLastOffer {
|
|
@@ -49,7 +47,7 @@ export function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON(json: any)
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
export function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithListFieldsDtoLastOffer {
|
|
52
|
-
if (
|
|
50
|
+
if (json == null) {
|
|
53
51
|
return json;
|
|
54
52
|
}
|
|
55
53
|
return {
|
|
@@ -60,16 +58,13 @@ export function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped(json:
|
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
export function IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value?: IntersectionLeadDtoWithListFieldsDtoLastOffer | null): any {
|
|
63
|
-
if (value
|
|
64
|
-
return
|
|
65
|
-
}
|
|
66
|
-
if (value === null) {
|
|
67
|
-
return null;
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
68
63
|
}
|
|
69
64
|
return {
|
|
70
65
|
|
|
71
|
-
'amount': value
|
|
72
|
-
'currencyCode': value
|
|
66
|
+
'amount': value['amount'],
|
|
67
|
+
'currencyCode': value['currencyCode'],
|
|
73
68
|
};
|
|
74
69
|
}
|
|
75
70
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { MoneyDto } from './MoneyDto';
|
|
17
17
|
import {
|
|
18
18
|
MoneyDtoFromJSON,
|
|
@@ -38,10 +38,8 @@ export interface LeadMessageData {
|
|
|
38
38
|
* Check if a given object implements the LeadMessageData interface.
|
|
39
39
|
*/
|
|
40
40
|
export function instanceOfLeadMessageData(value: object): boolean {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return isInstance;
|
|
41
|
+
if (!('price' in value)) return false;
|
|
42
|
+
return true;
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
export function LeadMessageDataFromJSON(json: any): LeadMessageData {
|
|
@@ -49,7 +47,7 @@ export function LeadMessageDataFromJSON(json: any): LeadMessageData {
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
export function LeadMessageDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageData {
|
|
52
|
-
if (
|
|
50
|
+
if (json == null) {
|
|
53
51
|
return json;
|
|
54
52
|
}
|
|
55
53
|
return {
|
|
@@ -59,15 +57,12 @@ export function LeadMessageDataFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
export function LeadMessageDataToJSON(value?: LeadMessageData | null): any {
|
|
62
|
-
if (value
|
|
63
|
-
return
|
|
64
|
-
}
|
|
65
|
-
if (value === null) {
|
|
66
|
-
return null;
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
67
62
|
}
|
|
68
63
|
return {
|
|
69
64
|
|
|
70
|
-
'price': MoneyDtoToJSON(value
|
|
65
|
+
'price': MoneyDtoToJSON(value['price']),
|
|
71
66
|
};
|
|
72
67
|
}
|
|
73
68
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { LeadMessageDtoData } from './LeadMessageDtoData';
|
|
17
17
|
import {
|
|
18
18
|
LeadMessageDtoDataFromJSON,
|
|
@@ -95,16 +95,14 @@ export type LeadMessageDtoOriginEnum = typeof LeadMessageDtoOriginEnum[keyof typ
|
|
|
95
95
|
* Check if a given object implements the LeadMessageDto interface.
|
|
96
96
|
*/
|
|
97
97
|
export function instanceOfLeadMessageDto(value: object): boolean {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
return isInstance;
|
|
98
|
+
if (!('id' in value)) return false;
|
|
99
|
+
if (!('type' in value)) return false;
|
|
100
|
+
if (!('origin' in value)) return false;
|
|
101
|
+
if (!('data' in value)) return false;
|
|
102
|
+
if (!('createdAt' in value)) return false;
|
|
103
|
+
if (!('initials' in value)) return false;
|
|
104
|
+
if (!('message' in value)) return false;
|
|
105
|
+
return true;
|
|
108
106
|
}
|
|
109
107
|
|
|
110
108
|
export function LeadMessageDtoFromJSON(json: any): LeadMessageDto {
|
|
@@ -112,7 +110,7 @@ export function LeadMessageDtoFromJSON(json: any): LeadMessageDto {
|
|
|
112
110
|
}
|
|
113
111
|
|
|
114
112
|
export function LeadMessageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageDto {
|
|
115
|
-
if (
|
|
113
|
+
if (json == null) {
|
|
116
114
|
return json;
|
|
117
115
|
}
|
|
118
116
|
return {
|
|
@@ -128,21 +126,18 @@ export function LeadMessageDtoFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
128
126
|
}
|
|
129
127
|
|
|
130
128
|
export function LeadMessageDtoToJSON(value?: LeadMessageDto | null): any {
|
|
131
|
-
if (value
|
|
132
|
-
return
|
|
133
|
-
}
|
|
134
|
-
if (value === null) {
|
|
135
|
-
return null;
|
|
129
|
+
if (value == null) {
|
|
130
|
+
return value;
|
|
136
131
|
}
|
|
137
132
|
return {
|
|
138
133
|
|
|
139
|
-
'id': value
|
|
140
|
-
'type': value
|
|
141
|
-
'origin': value
|
|
142
|
-
'data': LeadMessageDtoDataToJSON(value
|
|
143
|
-
'createdAt': (value
|
|
144
|
-
'initials': value
|
|
145
|
-
'message': value
|
|
134
|
+
'id': value['id'],
|
|
135
|
+
'type': value['type'],
|
|
136
|
+
'origin': value['origin'],
|
|
137
|
+
'data': LeadMessageDtoDataToJSON(value['data']),
|
|
138
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
139
|
+
'initials': value['initials'],
|
|
140
|
+
'message': value['message'],
|
|
146
141
|
};
|
|
147
142
|
}
|
|
148
143
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { MoneyDto } from './MoneyDto';
|
|
17
17
|
import {
|
|
18
18
|
MoneyDtoFromJSON,
|
|
@@ -38,10 +38,8 @@ export interface LeadMessageDtoData {
|
|
|
38
38
|
* Check if a given object implements the LeadMessageDtoData interface.
|
|
39
39
|
*/
|
|
40
40
|
export function instanceOfLeadMessageDtoData(value: object): boolean {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return isInstance;
|
|
41
|
+
if (!('price' in value)) return false;
|
|
42
|
+
return true;
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
export function LeadMessageDtoDataFromJSON(json: any): LeadMessageDtoData {
|
|
@@ -49,7 +47,7 @@ export function LeadMessageDtoDataFromJSON(json: any): LeadMessageDtoData {
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
export function LeadMessageDtoDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageDtoData {
|
|
52
|
-
if (
|
|
50
|
+
if (json == null) {
|
|
53
51
|
return json;
|
|
54
52
|
}
|
|
55
53
|
return {
|
|
@@ -59,15 +57,12 @@ export function LeadMessageDtoDataFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
export function LeadMessageDtoDataToJSON(value?: LeadMessageDtoData | null): any {
|
|
62
|
-
if (value
|
|
63
|
-
return
|
|
64
|
-
}
|
|
65
|
-
if (value === null) {
|
|
66
|
-
return null;
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
67
62
|
}
|
|
68
63
|
return {
|
|
69
64
|
|
|
70
|
-
'price': MoneyDtoToJSON(value
|
|
65
|
+
'price': MoneyDtoToJSON(value['price']),
|
|
71
66
|
};
|
|
72
67
|
}
|
|
73
68
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { DomainDto } from './DomainDto';
|
|
17
17
|
import {
|
|
18
18
|
DomainDtoFromJSON,
|
|
@@ -62,12 +62,10 @@ export interface List200Response {
|
|
|
62
62
|
* Check if a given object implements the List200Response interface.
|
|
63
63
|
*/
|
|
64
64
|
export function instanceOfList200Response(value: object): boolean {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
return isInstance;
|
|
65
|
+
if (!('data' in value)) return false;
|
|
66
|
+
if (!('meta' in value)) return false;
|
|
67
|
+
if (!('links' in value)) return false;
|
|
68
|
+
return true;
|
|
71
69
|
}
|
|
72
70
|
|
|
73
71
|
export function List200ResponseFromJSON(json: any): List200Response {
|
|
@@ -75,7 +73,7 @@ export function List200ResponseFromJSON(json: any): List200Response {
|
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
export function List200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): List200Response {
|
|
78
|
-
if (
|
|
76
|
+
if (json == null) {
|
|
79
77
|
return json;
|
|
80
78
|
}
|
|
81
79
|
return {
|
|
@@ -87,17 +85,14 @@ export function List200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
87
85
|
}
|
|
88
86
|
|
|
89
87
|
export function List200ResponseToJSON(value?: List200Response | null): any {
|
|
90
|
-
if (value
|
|
91
|
-
return
|
|
92
|
-
}
|
|
93
|
-
if (value === null) {
|
|
94
|
-
return null;
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
95
90
|
}
|
|
96
91
|
return {
|
|
97
92
|
|
|
98
|
-
'data': ((value
|
|
99
|
-
'meta': PaginateResponseMetaToJSON(value
|
|
100
|
-
'links': PaginateResponseLinksToJSON(value
|
|
93
|
+
'data': ((value['data'] as Array<any>).map(DomainDtoToJSON)),
|
|
94
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
95
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
101
96
|
};
|
|
102
97
|
}
|
|
103
98
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
* Thrown in case of request errors.
|
|
18
18
|
* @export
|
|
@@ -43,11 +43,9 @@ export interface List400Response {
|
|
|
43
43
|
* Check if a given object implements the List400Response interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfList400Response(value: object): boolean {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return isInstance;
|
|
46
|
+
if (!('statusCode' in value)) return false;
|
|
47
|
+
if (!('message' in value)) return false;
|
|
48
|
+
return true;
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
export function List400ResponseFromJSON(json: any): List400Response {
|
|
@@ -55,29 +53,26 @@ export function List400ResponseFromJSON(json: any): List400Response {
|
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
export function List400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): List400Response {
|
|
58
|
-
if (
|
|
56
|
+
if (json == null) {
|
|
59
57
|
return json;
|
|
60
58
|
}
|
|
61
59
|
return {
|
|
62
60
|
|
|
63
61
|
'statusCode': json['statusCode'],
|
|
64
62
|
'message': json['message'],
|
|
65
|
-
'error':
|
|
63
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
66
64
|
};
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
export function List400ResponseToJSON(value?: List400Response | null): any {
|
|
70
|
-
if (value
|
|
71
|
-
return
|
|
72
|
-
}
|
|
73
|
-
if (value === null) {
|
|
74
|
-
return null;
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
75
70
|
}
|
|
76
71
|
return {
|
|
77
72
|
|
|
78
|
-
'statusCode': value
|
|
79
|
-
'message': value
|
|
80
|
-
'error': value
|
|
73
|
+
'statusCode': value['statusCode'],
|
|
74
|
+
'message': value['message'],
|
|
75
|
+
'error': value['error'],
|
|
81
76
|
};
|
|
82
77
|
}
|
|
83
78
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
* Returned if invalid authentication provided.
|
|
18
18
|
* @export
|
|
@@ -43,11 +43,9 @@ export interface List401Response {
|
|
|
43
43
|
* Check if a given object implements the List401Response interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfList401Response(value: object): boolean {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return isInstance;
|
|
46
|
+
if (!('statusCode' in value)) return false;
|
|
47
|
+
if (!('message' in value)) return false;
|
|
48
|
+
return true;
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
export function List401ResponseFromJSON(json: any): List401Response {
|
|
@@ -55,29 +53,26 @@ export function List401ResponseFromJSON(json: any): List401Response {
|
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
export function List401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): List401Response {
|
|
58
|
-
if (
|
|
56
|
+
if (json == null) {
|
|
59
57
|
return json;
|
|
60
58
|
}
|
|
61
59
|
return {
|
|
62
60
|
|
|
63
61
|
'statusCode': json['statusCode'],
|
|
64
62
|
'message': json['message'],
|
|
65
|
-
'error':
|
|
63
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
66
64
|
};
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
export function List401ResponseToJSON(value?: List401Response | null): any {
|
|
70
|
-
if (value
|
|
71
|
-
return
|
|
72
|
-
}
|
|
73
|
-
if (value === null) {
|
|
74
|
-
return null;
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
75
70
|
}
|
|
76
71
|
return {
|
|
77
72
|
|
|
78
|
-
'statusCode': value
|
|
79
|
-
'message': value
|
|
80
|
-
'error': value
|
|
73
|
+
'statusCode': value['statusCode'],
|
|
74
|
+
'message': value['message'],
|
|
75
|
+
'error': value['error'],
|
|
81
76
|
};
|
|
82
77
|
}
|
|
83
78
|
|