@randock/nameshift-api-client 0.0.298 → 0.0.300
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 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +16 -3
- package/dist/apis/AccountsApi.js +65 -8
- package/dist/models/BuyerDto.d.ts +12 -0
- package/dist/models/BuyerDto.js +8 -0
- package/dist/models/CreateLeadInput.d.ts +12 -0
- package/dist/models/CreateLeadInput.js +4 -0
- package/dist/models/DomainSalesInformationDto.d.ts +7 -0
- package/dist/models/DomainSalesInformationDto.js +5 -0
- package/dist/models/LandingPageInput.d.ts +12 -0
- package/dist/models/LandingPageInput.js +4 -0
- package/dist/models/LandingPageSettingsDto.d.ts +12 -0
- package/dist/models/LandingPageSettingsDto.js +8 -0
- package/dist/models/LeadBuyerConfigDto.d.ts +38 -0
- package/dist/models/LeadBuyerConfigDto.js +55 -0
- package/dist/models/PublicLeadBuyerDto.d.ts +6 -0
- package/dist/models/PublicLeadBuyerDto.js +4 -0
- package/dist/models/SellerAffiliateCommissionDto.d.ts +16 -0
- package/dist/models/SellerAffiliateCommissionDto.js +14 -1
- package/dist/models/UpdateLeadInput.d.ts +12 -0
- package/dist/models/UpdateLeadInput.js +4 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +68 -4
- package/src/models/BuyerDto.ts +18 -0
- package/src/models/CreateLeadInput.ts +16 -0
- package/src/models/DomainSalesInformationDto.ts +16 -0
- package/src/models/LandingPageInput.ts +16 -0
- package/src/models/LandingPageSettingsDto.ts +18 -0
- package/src/models/LeadBuyerConfigDto.ts +75 -0
- package/src/models/PublicLeadBuyerDto.ts +9 -0
- package/src/models/SellerAffiliateCommissionDto.ts +20 -0
- package/src/models/UpdateLeadInput.ts +16 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -161,6 +161,7 @@ src/models/InvoiceSellerAccountDto.ts
|
|
|
161
161
|
src/models/InvoiceTransactionDto.ts
|
|
162
162
|
src/models/LandingPageInput.ts
|
|
163
163
|
src/models/LandingPageSettingsDto.ts
|
|
164
|
+
src/models/LeadBuyerConfigDto.ts
|
|
164
165
|
src/models/LeadDomainDto.ts
|
|
165
166
|
src/models/LeadDto.ts
|
|
166
167
|
src/models/LeadLeaseToOwnAndRentConfigurationPresetsDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.300
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.300 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
0a5a297bb6220be51d974f98c4c924ab352e5e0c70e5e8a0237a5dae3d807343c45ae918297130270db90c030aa1c085
|
|
@@ -10,17 +10,22 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountOnboardingSessionDto, AccountSettingsDto, AccountSettingsInput, GetAllAffiliateCommissions200Response, GetAllReferrals200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, SetPayoutProviderInput, UpdateAccountBillingInformationInput } from '../models/index';
|
|
13
|
+
import type { AccountOnboardingSessionDto, AccountSettingsDto, AccountSettingsInput, GetAllAffiliateCommissions200Response, GetAllReferrals200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, MoneyDto, SetPayoutProviderInput, UpdateAccountBillingInformationInput } from '../models/index';
|
|
14
14
|
export interface AccountsApiGetAccountPaymentProviderSessionRequest {
|
|
15
15
|
accountId: string;
|
|
16
16
|
}
|
|
17
|
+
export interface AccountsApiGetAccountPendingAffiliateCommissionsSummaryRequest {
|
|
18
|
+
accountId: string;
|
|
19
|
+
}
|
|
17
20
|
export interface AccountsApiGetAllAffiliateCommissionsRequest {
|
|
21
|
+
accountId: string;
|
|
18
22
|
filter?: object;
|
|
19
23
|
page?: number;
|
|
20
24
|
limit?: number;
|
|
21
25
|
sortBy?: Array<string>;
|
|
22
26
|
}
|
|
23
27
|
export interface AccountsApiGetAllReferralsRequest {
|
|
28
|
+
accountId: string;
|
|
24
29
|
filter?: object;
|
|
25
30
|
page?: number;
|
|
26
31
|
limit?: number;
|
|
@@ -66,6 +71,14 @@ export declare class AccountsApi extends runtime.BaseAPI {
|
|
|
66
71
|
*
|
|
67
72
|
*/
|
|
68
73
|
getAccountPaymentProviderSession(requestParameters: AccountsApiGetAccountPaymentProviderSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountOnboardingSessionDto>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
getAccountPendingAffiliateCommissionsSummaryRaw(requestParameters: AccountsApiGetAccountPendingAffiliateCommissionsSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MoneyDto>>>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
getAccountPendingAffiliateCommissionsSummary(requestParameters: AccountsApiGetAccountPendingAffiliateCommissionsSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MoneyDto>>;
|
|
69
82
|
/**
|
|
70
83
|
*
|
|
71
84
|
*/
|
|
@@ -81,7 +94,7 @@ export declare class AccountsApi extends runtime.BaseAPI {
|
|
|
81
94
|
/**
|
|
82
95
|
*
|
|
83
96
|
*/
|
|
84
|
-
getAllAffiliateCommissions(requestParameters
|
|
97
|
+
getAllAffiliateCommissions(requestParameters: AccountsApiGetAllAffiliateCommissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAffiliateCommissions200Response>;
|
|
85
98
|
/**
|
|
86
99
|
*
|
|
87
100
|
*/
|
|
@@ -89,7 +102,7 @@ export declare class AccountsApi extends runtime.BaseAPI {
|
|
|
89
102
|
/**
|
|
90
103
|
*
|
|
91
104
|
*/
|
|
92
|
-
getAllReferrals(requestParameters
|
|
105
|
+
getAllReferrals(requestParameters: AccountsApiGetAllReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllReferrals200Response>;
|
|
93
106
|
/**
|
|
94
107
|
*
|
|
95
108
|
*/
|
package/dist/apis/AccountsApi.js
CHANGED
|
@@ -176,6 +176,59 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
176
176
|
});
|
|
177
177
|
});
|
|
178
178
|
};
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
*/
|
|
182
|
+
AccountsApi.prototype.getAccountPendingAffiliateCommissionsSummaryRaw = function (requestParameters, initOverrides) {
|
|
183
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
184
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
185
|
+
return __generator(this, function (_a) {
|
|
186
|
+
switch (_a.label) {
|
|
187
|
+
case 0:
|
|
188
|
+
if (requestParameters['accountId'] == null) {
|
|
189
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getAccountPendingAffiliateCommissionsSummary().');
|
|
190
|
+
}
|
|
191
|
+
queryParameters = {};
|
|
192
|
+
headerParameters = {};
|
|
193
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
194
|
+
token = this.configuration.accessToken;
|
|
195
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
196
|
+
case 1:
|
|
197
|
+
tokenString = _a.sent();
|
|
198
|
+
if (tokenString) {
|
|
199
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
200
|
+
}
|
|
201
|
+
_a.label = 2;
|
|
202
|
+
case 2: return [4 /*yield*/, this.request({
|
|
203
|
+
path: "/private/accounts/{accountId}/affiliate-commissions/summary".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
204
|
+
method: 'GET',
|
|
205
|
+
headers: headerParameters,
|
|
206
|
+
query: queryParameters,
|
|
207
|
+
}, initOverrides)];
|
|
208
|
+
case 3:
|
|
209
|
+
response = _a.sent();
|
|
210
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.MoneyDtoFromJSON); })];
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
*
|
|
217
|
+
*/
|
|
218
|
+
AccountsApi.prototype.getAccountPendingAffiliateCommissionsSummary = function (requestParameters, initOverrides) {
|
|
219
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
220
|
+
var response;
|
|
221
|
+
return __generator(this, function (_a) {
|
|
222
|
+
switch (_a.label) {
|
|
223
|
+
case 0: return [4 /*yield*/, this.getAccountPendingAffiliateCommissionsSummaryRaw(requestParameters, initOverrides)];
|
|
224
|
+
case 1:
|
|
225
|
+
response = _a.sent();
|
|
226
|
+
return [4 /*yield*/, response.value()];
|
|
227
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
};
|
|
179
232
|
/**
|
|
180
233
|
*
|
|
181
234
|
*/
|
|
@@ -235,6 +288,9 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
235
288
|
return __generator(this, function (_a) {
|
|
236
289
|
switch (_a.label) {
|
|
237
290
|
case 0:
|
|
291
|
+
if (requestParameters['accountId'] == null) {
|
|
292
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getAllAffiliateCommissions().');
|
|
293
|
+
}
|
|
238
294
|
queryParameters = {};
|
|
239
295
|
if (requestParameters['filter'] != null) {
|
|
240
296
|
queryParameters['filter'] = requestParameters['filter'];
|
|
@@ -259,7 +315,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
259
315
|
}
|
|
260
316
|
_a.label = 2;
|
|
261
317
|
case 2: return [4 /*yield*/, this.request({
|
|
262
|
-
path: "/private/accounts/{accountId}/affiliate-commissions",
|
|
318
|
+
path: "/private/accounts/{accountId}/affiliate-commissions".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
263
319
|
method: 'GET',
|
|
264
320
|
headers: headerParameters,
|
|
265
321
|
query: queryParameters,
|
|
@@ -274,10 +330,9 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
274
330
|
/**
|
|
275
331
|
*
|
|
276
332
|
*/
|
|
277
|
-
AccountsApi.prototype.getAllAffiliateCommissions = function () {
|
|
278
|
-
return __awaiter(this,
|
|
333
|
+
AccountsApi.prototype.getAllAffiliateCommissions = function (requestParameters, initOverrides) {
|
|
334
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
279
335
|
var response;
|
|
280
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
281
336
|
return __generator(this, function (_a) {
|
|
282
337
|
switch (_a.label) {
|
|
283
338
|
case 0: return [4 /*yield*/, this.getAllAffiliateCommissionsRaw(requestParameters, initOverrides)];
|
|
@@ -298,6 +353,9 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
298
353
|
return __generator(this, function (_a) {
|
|
299
354
|
switch (_a.label) {
|
|
300
355
|
case 0:
|
|
356
|
+
if (requestParameters['accountId'] == null) {
|
|
357
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getAllReferrals().');
|
|
358
|
+
}
|
|
301
359
|
queryParameters = {};
|
|
302
360
|
if (requestParameters['filter'] != null) {
|
|
303
361
|
queryParameters['filter'] = requestParameters['filter'];
|
|
@@ -322,7 +380,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
322
380
|
}
|
|
323
381
|
_a.label = 2;
|
|
324
382
|
case 2: return [4 /*yield*/, this.request({
|
|
325
|
-
path: "/private/accounts/{accountId}/referrals",
|
|
383
|
+
path: "/private/accounts/{accountId}/referrals".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
326
384
|
method: 'GET',
|
|
327
385
|
headers: headerParameters,
|
|
328
386
|
query: queryParameters,
|
|
@@ -337,10 +395,9 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
337
395
|
/**
|
|
338
396
|
*
|
|
339
397
|
*/
|
|
340
|
-
AccountsApi.prototype.getAllReferrals = function () {
|
|
341
|
-
return __awaiter(this,
|
|
398
|
+
AccountsApi.prototype.getAllReferrals = function (requestParameters, initOverrides) {
|
|
399
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
342
400
|
var response;
|
|
343
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
344
401
|
return __generator(this, function (_a) {
|
|
345
402
|
switch (_a.label) {
|
|
346
403
|
case 0: return [4 /*yield*/, this.getAllReferralsRaw(requestParameters, initOverrides)];
|
|
@@ -33,6 +33,18 @@ export interface BuyerDto {
|
|
|
33
33
|
* @memberof BuyerDto
|
|
34
34
|
*/
|
|
35
35
|
ipCountryCode: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BuyerDto
|
|
40
|
+
*/
|
|
41
|
+
companyName: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BuyerDto
|
|
46
|
+
*/
|
|
47
|
+
buyerName: string;
|
|
36
48
|
}
|
|
37
49
|
/**
|
|
38
50
|
* Check if a given object implements the BuyerDto interface.
|
package/dist/models/BuyerDto.js
CHANGED
|
@@ -28,6 +28,10 @@ function instanceOfBuyerDto(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('ipCountryCode' in value) || value['ipCountryCode'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('companyName' in value) || value['companyName'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('buyerName' in value) || value['buyerName'] === undefined)
|
|
34
|
+
return false;
|
|
31
35
|
return true;
|
|
32
36
|
}
|
|
33
37
|
function BuyerDtoFromJSON(json) {
|
|
@@ -41,6 +45,8 @@ function BuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
45
|
'initials': json['initials'],
|
|
42
46
|
'name': json['name'],
|
|
43
47
|
'ipCountryCode': json['ipCountryCode'],
|
|
48
|
+
'companyName': json['companyName'],
|
|
49
|
+
'buyerName': json['buyerName'],
|
|
44
50
|
};
|
|
45
51
|
}
|
|
46
52
|
function BuyerDtoToJSON(json) {
|
|
@@ -55,5 +61,7 @@ function BuyerDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
55
61
|
'initials': value['initials'],
|
|
56
62
|
'name': value['name'],
|
|
57
63
|
'ipCountryCode': value['ipCountryCode'],
|
|
64
|
+
'companyName': value['companyName'],
|
|
65
|
+
'buyerName': value['buyerName'],
|
|
58
66
|
};
|
|
59
67
|
}
|
|
@@ -58,6 +58,18 @@ export interface CreateLeadInput {
|
|
|
58
58
|
* @memberof CreateLeadInput
|
|
59
59
|
*/
|
|
60
60
|
email: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof CreateLeadInput
|
|
65
|
+
*/
|
|
66
|
+
companyName?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof CreateLeadInput
|
|
71
|
+
*/
|
|
72
|
+
phoneNumber?: string | null;
|
|
61
73
|
}
|
|
62
74
|
/**
|
|
63
75
|
* @export
|
|
@@ -64,6 +64,8 @@ function CreateLeadInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
64
|
'firstname': json['firstname'],
|
|
65
65
|
'lastname': json['lastname'],
|
|
66
66
|
'email': json['email'],
|
|
67
|
+
'companyName': json['companyName'] == null ? undefined : json['companyName'],
|
|
68
|
+
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
|
67
69
|
};
|
|
68
70
|
}
|
|
69
71
|
function CreateLeadInputToJSON(json) {
|
|
@@ -82,5 +84,7 @@ function CreateLeadInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
82
84
|
'firstname': value['firstname'],
|
|
83
85
|
'lastname': value['lastname'],
|
|
84
86
|
'email': value['email'],
|
|
87
|
+
'companyName': value['companyName'],
|
|
88
|
+
'phoneNumber': value['phoneNumber'],
|
|
85
89
|
};
|
|
86
90
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { DomainSellerDto } from './DomainSellerDto';
|
|
13
|
+
import type { LeadBuyerConfigDto } from './LeadBuyerConfigDto';
|
|
13
14
|
import type { MoneyDto } from './MoneyDto';
|
|
14
15
|
import type { DomainSalesInformationRentConfigurationDto } from './DomainSalesInformationRentConfigurationDto';
|
|
15
16
|
import type { DomainStatsDto } from './DomainStatsDto';
|
|
@@ -87,6 +88,12 @@ export interface DomainSalesInformationDto {
|
|
|
87
88
|
* @memberof DomainSalesInformationDto
|
|
88
89
|
*/
|
|
89
90
|
stats: DomainStatsDto | null;
|
|
91
|
+
/**
|
|
92
|
+
* Lead buyer settings
|
|
93
|
+
* @type {LeadBuyerConfigDto}
|
|
94
|
+
* @memberof DomainSalesInformationDto
|
|
95
|
+
*/
|
|
96
|
+
leadBuyerSettings: LeadBuyerConfigDto | null;
|
|
90
97
|
}
|
|
91
98
|
/**
|
|
92
99
|
* Check if a given object implements the DomainSalesInformationDto interface.
|
|
@@ -19,6 +19,7 @@ exports.DomainSalesInformationDtoFromJSONTyped = DomainSalesInformationDtoFromJS
|
|
|
19
19
|
exports.DomainSalesInformationDtoToJSON = DomainSalesInformationDtoToJSON;
|
|
20
20
|
exports.DomainSalesInformationDtoToJSONTyped = DomainSalesInformationDtoToJSONTyped;
|
|
21
21
|
var DomainSellerDto_1 = require("./DomainSellerDto");
|
|
22
|
+
var LeadBuyerConfigDto_1 = require("./LeadBuyerConfigDto");
|
|
22
23
|
var MoneyDto_1 = require("./MoneyDto");
|
|
23
24
|
var DomainSalesInformationRentConfigurationDto_1 = require("./DomainSalesInformationRentConfigurationDto");
|
|
24
25
|
var DomainStatsDto_1 = require("./DomainStatsDto");
|
|
@@ -50,6 +51,8 @@ function instanceOfDomainSalesInformationDto(value) {
|
|
|
50
51
|
return false;
|
|
51
52
|
if (!('stats' in value) || value['stats'] === undefined)
|
|
52
53
|
return false;
|
|
54
|
+
if (!('leadBuyerSettings' in value) || value['leadBuyerSettings'] === undefined)
|
|
55
|
+
return false;
|
|
53
56
|
return true;
|
|
54
57
|
}
|
|
55
58
|
function DomainSalesInformationDtoFromJSON(json) {
|
|
@@ -71,6 +74,7 @@ function DomainSalesInformationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
71
74
|
'isPurchaseable': json['isPurchaseable'],
|
|
72
75
|
'seo': (0, SeoMetricsDto_1.SeoMetricsDtoFromJSON)(json['seo']),
|
|
73
76
|
'stats': (0, DomainStatsDto_1.DomainStatsDtoFromJSON)(json['stats']),
|
|
77
|
+
'leadBuyerSettings': (0, LeadBuyerConfigDto_1.LeadBuyerConfigDtoFromJSON)(json['leadBuyerSettings']),
|
|
74
78
|
};
|
|
75
79
|
}
|
|
76
80
|
function DomainSalesInformationDtoToJSON(json) {
|
|
@@ -93,5 +97,6 @@ function DomainSalesInformationDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
93
97
|
'isPurchaseable': value['isPurchaseable'],
|
|
94
98
|
'seo': (0, SeoMetricsDto_1.SeoMetricsDtoToJSON)(value['seo']),
|
|
95
99
|
'stats': (0, DomainStatsDto_1.DomainStatsDtoToJSON)(value['stats']),
|
|
100
|
+
'leadBuyerSettings': (0, LeadBuyerConfigDto_1.LeadBuyerConfigDtoToJSON)(value['leadBuyerSettings']),
|
|
96
101
|
};
|
|
97
102
|
}
|
|
@@ -69,6 +69,18 @@ export interface LandingPageInput {
|
|
|
69
69
|
* @memberof LandingPageInput
|
|
70
70
|
*/
|
|
71
71
|
minDomainAuthority?: number | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof LandingPageInput
|
|
76
|
+
*/
|
|
77
|
+
requestLeadBuyerCompanyName?: boolean | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof LandingPageInput
|
|
82
|
+
*/
|
|
83
|
+
requestLeadBuyerPhoneNumber?: boolean | null;
|
|
72
84
|
}
|
|
73
85
|
/**
|
|
74
86
|
* Check if a given object implements the LandingPageInput interface.
|
|
@@ -41,6 +41,8 @@ function LandingPageInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'seoMetrics': json['seoMetrics'] == null ? undefined : json['seoMetrics'],
|
|
42
42
|
'visitorStats': json['visitorStats'] == null ? undefined : json['visitorStats'],
|
|
43
43
|
'minDomainAuthority': json['minDomainAuthority'] == null ? undefined : json['minDomainAuthority'],
|
|
44
|
+
'requestLeadBuyerCompanyName': json['requestLeadBuyerCompanyName'] == null ? undefined : json['requestLeadBuyerCompanyName'],
|
|
45
|
+
'requestLeadBuyerPhoneNumber': json['requestLeadBuyerPhoneNumber'] == null ? undefined : json['requestLeadBuyerPhoneNumber'],
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
function LandingPageInputToJSON(json) {
|
|
@@ -61,5 +63,7 @@ function LandingPageInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
61
63
|
'seoMetrics': value['seoMetrics'],
|
|
62
64
|
'visitorStats': value['visitorStats'],
|
|
63
65
|
'minDomainAuthority': value['minDomainAuthority'],
|
|
66
|
+
'requestLeadBuyerCompanyName': value['requestLeadBuyerCompanyName'],
|
|
67
|
+
'requestLeadBuyerPhoneNumber': value['requestLeadBuyerPhoneNumber'],
|
|
64
68
|
};
|
|
65
69
|
}
|
|
@@ -69,6 +69,18 @@ export interface LandingPageSettingsDto {
|
|
|
69
69
|
* @memberof LandingPageSettingsDto
|
|
70
70
|
*/
|
|
71
71
|
dnssec: boolean | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof LandingPageSettingsDto
|
|
76
|
+
*/
|
|
77
|
+
requestLeadBuyerCompanyName: boolean | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof LandingPageSettingsDto
|
|
82
|
+
*/
|
|
83
|
+
requestLeadBuyerPhoneNumber: boolean | null;
|
|
72
84
|
}
|
|
73
85
|
/**
|
|
74
86
|
* Check if a given object implements the LandingPageSettingsDto interface.
|
|
@@ -40,6 +40,10 @@ function instanceOfLandingPageSettingsDto(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('dnssec' in value) || value['dnssec'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
+
if (!('requestLeadBuyerCompanyName' in value) || value['requestLeadBuyerCompanyName'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('requestLeadBuyerPhoneNumber' in value) || value['requestLeadBuyerPhoneNumber'] === undefined)
|
|
46
|
+
return false;
|
|
43
47
|
return true;
|
|
44
48
|
}
|
|
45
49
|
function LandingPageSettingsDtoFromJSON(json) {
|
|
@@ -59,6 +63,8 @@ function LandingPageSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
63
|
'showDeliversIn': json['showDeliversIn'],
|
|
60
64
|
'showTrustpilot': json['showTrustpilot'],
|
|
61
65
|
'dnssec': json['dnssec'],
|
|
66
|
+
'requestLeadBuyerCompanyName': json['requestLeadBuyerCompanyName'],
|
|
67
|
+
'requestLeadBuyerPhoneNumber': json['requestLeadBuyerPhoneNumber'],
|
|
62
68
|
};
|
|
63
69
|
}
|
|
64
70
|
function LandingPageSettingsDtoToJSON(json) {
|
|
@@ -79,5 +85,7 @@ function LandingPageSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
79
85
|
'showDeliversIn': value['showDeliversIn'],
|
|
80
86
|
'showTrustpilot': value['showTrustpilot'],
|
|
81
87
|
'dnssec': value['dnssec'],
|
|
88
|
+
'requestLeadBuyerCompanyName': value['requestLeadBuyerCompanyName'],
|
|
89
|
+
'requestLeadBuyerPhoneNumber': value['requestLeadBuyerPhoneNumber'],
|
|
82
90
|
};
|
|
83
91
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LeadBuyerConfigDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LeadBuyerConfigDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof LeadBuyerConfigDto
|
|
22
|
+
*/
|
|
23
|
+
requestLeadBuyerCompanyName: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof LeadBuyerConfigDto
|
|
28
|
+
*/
|
|
29
|
+
requestLeadBuyerPhoneNumber: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the LeadBuyerConfigDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfLeadBuyerConfigDto(value: object): value is LeadBuyerConfigDto;
|
|
35
|
+
export declare function LeadBuyerConfigDtoFromJSON(json: any): LeadBuyerConfigDto;
|
|
36
|
+
export declare function LeadBuyerConfigDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadBuyerConfigDto;
|
|
37
|
+
export declare function LeadBuyerConfigDtoToJSON(json: any): LeadBuyerConfigDto;
|
|
38
|
+
export declare function LeadBuyerConfigDtoToJSONTyped(value?: LeadBuyerConfigDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfLeadBuyerConfigDto = instanceOfLeadBuyerConfigDto;
|
|
17
|
+
exports.LeadBuyerConfigDtoFromJSON = LeadBuyerConfigDtoFromJSON;
|
|
18
|
+
exports.LeadBuyerConfigDtoFromJSONTyped = LeadBuyerConfigDtoFromJSONTyped;
|
|
19
|
+
exports.LeadBuyerConfigDtoToJSON = LeadBuyerConfigDtoToJSON;
|
|
20
|
+
exports.LeadBuyerConfigDtoToJSONTyped = LeadBuyerConfigDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LeadBuyerConfigDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLeadBuyerConfigDto(value) {
|
|
25
|
+
if (!('requestLeadBuyerCompanyName' in value) || value['requestLeadBuyerCompanyName'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('requestLeadBuyerPhoneNumber' in value) || value['requestLeadBuyerPhoneNumber'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function LeadBuyerConfigDtoFromJSON(json) {
|
|
32
|
+
return LeadBuyerConfigDtoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function LeadBuyerConfigDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'requestLeadBuyerCompanyName': json['requestLeadBuyerCompanyName'],
|
|
40
|
+
'requestLeadBuyerPhoneNumber': json['requestLeadBuyerPhoneNumber'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function LeadBuyerConfigDtoToJSON(json) {
|
|
44
|
+
return LeadBuyerConfigDtoToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function LeadBuyerConfigDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'requestLeadBuyerCompanyName': value['requestLeadBuyerCompanyName'],
|
|
53
|
+
'requestLeadBuyerPhoneNumber': value['requestLeadBuyerPhoneNumber'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -39,6 +39,12 @@ export interface PublicLeadBuyerDto {
|
|
|
39
39
|
* @memberof PublicLeadBuyerDto
|
|
40
40
|
*/
|
|
41
41
|
companyName: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Lead buyer phone number
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PublicLeadBuyerDto
|
|
46
|
+
*/
|
|
47
|
+
phoneNumber: string | null;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Check if a given object implements the PublicLeadBuyerDto interface.
|
|
@@ -30,6 +30,8 @@ function instanceOfPublicLeadBuyerDto(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('companyName' in value) || value['companyName'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
return true;
|
|
34
36
|
}
|
|
35
37
|
function PublicLeadBuyerDtoFromJSON(json) {
|
|
@@ -44,6 +46,7 @@ function PublicLeadBuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
46
|
'lastname': json['lastname'],
|
|
45
47
|
'email': json['email'],
|
|
46
48
|
'companyName': json['companyName'],
|
|
49
|
+
'phoneNumber': json['phoneNumber'],
|
|
47
50
|
};
|
|
48
51
|
}
|
|
49
52
|
function PublicLeadBuyerDtoToJSON(json) {
|
|
@@ -59,5 +62,6 @@ function PublicLeadBuyerDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
59
62
|
'lastname': value['lastname'],
|
|
60
63
|
'email': value['email'],
|
|
61
64
|
'companyName': value['companyName'],
|
|
65
|
+
'phoneNumber': value['phoneNumber'],
|
|
62
66
|
};
|
|
63
67
|
}
|
|
@@ -47,6 +47,12 @@ export interface SellerAffiliateCommissionDto {
|
|
|
47
47
|
* @memberof SellerAffiliateCommissionDto
|
|
48
48
|
*/
|
|
49
49
|
status: SellerAffiliateCommissionDtoStatusEnum;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof SellerAffiliateCommissionDto
|
|
54
|
+
*/
|
|
55
|
+
invoiceStatus: SellerAffiliateCommissionDtoInvoiceStatusEnum | null;
|
|
50
56
|
/**
|
|
51
57
|
* Referral account
|
|
52
58
|
* @type {SellerAffiliateCommissionReferralDto}
|
|
@@ -63,6 +69,16 @@ export declare const SellerAffiliateCommissionDtoStatusEnum: {
|
|
|
63
69
|
readonly CANCELLED: "cancelled";
|
|
64
70
|
};
|
|
65
71
|
export type SellerAffiliateCommissionDtoStatusEnum = typeof SellerAffiliateCommissionDtoStatusEnum[keyof typeof SellerAffiliateCommissionDtoStatusEnum];
|
|
72
|
+
/**
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
export declare const SellerAffiliateCommissionDtoInvoiceStatusEnum: {
|
|
76
|
+
readonly DRAFT: "draft";
|
|
77
|
+
readonly PENDING_PAYMENT: "pending_payment";
|
|
78
|
+
readonly PAID: "paid";
|
|
79
|
+
readonly CANCELLED: "cancelled";
|
|
80
|
+
};
|
|
81
|
+
export type SellerAffiliateCommissionDtoInvoiceStatusEnum = typeof SellerAffiliateCommissionDtoInvoiceStatusEnum[keyof typeof SellerAffiliateCommissionDtoInvoiceStatusEnum];
|
|
66
82
|
/**
|
|
67
83
|
* Check if a given object implements the SellerAffiliateCommissionDto interface.
|
|
68
84
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SellerAffiliateCommissionDtoStatusEnum = void 0;
|
|
16
|
+
exports.SellerAffiliateCommissionDtoInvoiceStatusEnum = exports.SellerAffiliateCommissionDtoStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfSellerAffiliateCommissionDto = instanceOfSellerAffiliateCommissionDto;
|
|
18
18
|
exports.SellerAffiliateCommissionDtoFromJSON = SellerAffiliateCommissionDtoFromJSON;
|
|
19
19
|
exports.SellerAffiliateCommissionDtoFromJSONTyped = SellerAffiliateCommissionDtoFromJSONTyped;
|
|
@@ -29,6 +29,15 @@ exports.SellerAffiliateCommissionDtoStatusEnum = {
|
|
|
29
29
|
INVOICED: 'invoiced',
|
|
30
30
|
CANCELLED: 'cancelled'
|
|
31
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.SellerAffiliateCommissionDtoInvoiceStatusEnum = {
|
|
36
|
+
DRAFT: 'draft',
|
|
37
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
38
|
+
PAID: 'paid',
|
|
39
|
+
CANCELLED: 'cancelled'
|
|
40
|
+
};
|
|
32
41
|
/**
|
|
33
42
|
* Check if a given object implements the SellerAffiliateCommissionDto interface.
|
|
34
43
|
*/
|
|
@@ -43,6 +52,8 @@ function instanceOfSellerAffiliateCommissionDto(value) {
|
|
|
43
52
|
return false;
|
|
44
53
|
if (!('status' in value) || value['status'] === undefined)
|
|
45
54
|
return false;
|
|
55
|
+
if (!('invoiceStatus' in value) || value['invoiceStatus'] === undefined)
|
|
56
|
+
return false;
|
|
46
57
|
if (!('referral' in value) || value['referral'] === undefined)
|
|
47
58
|
return false;
|
|
48
59
|
return true;
|
|
@@ -60,6 +71,7 @@ function SellerAffiliateCommissionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
71
|
'commissionAmount': (0, MoneyDto_1.MoneyDtoFromJSON)(json['commissionAmount']),
|
|
61
72
|
'date': (new Date(json['date'])),
|
|
62
73
|
'status': json['status'],
|
|
74
|
+
'invoiceStatus': json['invoiceStatus'],
|
|
63
75
|
'referral': (0, SellerAffiliateCommissionReferralDto_1.SellerAffiliateCommissionReferralDtoFromJSON)(json['referral']),
|
|
64
76
|
};
|
|
65
77
|
}
|
|
@@ -77,6 +89,7 @@ function SellerAffiliateCommissionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
77
89
|
'commissionAmount': (0, MoneyDto_1.MoneyDtoToJSON)(value['commissionAmount']),
|
|
78
90
|
'date': ((value['date']).toISOString()),
|
|
79
91
|
'status': value['status'],
|
|
92
|
+
'invoiceStatus': value['invoiceStatus'],
|
|
80
93
|
'referral': (0, SellerAffiliateCommissionReferralDto_1.SellerAffiliateCommissionReferralDtoToJSON)(value['referral']),
|
|
81
94
|
};
|
|
82
95
|
}
|
|
@@ -33,6 +33,18 @@ export interface UpdateLeadInput {
|
|
|
33
33
|
* @memberof UpdateLeadInput
|
|
34
34
|
*/
|
|
35
35
|
email: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateLeadInput
|
|
40
|
+
*/
|
|
41
|
+
companyName?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateLeadInput
|
|
46
|
+
*/
|
|
47
|
+
phoneNumber?: string | null;
|
|
36
48
|
}
|
|
37
49
|
/**
|
|
38
50
|
* Check if a given object implements the UpdateLeadInput interface.
|