@randock/nameshift-api-client 0.0.17 → 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 +3 -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.d.ts +3 -3
- 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.d.ts +43 -0
- package/dist/models/UpdateFinancial400Response.js +53 -0
- package/dist/models/UpdateSettings400Response.d.ts +43 -0
- package/dist/models/UpdateSettings400Response.js +53 -0
- 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 +2 -1
- package/dist/models/index.js +2 -1
- package/dist/runtime.d.ts +2 -3
- package/dist/runtime.js +1 -6
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +42 -18
- package/src/apis/AuthApi.ts +6 -3
- package/src/apis/DomainsApi.ts +49 -31
- package/src/apis/LeadsApi.ts +39 -18
- package/src/apis/LeadsPublicApi.ts +9 -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 +14 -19
- 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 +78 -0
- package/src/models/UpdateSettings400Response.ts +78 -0
- 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 +2 -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
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -19,6 +19,8 @@ import type {
|
|
|
19
19
|
AccountFinancialInput,
|
|
20
20
|
AccountSettingsInput,
|
|
21
21
|
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto,
|
|
22
|
+
UpdateFinancial400Response,
|
|
23
|
+
UpdateSettings400Response,
|
|
22
24
|
UpdateSettings401Response,
|
|
23
25
|
UpdateSettings429Response,
|
|
24
26
|
} from '../models/index';
|
|
@@ -31,6 +33,10 @@ import {
|
|
|
31
33
|
AccountSettingsInputToJSON,
|
|
32
34
|
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON,
|
|
33
35
|
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON,
|
|
36
|
+
UpdateFinancial400ResponseFromJSON,
|
|
37
|
+
UpdateFinancial400ResponseToJSON,
|
|
38
|
+
UpdateSettings400ResponseFromJSON,
|
|
39
|
+
UpdateSettings400ResponseToJSON,
|
|
34
40
|
UpdateSettings401ResponseFromJSON,
|
|
35
41
|
UpdateSettings401ResponseToJSON,
|
|
36
42
|
UpdateSettings429ResponseFromJSON,
|
|
@@ -95,12 +101,18 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
95
101
|
*
|
|
96
102
|
*/
|
|
97
103
|
async updateAddressRaw(requestParameters: AccountsApiUpdateAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
98
|
-
if (requestParameters
|
|
99
|
-
throw new runtime.RequiredError(
|
|
104
|
+
if (requestParameters['accountId'] == null) {
|
|
105
|
+
throw new runtime.RequiredError(
|
|
106
|
+
'accountId',
|
|
107
|
+
'Required parameter "accountId" was null or undefined when calling updateAddress().'
|
|
108
|
+
);
|
|
100
109
|
}
|
|
101
110
|
|
|
102
|
-
if (requestParameters
|
|
103
|
-
throw new runtime.RequiredError(
|
|
111
|
+
if (requestParameters['accountAddressInput'] == null) {
|
|
112
|
+
throw new runtime.RequiredError(
|
|
113
|
+
'accountAddressInput',
|
|
114
|
+
'Required parameter "accountAddressInput" was null or undefined when calling updateAddress().'
|
|
115
|
+
);
|
|
104
116
|
}
|
|
105
117
|
|
|
106
118
|
const queryParameters: any = {};
|
|
@@ -118,11 +130,11 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
118
130
|
}
|
|
119
131
|
}
|
|
120
132
|
const response = await this.request({
|
|
121
|
-
path: `/accounts/{accountId}/addresses`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters
|
|
133
|
+
path: `/accounts/{accountId}/addresses`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
122
134
|
method: 'PUT',
|
|
123
135
|
headers: headerParameters,
|
|
124
136
|
query: queryParameters,
|
|
125
|
-
body: AccountAddressInputToJSON(requestParameters
|
|
137
|
+
body: AccountAddressInputToJSON(requestParameters['accountAddressInput']),
|
|
126
138
|
}, initOverrides);
|
|
127
139
|
|
|
128
140
|
return new runtime.VoidApiResponse(response);
|
|
@@ -139,12 +151,18 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
139
151
|
*
|
|
140
152
|
*/
|
|
141
153
|
async updateFinancialRaw(requestParameters: AccountsApiUpdateFinancialRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
142
|
-
if (requestParameters
|
|
143
|
-
throw new runtime.RequiredError(
|
|
154
|
+
if (requestParameters['accountId'] == null) {
|
|
155
|
+
throw new runtime.RequiredError(
|
|
156
|
+
'accountId',
|
|
157
|
+
'Required parameter "accountId" was null or undefined when calling updateFinancial().'
|
|
158
|
+
);
|
|
144
159
|
}
|
|
145
160
|
|
|
146
|
-
if (requestParameters
|
|
147
|
-
throw new runtime.RequiredError(
|
|
161
|
+
if (requestParameters['accountFinancialInput'] == null) {
|
|
162
|
+
throw new runtime.RequiredError(
|
|
163
|
+
'accountFinancialInput',
|
|
164
|
+
'Required parameter "accountFinancialInput" was null or undefined when calling updateFinancial().'
|
|
165
|
+
);
|
|
148
166
|
}
|
|
149
167
|
|
|
150
168
|
const queryParameters: any = {};
|
|
@@ -162,11 +180,11 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
162
180
|
}
|
|
163
181
|
}
|
|
164
182
|
const response = await this.request({
|
|
165
|
-
path: `/accounts/{accountId}/financial`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters
|
|
183
|
+
path: `/accounts/{accountId}/financial`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
166
184
|
method: 'PUT',
|
|
167
185
|
headers: headerParameters,
|
|
168
186
|
query: queryParameters,
|
|
169
|
-
body: AccountFinancialInputToJSON(requestParameters
|
|
187
|
+
body: AccountFinancialInputToJSON(requestParameters['accountFinancialInput']),
|
|
170
188
|
}, initOverrides);
|
|
171
189
|
|
|
172
190
|
return new runtime.VoidApiResponse(response);
|
|
@@ -183,12 +201,18 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
183
201
|
*
|
|
184
202
|
*/
|
|
185
203
|
async updateSettingsRaw(requestParameters: AccountsApiUpdateSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
186
|
-
if (requestParameters
|
|
187
|
-
throw new runtime.RequiredError(
|
|
204
|
+
if (requestParameters['accountId'] == null) {
|
|
205
|
+
throw new runtime.RequiredError(
|
|
206
|
+
'accountId',
|
|
207
|
+
'Required parameter "accountId" was null or undefined when calling updateSettings().'
|
|
208
|
+
);
|
|
188
209
|
}
|
|
189
210
|
|
|
190
|
-
if (requestParameters
|
|
191
|
-
throw new runtime.RequiredError(
|
|
211
|
+
if (requestParameters['accountSettingsInput'] == null) {
|
|
212
|
+
throw new runtime.RequiredError(
|
|
213
|
+
'accountSettingsInput',
|
|
214
|
+
'Required parameter "accountSettingsInput" was null or undefined when calling updateSettings().'
|
|
215
|
+
);
|
|
192
216
|
}
|
|
193
217
|
|
|
194
218
|
const queryParameters: any = {};
|
|
@@ -206,11 +230,11 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
206
230
|
}
|
|
207
231
|
}
|
|
208
232
|
const response = await this.request({
|
|
209
|
-
path: `/accounts/{accountId}/settings`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters
|
|
233
|
+
path: `/accounts/{accountId}/settings`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
210
234
|
method: 'PUT',
|
|
211
235
|
headers: headerParameters,
|
|
212
236
|
query: queryParameters,
|
|
213
|
-
body: AccountSettingsInputToJSON(requestParameters
|
|
237
|
+
body: AccountSettingsInputToJSON(requestParameters['accountSettingsInput']),
|
|
214
238
|
}, initOverrides);
|
|
215
239
|
|
|
216
240
|
return new runtime.VoidApiResponse(response);
|
package/src/apis/AuthApi.ts
CHANGED
|
@@ -44,8 +44,11 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
44
44
|
*
|
|
45
45
|
*/
|
|
46
46
|
async loginRaw(requestParameters: AuthApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenDto>> {
|
|
47
|
-
if (requestParameters
|
|
48
|
-
throw new runtime.RequiredError(
|
|
47
|
+
if (requestParameters['loginInput'] == null) {
|
|
48
|
+
throw new runtime.RequiredError(
|
|
49
|
+
'loginInput',
|
|
50
|
+
'Required parameter "loginInput" was null or undefined when calling login().'
|
|
51
|
+
);
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
const queryParameters: any = {};
|
|
@@ -59,7 +62,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
59
62
|
method: 'POST',
|
|
60
63
|
headers: headerParameters,
|
|
61
64
|
query: queryParameters,
|
|
62
|
-
body: LoginInputToJSON(requestParameters
|
|
65
|
+
body: LoginInputToJSON(requestParameters['loginInput']),
|
|
63
66
|
}, initOverrides);
|
|
64
67
|
|
|
65
68
|
return new runtime.JSONApiResponse(response, (jsonValue) => TokenDtoFromJSON(jsonValue));
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
} from '../models/index';
|
|
51
51
|
|
|
52
52
|
export interface DomainsApiBatchImportRequest {
|
|
53
|
-
file?: Blob
|
|
53
|
+
file?: Blob;
|
|
54
54
|
domains?: Array<string>;
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -119,12 +119,12 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
119
119
|
formParams = new URLSearchParams();
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
if (requestParameters
|
|
123
|
-
formParams.append('file', requestParameters
|
|
122
|
+
if (requestParameters['file'] != null) {
|
|
123
|
+
formParams.append('file', requestParameters['file'] as any);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
if (requestParameters
|
|
127
|
-
formParams.append('domains', requestParameters
|
|
126
|
+
if (requestParameters['domains'] != null) {
|
|
127
|
+
formParams.append('domains', requestParameters['domains']!.join(runtime.COLLECTION_FORMATS["csv"]));
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
const response = await this.request({
|
|
@@ -149,8 +149,11 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
149
149
|
*
|
|
150
150
|
*/
|
|
151
151
|
async batchUpdateRaw(requestParameters: DomainsApiBatchUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
152
|
-
if (requestParameters
|
|
153
|
-
throw new runtime.RequiredError(
|
|
152
|
+
if (requestParameters['batchUpdateDomainsInput'] == null) {
|
|
153
|
+
throw new runtime.RequiredError(
|
|
154
|
+
'batchUpdateDomainsInput',
|
|
155
|
+
'Required parameter "batchUpdateDomainsInput" was null or undefined when calling batchUpdate().'
|
|
156
|
+
);
|
|
154
157
|
}
|
|
155
158
|
|
|
156
159
|
const queryParameters: any = {};
|
|
@@ -172,7 +175,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
172
175
|
method: 'PUT',
|
|
173
176
|
headers: headerParameters,
|
|
174
177
|
query: queryParameters,
|
|
175
|
-
body: BatchUpdateDomainsInputToJSON(requestParameters
|
|
178
|
+
body: BatchUpdateDomainsInputToJSON(requestParameters['batchUpdateDomainsInput']),
|
|
176
179
|
}, initOverrides);
|
|
177
180
|
|
|
178
181
|
return new runtime.VoidApiResponse(response);
|
|
@@ -189,8 +192,11 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
189
192
|
*
|
|
190
193
|
*/
|
|
191
194
|
async checkDnsRaw(requestParameters: DomainsApiCheckDnsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
192
|
-
if (requestParameters
|
|
193
|
-
throw new runtime.RequiredError(
|
|
195
|
+
if (requestParameters['domainId'] == null) {
|
|
196
|
+
throw new runtime.RequiredError(
|
|
197
|
+
'domainId',
|
|
198
|
+
'Required parameter "domainId" was null or undefined when calling checkDns().'
|
|
199
|
+
);
|
|
194
200
|
}
|
|
195
201
|
|
|
196
202
|
const queryParameters: any = {};
|
|
@@ -206,7 +212,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
206
212
|
}
|
|
207
213
|
}
|
|
208
214
|
const response = await this.request({
|
|
209
|
-
path: `/domains/{domainId}/check_ns`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters
|
|
215
|
+
path: `/domains/{domainId}/check_ns`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
|
|
210
216
|
method: 'POST',
|
|
211
217
|
headers: headerParameters,
|
|
212
218
|
query: queryParameters,
|
|
@@ -226,8 +232,11 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
226
232
|
*
|
|
227
233
|
*/
|
|
228
234
|
async deleteDomainsRaw(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
229
|
-
if (requestParameters
|
|
230
|
-
throw new runtime.RequiredError(
|
|
235
|
+
if (requestParameters['deleteDomainsInput'] == null) {
|
|
236
|
+
throw new runtime.RequiredError(
|
|
237
|
+
'deleteDomainsInput',
|
|
238
|
+
'Required parameter "deleteDomainsInput" was null or undefined when calling deleteDomains().'
|
|
239
|
+
);
|
|
231
240
|
}
|
|
232
241
|
|
|
233
242
|
const queryParameters: any = {};
|
|
@@ -249,7 +258,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
249
258
|
method: 'DELETE',
|
|
250
259
|
headers: headerParameters,
|
|
251
260
|
query: queryParameters,
|
|
252
|
-
body: DeleteDomainsInputToJSON(requestParameters
|
|
261
|
+
body: DeleteDomainsInputToJSON(requestParameters['deleteDomainsInput']),
|
|
253
262
|
}, initOverrides);
|
|
254
263
|
|
|
255
264
|
return new runtime.VoidApiResponse(response);
|
|
@@ -266,8 +275,11 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
266
275
|
*
|
|
267
276
|
*/
|
|
268
277
|
async getRaw(requestParameters: DomainsApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionDomainDtoWithHijackerDtoWithAccountDto>> {
|
|
269
|
-
if (requestParameters
|
|
270
|
-
throw new runtime.RequiredError(
|
|
278
|
+
if (requestParameters['domainId'] == null) {
|
|
279
|
+
throw new runtime.RequiredError(
|
|
280
|
+
'domainId',
|
|
281
|
+
'Required parameter "domainId" was null or undefined when calling get().'
|
|
282
|
+
);
|
|
271
283
|
}
|
|
272
284
|
|
|
273
285
|
const queryParameters: any = {};
|
|
@@ -283,7 +295,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
283
295
|
}
|
|
284
296
|
}
|
|
285
297
|
const response = await this.request({
|
|
286
|
-
path: `/domains/{domainId}`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters
|
|
298
|
+
path: `/domains/{domainId}`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
|
|
287
299
|
method: 'GET',
|
|
288
300
|
headers: headerParameters,
|
|
289
301
|
query: queryParameters,
|
|
@@ -306,20 +318,20 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
306
318
|
async listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response>> {
|
|
307
319
|
const queryParameters: any = {};
|
|
308
320
|
|
|
309
|
-
if (requestParameters
|
|
310
|
-
queryParameters['filter'] = requestParameters
|
|
321
|
+
if (requestParameters['filter'] != null) {
|
|
322
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
311
323
|
}
|
|
312
324
|
|
|
313
|
-
if (requestParameters
|
|
314
|
-
queryParameters['page'] = requestParameters
|
|
325
|
+
if (requestParameters['page'] != null) {
|
|
326
|
+
queryParameters['page'] = requestParameters['page'];
|
|
315
327
|
}
|
|
316
328
|
|
|
317
|
-
if (requestParameters
|
|
318
|
-
queryParameters['limit'] = requestParameters
|
|
329
|
+
if (requestParameters['limit'] != null) {
|
|
330
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
319
331
|
}
|
|
320
332
|
|
|
321
|
-
if (requestParameters
|
|
322
|
-
queryParameters['sortBy'] = requestParameters
|
|
333
|
+
if (requestParameters['sortBy'] != null) {
|
|
334
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
323
335
|
}
|
|
324
336
|
|
|
325
337
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -354,12 +366,18 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
354
366
|
*
|
|
355
367
|
*/
|
|
356
368
|
async updateRaw(requestParameters: DomainsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainDto>> {
|
|
357
|
-
if (requestParameters
|
|
358
|
-
throw new runtime.RequiredError(
|
|
369
|
+
if (requestParameters['domainId'] == null) {
|
|
370
|
+
throw new runtime.RequiredError(
|
|
371
|
+
'domainId',
|
|
372
|
+
'Required parameter "domainId" was null or undefined when calling update().'
|
|
373
|
+
);
|
|
359
374
|
}
|
|
360
375
|
|
|
361
|
-
if (requestParameters
|
|
362
|
-
throw new runtime.RequiredError(
|
|
376
|
+
if (requestParameters['updateDomainInput'] == null) {
|
|
377
|
+
throw new runtime.RequiredError(
|
|
378
|
+
'updateDomainInput',
|
|
379
|
+
'Required parameter "updateDomainInput" was null or undefined when calling update().'
|
|
380
|
+
);
|
|
363
381
|
}
|
|
364
382
|
|
|
365
383
|
const queryParameters: any = {};
|
|
@@ -377,11 +395,11 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
377
395
|
}
|
|
378
396
|
}
|
|
379
397
|
const response = await this.request({
|
|
380
|
-
path: `/domains/{domainId}`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters
|
|
398
|
+
path: `/domains/{domainId}`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
|
|
381
399
|
method: 'PUT',
|
|
382
400
|
headers: headerParameters,
|
|
383
401
|
query: queryParameters,
|
|
384
|
-
body: UpdateDomainInputToJSON(requestParameters
|
|
402
|
+
body: UpdateDomainInputToJSON(requestParameters['updateDomainInput']),
|
|
385
403
|
}, initOverrides);
|
|
386
404
|
|
|
387
405
|
return new runtime.JSONApiResponse(response, (jsonValue) => DomainDtoFromJSON(jsonValue));
|
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -21,6 +21,7 @@ import type {
|
|
|
21
21
|
ListLeadMessagesDto,
|
|
22
22
|
ObjectId,
|
|
23
23
|
PutLeadInput,
|
|
24
|
+
UpdateFinancial400Response,
|
|
24
25
|
UpdateSettings429Response,
|
|
25
26
|
} from '../models/index';
|
|
26
27
|
import {
|
|
@@ -36,6 +37,8 @@ import {
|
|
|
36
37
|
ObjectIdToJSON,
|
|
37
38
|
PutLeadInputFromJSON,
|
|
38
39
|
PutLeadInputToJSON,
|
|
40
|
+
UpdateFinancial400ResponseFromJSON,
|
|
41
|
+
UpdateFinancial400ResponseToJSON,
|
|
39
42
|
UpdateSettings429ResponseFromJSON,
|
|
40
43
|
UpdateSettings429ResponseToJSON,
|
|
41
44
|
} from '../models/index';
|
|
@@ -67,12 +70,18 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
67
70
|
*
|
|
68
71
|
*/
|
|
69
72
|
async createMessageRaw(requestParameters: LeadsApiCreateMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
|
|
70
|
-
if (requestParameters
|
|
71
|
-
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
|
+
);
|
|
72
78
|
}
|
|
73
79
|
|
|
74
|
-
if (requestParameters
|
|
75
|
-
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
|
+
);
|
|
76
85
|
}
|
|
77
86
|
|
|
78
87
|
const queryParameters: any = {};
|
|
@@ -90,11 +99,11 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
90
99
|
}
|
|
91
100
|
}
|
|
92
101
|
const response = await this.request({
|
|
93
|
-
path: `/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters
|
|
102
|
+
path: `/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
94
103
|
method: 'POST',
|
|
95
104
|
headers: headerParameters,
|
|
96
105
|
query: queryParameters,
|
|
97
|
-
body: CreateLeadMessageInputToJSON(requestParameters
|
|
106
|
+
body: CreateLeadMessageInputToJSON(requestParameters['createLeadMessageInput']),
|
|
98
107
|
}, initOverrides);
|
|
99
108
|
|
|
100
109
|
return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
|
|
@@ -112,8 +121,11 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
112
121
|
*
|
|
113
122
|
*/
|
|
114
123
|
async getRaw(requestParameters: LeadsApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionLeadDtoWithLeadDetailsDto>> {
|
|
115
|
-
if (requestParameters
|
|
116
|
-
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
|
+
);
|
|
117
129
|
}
|
|
118
130
|
|
|
119
131
|
const queryParameters: any = {};
|
|
@@ -129,7 +141,7 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
129
141
|
}
|
|
130
142
|
}
|
|
131
143
|
const response = await this.request({
|
|
132
|
-
path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters
|
|
144
|
+
path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
133
145
|
method: 'GET',
|
|
134
146
|
headers: headerParameters,
|
|
135
147
|
query: queryParameters,
|
|
@@ -150,8 +162,11 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
150
162
|
*
|
|
151
163
|
*/
|
|
152
164
|
async getMessagesRaw(requestParameters: LeadsApiGetMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListLeadMessagesDto>> {
|
|
153
|
-
if (requestParameters
|
|
154
|
-
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
|
+
);
|
|
155
170
|
}
|
|
156
171
|
|
|
157
172
|
const queryParameters: any = {};
|
|
@@ -167,7 +182,7 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
167
182
|
}
|
|
168
183
|
}
|
|
169
184
|
const response = await this.request({
|
|
170
|
-
path: `/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters
|
|
185
|
+
path: `/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
171
186
|
method: 'GET',
|
|
172
187
|
headers: headerParameters,
|
|
173
188
|
query: queryParameters,
|
|
@@ -222,12 +237,18 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
222
237
|
*
|
|
223
238
|
*/
|
|
224
239
|
async putOfferRaw(requestParameters: LeadsApiPutOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
225
|
-
if (requestParameters
|
|
226
|
-
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
|
+
);
|
|
227
245
|
}
|
|
228
246
|
|
|
229
|
-
if (requestParameters
|
|
230
|
-
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
|
+
);
|
|
231
252
|
}
|
|
232
253
|
|
|
233
254
|
const queryParameters: any = {};
|
|
@@ -245,11 +266,11 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
245
266
|
}
|
|
246
267
|
}
|
|
247
268
|
const response = await this.request({
|
|
248
|
-
path: `/leads/{leadId}/offer`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters
|
|
269
|
+
path: `/leads/{leadId}/offer`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
249
270
|
method: 'PUT',
|
|
250
271
|
headers: headerParameters,
|
|
251
272
|
query: queryParameters,
|
|
252
|
-
body: PutLeadInputToJSON(requestParameters
|
|
273
|
+
body: PutLeadInputToJSON(requestParameters['putLeadInput']),
|
|
253
274
|
}, initOverrides);
|
|
254
275
|
|
|
255
276
|
return new runtime.VoidApiResponse(response);
|
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
BatchUpdate404Response,
|
|
19
19
|
CreateLeadInput,
|
|
20
20
|
ObjectId,
|
|
21
|
+
UpdateFinancial400Response,
|
|
21
22
|
UpdateSettings429Response,
|
|
22
23
|
} from '../models/index';
|
|
23
24
|
import {
|
|
@@ -27,6 +28,8 @@ import {
|
|
|
27
28
|
CreateLeadInputToJSON,
|
|
28
29
|
ObjectIdFromJSON,
|
|
29
30
|
ObjectIdToJSON,
|
|
31
|
+
UpdateFinancial400ResponseFromJSON,
|
|
32
|
+
UpdateFinancial400ResponseToJSON,
|
|
30
33
|
UpdateSettings429ResponseFromJSON,
|
|
31
34
|
UpdateSettings429ResponseToJSON,
|
|
32
35
|
} from '../models/index';
|
|
@@ -44,8 +47,11 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
44
47
|
*
|
|
45
48
|
*/
|
|
46
49
|
async createLeadRaw(requestParameters: LeadsPublicApiCreateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
|
|
47
|
-
if (requestParameters
|
|
48
|
-
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
|
+
);
|
|
49
55
|
}
|
|
50
56
|
|
|
51
57
|
const queryParameters: any = {};
|
|
@@ -59,7 +65,7 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
59
65
|
method: 'POST',
|
|
60
66
|
headers: headerParameters,
|
|
61
67
|
query: queryParameters,
|
|
62
|
-
body: CreateLeadInputToJSON(requestParameters
|
|
68
|
+
body: CreateLeadInputToJSON(requestParameters['createLeadInput']),
|
|
63
69
|
}, initOverrides);
|
|
64
70
|
|
|
65
71
|
return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
|
package/src/apis/index.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
|
|
@@ -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
|
|