@randock/nameshift-api-client 0.0.18 → 0.0.20
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 +4 -1
- 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/DomainsPublicApi.d.ts +4 -12
- package/dist/apis/DomainsPublicApi.js +8 -50
- package/dist/apis/LeadsApi.js +18 -18
- package/dist/apis/LeadsPublicApi.js +3 -3
- 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/DomainSalesInformationDto.d.ts +51 -0
- package/dist/models/DomainSalesInformationDto.js +61 -0
- package/dist/models/DomainSellerDto.d.ts +37 -0
- package/dist/models/DomainSellerDto.js +51 -0
- 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/PublicDomainControllerGetDomainSalesInformation404Response.d.ts +43 -0
- package/dist/models/PublicDomainControllerGetDomainSalesInformation404Response.js +53 -0
- 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 +3 -1
- package/dist/models/index.js +3 -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/DomainsPublicApi.ts +17 -46
- package/src/apis/LeadsApi.ts +36 -18
- package/src/apis/LeadsPublicApi.ts +6 -3
- 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/DomainSalesInformationDto.ts +101 -0
- package/src/models/DomainSellerDto.ts +70 -0
- 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/PublicDomainControllerGetDomainSalesInformation404Response.ts +78 -0
- 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 +3 -1
- package/src/runtime.ts +3 -8
- 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/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
|
@@ -15,18 +15,17 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
18
|
+
DomainSalesInformationDto,
|
|
19
|
+
PublicDomainControllerGetDomainSalesInformation404Response,
|
|
19
20
|
} from '../models/index';
|
|
20
21
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
DomainSalesInformationDtoFromJSON,
|
|
23
|
+
DomainSalesInformationDtoToJSON,
|
|
24
|
+
PublicDomainControllerGetDomainSalesInformation404ResponseFromJSON,
|
|
25
|
+
PublicDomainControllerGetDomainSalesInformation404ResponseToJSON,
|
|
23
26
|
} from '../models/index';
|
|
24
27
|
|
|
25
|
-
export interface
|
|
26
|
-
domain: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest {
|
|
28
|
+
export interface DomainsPublicApiPublicDomainControllerGetDomainSalesInformationRequest {
|
|
30
29
|
domainName: string;
|
|
31
30
|
}
|
|
32
31
|
|
|
@@ -37,40 +36,12 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
37
36
|
|
|
38
37
|
/**
|
|
39
38
|
*/
|
|
40
|
-
async
|
|
41
|
-
if (requestParameters
|
|
42
|
-
throw new runtime.RequiredError(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
if (requestParameters.domain !== undefined) {
|
|
48
|
-
queryParameters['domain'] = requestParameters.domain;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
52
|
-
|
|
53
|
-
const response = await this.request({
|
|
54
|
-
path: `/caddy`,
|
|
55
|
-
method: 'GET',
|
|
56
|
-
headers: headerParameters,
|
|
57
|
-
query: queryParameters,
|
|
58
|
-
}, initOverrides);
|
|
59
|
-
|
|
60
|
-
return new runtime.VoidApiResponse(response);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
*/
|
|
65
|
-
async publicDomainControllerGetCaddy(requestParameters: DomainsPublicApiPublicDomainControllerGetCaddyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
66
|
-
await this.publicDomainControllerGetCaddyRaw(requestParameters, initOverrides);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
*/
|
|
71
|
-
async publicDomainControllerGetDomainIdentifierRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
|
|
72
|
-
if (requestParameters.domainName === null || requestParameters.domainName === undefined) {
|
|
73
|
-
throw new runtime.RequiredError('domainName','Required parameter requestParameters.domainName was null or undefined when calling publicDomainControllerGetDomainIdentifier.');
|
|
39
|
+
async publicDomainControllerGetDomainSalesInformationRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainSalesInformationDto>> {
|
|
40
|
+
if (requestParameters['domainName'] == null) {
|
|
41
|
+
throw new runtime.RequiredError(
|
|
42
|
+
'domainName',
|
|
43
|
+
'Required parameter "domainName" was null or undefined when calling publicDomainControllerGetDomainSalesInformation().'
|
|
44
|
+
);
|
|
74
45
|
}
|
|
75
46
|
|
|
76
47
|
const queryParameters: any = {};
|
|
@@ -78,19 +49,19 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
78
49
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
79
50
|
|
|
80
51
|
const response = await this.request({
|
|
81
|
-
path: `/domains/by-name/{domainName}/
|
|
52
|
+
path: `/domains/by-name/{domainName}/sales-information`.replace(`{${"domainName"}}`, encodeURIComponent(String(requestParameters['domainName']))),
|
|
82
53
|
method: 'GET',
|
|
83
54
|
headers: headerParameters,
|
|
84
55
|
query: queryParameters,
|
|
85
56
|
}, initOverrides);
|
|
86
57
|
|
|
87
|
-
return new runtime.JSONApiResponse
|
|
58
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DomainSalesInformationDtoFromJSON(jsonValue));
|
|
88
59
|
}
|
|
89
60
|
|
|
90
61
|
/**
|
|
91
62
|
*/
|
|
92
|
-
async
|
|
93
|
-
const response = await this.
|
|
63
|
+
async publicDomainControllerGetDomainSalesInformation(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainSalesInformationDto> {
|
|
64
|
+
const response = await this.publicDomainControllerGetDomainSalesInformationRaw(requestParameters, initOverrides);
|
|
94
65
|
return await response.value();
|
|
95
66
|
}
|
|
96
67
|
|
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -70,12 +70,18 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
70
70
|
*
|
|
71
71
|
*/
|
|
72
72
|
async createMessageRaw(requestParameters: LeadsApiCreateMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
|
|
73
|
-
if (requestParameters
|
|
74
|
-
throw new runtime.RequiredError(
|
|
73
|
+
if (requestParameters['leadId'] == null) {
|
|
74
|
+
throw new runtime.RequiredError(
|
|
75
|
+
'leadId',
|
|
76
|
+
'Required parameter "leadId" was null or undefined when calling createMessage().'
|
|
77
|
+
);
|
|
75
78
|
}
|
|
76
79
|
|
|
77
|
-
if (requestParameters
|
|
78
|
-
throw new runtime.RequiredError(
|
|
80
|
+
if (requestParameters['createLeadMessageInput'] == null) {
|
|
81
|
+
throw new runtime.RequiredError(
|
|
82
|
+
'createLeadMessageInput',
|
|
83
|
+
'Required parameter "createLeadMessageInput" was null or undefined when calling createMessage().'
|
|
84
|
+
);
|
|
79
85
|
}
|
|
80
86
|
|
|
81
87
|
const queryParameters: any = {};
|
|
@@ -93,11 +99,11 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
93
99
|
}
|
|
94
100
|
}
|
|
95
101
|
const response = await this.request({
|
|
96
|
-
path: `/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters
|
|
102
|
+
path: `/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
97
103
|
method: 'POST',
|
|
98
104
|
headers: headerParameters,
|
|
99
105
|
query: queryParameters,
|
|
100
|
-
body: CreateLeadMessageInputToJSON(requestParameters
|
|
106
|
+
body: CreateLeadMessageInputToJSON(requestParameters['createLeadMessageInput']),
|
|
101
107
|
}, initOverrides);
|
|
102
108
|
|
|
103
109
|
return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
|
|
@@ -115,8 +121,11 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
115
121
|
*
|
|
116
122
|
*/
|
|
117
123
|
async getRaw(requestParameters: LeadsApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionLeadDtoWithLeadDetailsDto>> {
|
|
118
|
-
if (requestParameters
|
|
119
|
-
throw new runtime.RequiredError(
|
|
124
|
+
if (requestParameters['leadId'] == null) {
|
|
125
|
+
throw new runtime.RequiredError(
|
|
126
|
+
'leadId',
|
|
127
|
+
'Required parameter "leadId" was null or undefined when calling get().'
|
|
128
|
+
);
|
|
120
129
|
}
|
|
121
130
|
|
|
122
131
|
const queryParameters: any = {};
|
|
@@ -132,7 +141,7 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
132
141
|
}
|
|
133
142
|
}
|
|
134
143
|
const response = await this.request({
|
|
135
|
-
path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters
|
|
144
|
+
path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
136
145
|
method: 'GET',
|
|
137
146
|
headers: headerParameters,
|
|
138
147
|
query: queryParameters,
|
|
@@ -153,8 +162,11 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
153
162
|
*
|
|
154
163
|
*/
|
|
155
164
|
async getMessagesRaw(requestParameters: LeadsApiGetMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListLeadMessagesDto>> {
|
|
156
|
-
if (requestParameters
|
|
157
|
-
throw new runtime.RequiredError(
|
|
165
|
+
if (requestParameters['leadId'] == null) {
|
|
166
|
+
throw new runtime.RequiredError(
|
|
167
|
+
'leadId',
|
|
168
|
+
'Required parameter "leadId" was null or undefined when calling getMessages().'
|
|
169
|
+
);
|
|
158
170
|
}
|
|
159
171
|
|
|
160
172
|
const queryParameters: any = {};
|
|
@@ -170,7 +182,7 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
170
182
|
}
|
|
171
183
|
}
|
|
172
184
|
const response = await this.request({
|
|
173
|
-
path: `/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters
|
|
185
|
+
path: `/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
174
186
|
method: 'GET',
|
|
175
187
|
headers: headerParameters,
|
|
176
188
|
query: queryParameters,
|
|
@@ -225,12 +237,18 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
225
237
|
*
|
|
226
238
|
*/
|
|
227
239
|
async putOfferRaw(requestParameters: LeadsApiPutOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
228
|
-
if (requestParameters
|
|
229
|
-
throw new runtime.RequiredError(
|
|
240
|
+
if (requestParameters['leadId'] == null) {
|
|
241
|
+
throw new runtime.RequiredError(
|
|
242
|
+
'leadId',
|
|
243
|
+
'Required parameter "leadId" was null or undefined when calling putOffer().'
|
|
244
|
+
);
|
|
230
245
|
}
|
|
231
246
|
|
|
232
|
-
if (requestParameters
|
|
233
|
-
throw new runtime.RequiredError(
|
|
247
|
+
if (requestParameters['putLeadInput'] == null) {
|
|
248
|
+
throw new runtime.RequiredError(
|
|
249
|
+
'putLeadInput',
|
|
250
|
+
'Required parameter "putLeadInput" was null or undefined when calling putOffer().'
|
|
251
|
+
);
|
|
234
252
|
}
|
|
235
253
|
|
|
236
254
|
const queryParameters: any = {};
|
|
@@ -248,11 +266,11 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
248
266
|
}
|
|
249
267
|
}
|
|
250
268
|
const response = await this.request({
|
|
251
|
-
path: `/leads/{leadId}/offer`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters
|
|
269
|
+
path: `/leads/{leadId}/offer`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
252
270
|
method: 'PUT',
|
|
253
271
|
headers: headerParameters,
|
|
254
272
|
query: queryParameters,
|
|
255
|
-
body: PutLeadInputToJSON(requestParameters
|
|
273
|
+
body: PutLeadInputToJSON(requestParameters['putLeadInput']),
|
|
256
274
|
}, initOverrides);
|
|
257
275
|
|
|
258
276
|
return new runtime.VoidApiResponse(response);
|
|
@@ -47,8 +47,11 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
47
47
|
*
|
|
48
48
|
*/
|
|
49
49
|
async createLeadRaw(requestParameters: LeadsPublicApiCreateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
|
|
50
|
-
if (requestParameters
|
|
51
|
-
throw new runtime.RequiredError(
|
|
50
|
+
if (requestParameters['createLeadInput'] == null) {
|
|
51
|
+
throw new runtime.RequiredError(
|
|
52
|
+
'createLeadInput',
|
|
53
|
+
'Required parameter "createLeadInput" was null or undefined when calling createLead().'
|
|
54
|
+
);
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
const queryParameters: any = {};
|
|
@@ -62,7 +65,7 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
62
65
|
method: 'POST',
|
|
63
66
|
headers: headerParameters,
|
|
64
67
|
query: queryParameters,
|
|
65
|
-
body: CreateLeadInputToJSON(requestParameters
|
|
68
|
+
body: CreateLeadInputToJSON(requestParameters['createLeadInput']),
|
|
66
69
|
}, initOverrides);
|
|
67
70
|
|
|
68
71
|
return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
|
|
@@ -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
|
|
@@ -71,14 +71,12 @@ export type AccountAddressDtoTypeEnum = typeof AccountAddressDtoTypeEnum[keyof t
|
|
|
71
71
|
* Check if a given object implements the AccountAddressDto interface.
|
|
72
72
|
*/
|
|
73
73
|
export function instanceOfAccountAddressDto(value: object): boolean {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return isInstance;
|
|
74
|
+
if (!('type' in value)) return false;
|
|
75
|
+
if (!('address' in value)) return false;
|
|
76
|
+
if (!('postalCode' in value)) return false;
|
|
77
|
+
if (!('city' in value)) return false;
|
|
78
|
+
if (!('country' in value)) return false;
|
|
79
|
+
return true;
|
|
82
80
|
}
|
|
83
81
|
|
|
84
82
|
export function AccountAddressDtoFromJSON(json: any): AccountAddressDto {
|
|
@@ -86,7 +84,7 @@ export function AccountAddressDtoFromJSON(json: any): AccountAddressDto {
|
|
|
86
84
|
}
|
|
87
85
|
|
|
88
86
|
export function AccountAddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountAddressDto {
|
|
89
|
-
if (
|
|
87
|
+
if (json == null) {
|
|
90
88
|
return json;
|
|
91
89
|
}
|
|
92
90
|
return {
|
|
@@ -95,26 +93,23 @@ export function AccountAddressDtoFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
95
93
|
'address': json['address'],
|
|
96
94
|
'postalCode': json['postalCode'],
|
|
97
95
|
'city': json['city'],
|
|
98
|
-
'state':
|
|
96
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
99
97
|
'country': json['country'],
|
|
100
98
|
};
|
|
101
99
|
}
|
|
102
100
|
|
|
103
101
|
export function AccountAddressDtoToJSON(value?: AccountAddressDto | null): any {
|
|
104
|
-
if (value
|
|
105
|
-
return
|
|
106
|
-
}
|
|
107
|
-
if (value === null) {
|
|
108
|
-
return null;
|
|
102
|
+
if (value == null) {
|
|
103
|
+
return value;
|
|
109
104
|
}
|
|
110
105
|
return {
|
|
111
106
|
|
|
112
|
-
'type': value
|
|
113
|
-
'address': value
|
|
114
|
-
'postalCode': value
|
|
115
|
-
'city': value
|
|
116
|
-
'state': value
|
|
117
|
-
'country': value
|
|
107
|
+
'type': value['type'],
|
|
108
|
+
'address': value['address'],
|
|
109
|
+
'postalCode': value['postalCode'],
|
|
110
|
+
'city': value['city'],
|
|
111
|
+
'state': value['state'],
|
|
112
|
+
'country': value['country'],
|
|
118
113
|
};
|
|
119
114
|
}
|
|
120
115
|
|
|
@@ -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
|
|
@@ -71,14 +71,12 @@ export type AccountAddressInputTypeEnum = typeof AccountAddressInputTypeEnum[key
|
|
|
71
71
|
* Check if a given object implements the AccountAddressInput interface.
|
|
72
72
|
*/
|
|
73
73
|
export function instanceOfAccountAddressInput(value: object): boolean {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return isInstance;
|
|
74
|
+
if (!('type' in value)) return false;
|
|
75
|
+
if (!('address' in value)) return false;
|
|
76
|
+
if (!('postalCode' in value)) return false;
|
|
77
|
+
if (!('city' in value)) return false;
|
|
78
|
+
if (!('country' in value)) return false;
|
|
79
|
+
return true;
|
|
82
80
|
}
|
|
83
81
|
|
|
84
82
|
export function AccountAddressInputFromJSON(json: any): AccountAddressInput {
|
|
@@ -86,7 +84,7 @@ export function AccountAddressInputFromJSON(json: any): AccountAddressInput {
|
|
|
86
84
|
}
|
|
87
85
|
|
|
88
86
|
export function AccountAddressInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountAddressInput {
|
|
89
|
-
if (
|
|
87
|
+
if (json == null) {
|
|
90
88
|
return json;
|
|
91
89
|
}
|
|
92
90
|
return {
|
|
@@ -95,26 +93,23 @@ export function AccountAddressInputFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
95
93
|
'address': json['address'],
|
|
96
94
|
'postalCode': json['postalCode'],
|
|
97
95
|
'city': json['city'],
|
|
98
|
-
'state':
|
|
96
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
99
97
|
'country': json['country'],
|
|
100
98
|
};
|
|
101
99
|
}
|
|
102
100
|
|
|
103
101
|
export function AccountAddressInputToJSON(value?: AccountAddressInput | null): any {
|
|
104
|
-
if (value
|
|
105
|
-
return
|
|
106
|
-
}
|
|
107
|
-
if (value === null) {
|
|
108
|
-
return null;
|
|
102
|
+
if (value == null) {
|
|
103
|
+
return value;
|
|
109
104
|
}
|
|
110
105
|
return {
|
|
111
106
|
|
|
112
|
-
'type': value
|
|
113
|
-
'address': value
|
|
114
|
-
'postalCode': value
|
|
115
|
-
'city': value
|
|
116
|
-
'state': value
|
|
117
|
-
'country': value
|
|
107
|
+
'type': value['type'],
|
|
108
|
+
'address': value['address'],
|
|
109
|
+
'postalCode': value['postalCode'],
|
|
110
|
+
'city': value['city'],
|
|
111
|
+
'state': value['state'],
|
|
112
|
+
'country': value['country'],
|
|
118
113
|
};
|
|
119
114
|
}
|
|
120
115
|
|
package/src/models/AccountDto.ts
CHANGED
|
@@ -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 AccountDto {
|
|
|
37
37
|
* Check if a given object implements the AccountDto interface.
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfAccountDto(value: object): boolean {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return isInstance;
|
|
40
|
+
if (!('id' in value)) return false;
|
|
41
|
+
if (!('identifier' in value)) return false;
|
|
42
|
+
return true;
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
export function AccountDtoFromJSON(json: any): AccountDto {
|
|
@@ -49,7 +47,7 @@ export function AccountDtoFromJSON(json: any): AccountDto {
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
export function AccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountDto {
|
|
52
|
-
if (
|
|
50
|
+
if (json == null) {
|
|
53
51
|
return json;
|
|
54
52
|
}
|
|
55
53
|
return {
|
|
@@ -60,16 +58,13 @@ export function AccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
export function AccountDtoToJSON(value?: AccountDto | 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
|
-
'id': value
|
|
72
|
-
'identifier': value
|
|
66
|
+
'id': value['id'],
|
|
67
|
+
'identifier': value['identifier'],
|
|
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
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -49,13 +49,11 @@ export interface AccountFinancialInput {
|
|
|
49
49
|
* Check if a given object implements the AccountFinancialInput interface.
|
|
50
50
|
*/
|
|
51
51
|
export function instanceOfAccountFinancialInput(value: object): boolean {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return isInstance;
|
|
52
|
+
if (!('companyName' in value)) return false;
|
|
53
|
+
if (!('companyVatNumber' in value)) return false;
|
|
54
|
+
if (!('companyRegistrationNumber' in value)) return false;
|
|
55
|
+
if (!('company' in value)) return false;
|
|
56
|
+
return true;
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
export function AccountFinancialInputFromJSON(json: any): AccountFinancialInput {
|
|
@@ -63,7 +61,7 @@ export function AccountFinancialInputFromJSON(json: any): AccountFinancialInput
|
|
|
63
61
|
}
|
|
64
62
|
|
|
65
63
|
export function AccountFinancialInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountFinancialInput {
|
|
66
|
-
if (
|
|
64
|
+
if (json == null) {
|
|
67
65
|
return json;
|
|
68
66
|
}
|
|
69
67
|
return {
|
|
@@ -76,18 +74,15 @@ export function AccountFinancialInputFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
export function AccountFinancialInputToJSON(value?: AccountFinancialInput | null): any {
|
|
79
|
-
if (value
|
|
80
|
-
return
|
|
81
|
-
}
|
|
82
|
-
if (value === null) {
|
|
83
|
-
return null;
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
84
79
|
}
|
|
85
80
|
return {
|
|
86
81
|
|
|
87
|
-
'companyName': value
|
|
88
|
-
'companyVatNumber': value
|
|
89
|
-
'companyRegistrationNumber': value
|
|
90
|
-
'company': value
|
|
82
|
+
'companyName': value['companyName'],
|
|
83
|
+
'companyVatNumber': value['companyVatNumber'],
|
|
84
|
+
'companyRegistrationNumber': value['companyRegistrationNumber'],
|
|
85
|
+
'company': value['company'],
|
|
91
86
|
};
|
|
92
87
|
}
|
|
93
88
|
|
|
@@ -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 { MoneyInput } from './MoneyInput';
|
|
17
17
|
import {
|
|
18
18
|
MoneyInputFromJSON,
|
|
@@ -38,9 +38,7 @@ export interface AccountSettingsInput {
|
|
|
38
38
|
* Check if a given object implements the AccountSettingsInput interface.
|
|
39
39
|
*/
|
|
40
40
|
export function instanceOfAccountSettingsInput(value: object): boolean {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return isInstance;
|
|
41
|
+
return true;
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
export function AccountSettingsInputFromJSON(json: any): AccountSettingsInput {
|
|
@@ -48,25 +46,22 @@ export function AccountSettingsInputFromJSON(json: any): AccountSettingsInput {
|
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsInput {
|
|
51
|
-
if (
|
|
49
|
+
if (json == null) {
|
|
52
50
|
return json;
|
|
53
51
|
}
|
|
54
52
|
return {
|
|
55
53
|
|
|
56
|
-
'defaultStartingOffer':
|
|
54
|
+
'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : MoneyInputFromJSON(json['defaultStartingOffer']),
|
|
57
55
|
};
|
|
58
56
|
}
|
|
59
57
|
|
|
60
58
|
export function AccountSettingsInputToJSON(value?: AccountSettingsInput | null): any {
|
|
61
|
-
if (value
|
|
62
|
-
return
|
|
63
|
-
}
|
|
64
|
-
if (value === null) {
|
|
65
|
-
return null;
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
66
61
|
}
|
|
67
62
|
return {
|
|
68
63
|
|
|
69
|
-
'defaultStartingOffer': MoneyInputToJSON(value
|
|
64
|
+
'defaultStartingOffer': MoneyInputToJSON(value['defaultStartingOffer']),
|
|
70
65
|
};
|
|
71
66
|
}
|
|
72
67
|
|
|
@@ -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
|
|
@@ -43,11 +43,9 @@ export interface BatchUpdate404Response {
|
|
|
43
43
|
* Check if a given object implements the BatchUpdate404Response interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfBatchUpdate404Response(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 BatchUpdate404ResponseFromJSON(json: any): BatchUpdate404Response {
|
|
@@ -55,29 +53,26 @@ export function BatchUpdate404ResponseFromJSON(json: any): BatchUpdate404Respons
|
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
export function BatchUpdate404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchUpdate404Response {
|
|
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 BatchUpdate404ResponseToJSON(value?: BatchUpdate404Response | 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
|
|