@randock/nameshift-api-client 0.0.363 → 0.0.365
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 -0
- package/README.md +3 -3
- package/dist/apis/LeadsApi.d.ts +13 -1
- package/dist/apis/LeadsApi.js +56 -0
- package/dist/models/AccountSettingsDto.d.ts +7 -0
- package/dist/models/AccountSettingsDto.js +5 -0
- package/dist/models/AccountSettingsInput.d.ts +7 -0
- package/dist/models/AccountSettingsInput.js +3 -0
- package/dist/models/AdminAccountSettingsInput.d.ts +7 -0
- package/dist/models/AdminAccountSettingsInput.js +3 -0
- package/dist/models/DomainLockConfigurationDto.d.ts +39 -0
- package/dist/models/DomainLockConfigurationDto.js +56 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +4 -0
- package/dist/models/LeadDomainDto.d.ts +6 -0
- package/dist/models/LeadDomainDto.js +4 -0
- package/dist/models/LockConfigurationInput.d.ts +39 -0
- package/dist/models/LockConfigurationInput.js +52 -0
- package/dist/models/LockDurationDto.d.ts +47 -0
- package/dist/models/LockDurationDto.js +64 -0
- package/dist/models/LockDurationInput.d.ts +47 -0
- package/dist/models/LockDurationInput.js +60 -0
- package/dist/models/SellerLeadDetails.d.ts +7 -0
- package/dist/models/SellerLeadDetails.js +5 -0
- package/dist/models/WithSettingsInner.d.ts +7 -0
- package/dist/models/WithSettingsInner.js +5 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/LeadsApi.ts +58 -0
- package/src/models/AccountSettingsDto.ts +16 -0
- package/src/models/AccountSettingsInput.ts +15 -0
- package/src/models/AdminAccountSettingsInput.ts +15 -0
- package/src/models/DomainLockConfigurationDto.ts +83 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +9 -0
- package/src/models/LeadDomainDto.ts +9 -0
- package/src/models/LockConfigurationInput.ts +81 -0
- package/src/models/LockDurationDto.ts +87 -0
- package/src/models/LockDurationInput.ts +85 -0
- package/src/models/SellerLeadDetails.ts +16 -0
- package/src/models/WithSettingsInner.ts +16 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfLockConfigurationInput = instanceOfLockConfigurationInput;
|
|
17
|
+
exports.LockConfigurationInputFromJSON = LockConfigurationInputFromJSON;
|
|
18
|
+
exports.LockConfigurationInputFromJSONTyped = LockConfigurationInputFromJSONTyped;
|
|
19
|
+
exports.LockConfigurationInputToJSON = LockConfigurationInputToJSON;
|
|
20
|
+
exports.LockConfigurationInputToJSONTyped = LockConfigurationInputToJSONTyped;
|
|
21
|
+
var LockDurationInput_1 = require("./LockDurationInput");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the LockConfigurationInput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfLockConfigurationInput(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function LockConfigurationInputFromJSON(json) {
|
|
29
|
+
return LockConfigurationInputFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function LockConfigurationInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
37
|
+
'duration': json['duration'] == null ? undefined : (0, LockDurationInput_1.LockDurationInputFromJSON)(json['duration']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function LockConfigurationInputToJSON(json) {
|
|
41
|
+
return LockConfigurationInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function LockConfigurationInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'enabled': value['enabled'],
|
|
50
|
+
'duration': (0, LockDurationInput_1.LockDurationInputToJSON)(value['duration']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 LockDurationDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LockDurationDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof LockDurationDto
|
|
22
|
+
*/
|
|
23
|
+
amount: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LockDurationDto
|
|
28
|
+
*/
|
|
29
|
+
unit: LockDurationDtoUnitEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const LockDurationDtoUnitEnum: {
|
|
35
|
+
readonly MINUTE: "minute";
|
|
36
|
+
readonly HOUR: "hour";
|
|
37
|
+
readonly DAY: "day";
|
|
38
|
+
};
|
|
39
|
+
export type LockDurationDtoUnitEnum = typeof LockDurationDtoUnitEnum[keyof typeof LockDurationDtoUnitEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the LockDurationDto interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfLockDurationDto(value: object): value is LockDurationDto;
|
|
44
|
+
export declare function LockDurationDtoFromJSON(json: any): LockDurationDto;
|
|
45
|
+
export declare function LockDurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LockDurationDto;
|
|
46
|
+
export declare function LockDurationDtoToJSON(json: any): LockDurationDto;
|
|
47
|
+
export declare function LockDurationDtoToJSONTyped(value?: LockDurationDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.LockDurationDtoUnitEnum = void 0;
|
|
17
|
+
exports.instanceOfLockDurationDto = instanceOfLockDurationDto;
|
|
18
|
+
exports.LockDurationDtoFromJSON = LockDurationDtoFromJSON;
|
|
19
|
+
exports.LockDurationDtoFromJSONTyped = LockDurationDtoFromJSONTyped;
|
|
20
|
+
exports.LockDurationDtoToJSON = LockDurationDtoToJSON;
|
|
21
|
+
exports.LockDurationDtoToJSONTyped = LockDurationDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.LockDurationDtoUnitEnum = {
|
|
26
|
+
MINUTE: 'minute',
|
|
27
|
+
HOUR: 'hour',
|
|
28
|
+
DAY: 'day'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the LockDurationDto interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfLockDurationDto(value) {
|
|
34
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('unit' in value) || value['unit'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function LockDurationDtoFromJSON(json) {
|
|
41
|
+
return LockDurationDtoFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function LockDurationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'amount': json['amount'],
|
|
49
|
+
'unit': json['unit'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function LockDurationDtoToJSON(json) {
|
|
53
|
+
return LockDurationDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function LockDurationDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'amount': value['amount'],
|
|
62
|
+
'unit': value['unit'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 LockDurationInput
|
|
16
|
+
*/
|
|
17
|
+
export interface LockDurationInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof LockDurationInput
|
|
22
|
+
*/
|
|
23
|
+
amount?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LockDurationInput
|
|
28
|
+
*/
|
|
29
|
+
unit?: LockDurationInputUnitEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const LockDurationInputUnitEnum: {
|
|
35
|
+
readonly MINUTE: "minute";
|
|
36
|
+
readonly HOUR: "hour";
|
|
37
|
+
readonly DAY: "day";
|
|
38
|
+
};
|
|
39
|
+
export type LockDurationInputUnitEnum = typeof LockDurationInputUnitEnum[keyof typeof LockDurationInputUnitEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the LockDurationInput interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfLockDurationInput(value: object): value is LockDurationInput;
|
|
44
|
+
export declare function LockDurationInputFromJSON(json: any): LockDurationInput;
|
|
45
|
+
export declare function LockDurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LockDurationInput;
|
|
46
|
+
export declare function LockDurationInputToJSON(json: any): LockDurationInput;
|
|
47
|
+
export declare function LockDurationInputToJSONTyped(value?: LockDurationInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.LockDurationInputUnitEnum = void 0;
|
|
17
|
+
exports.instanceOfLockDurationInput = instanceOfLockDurationInput;
|
|
18
|
+
exports.LockDurationInputFromJSON = LockDurationInputFromJSON;
|
|
19
|
+
exports.LockDurationInputFromJSONTyped = LockDurationInputFromJSONTyped;
|
|
20
|
+
exports.LockDurationInputToJSON = LockDurationInputToJSON;
|
|
21
|
+
exports.LockDurationInputToJSONTyped = LockDurationInputToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.LockDurationInputUnitEnum = {
|
|
26
|
+
MINUTE: 'minute',
|
|
27
|
+
HOUR: 'hour',
|
|
28
|
+
DAY: 'day'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the LockDurationInput interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfLockDurationInput(value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function LockDurationInputFromJSON(json) {
|
|
37
|
+
return LockDurationInputFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function LockDurationInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
45
|
+
'unit': json['unit'] == null ? undefined : json['unit'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function LockDurationInputToJSON(json) {
|
|
49
|
+
return LockDurationInputToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function LockDurationInputToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'amount': value['amount'],
|
|
58
|
+
'unit': value['unit'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -14,6 +14,7 @@ import type { MoneyDto } from './MoneyDto';
|
|
|
14
14
|
import type { IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto } from './IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto';
|
|
15
15
|
import type { BuyerDto } from './BuyerDto';
|
|
16
16
|
import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
|
|
17
|
+
import type { DomainLockConfigurationDto } from './DomainLockConfigurationDto';
|
|
17
18
|
import type { LeadOfferDto } from './LeadOfferDto';
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
@@ -81,6 +82,12 @@ export interface SellerLeadDetails {
|
|
|
81
82
|
* @memberof SellerLeadDetails
|
|
82
83
|
*/
|
|
83
84
|
isMutedForBuyer: boolean;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {DomainLockConfigurationDto}
|
|
88
|
+
* @memberof SellerLeadDetails
|
|
89
|
+
*/
|
|
90
|
+
domainLockConfiguration: DomainLockConfigurationDto;
|
|
84
91
|
/**
|
|
85
92
|
* Archived status
|
|
86
93
|
* @type {boolean}
|
|
@@ -24,6 +24,7 @@ var MoneyDto_1 = require("./MoneyDto");
|
|
|
24
24
|
var IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1 = require("./IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto");
|
|
25
25
|
var BuyerDto_1 = require("./BuyerDto");
|
|
26
26
|
var LeadRentConfigurationDto_1 = require("./LeadRentConfigurationDto");
|
|
27
|
+
var DomainLockConfigurationDto_1 = require("./DomainLockConfigurationDto");
|
|
27
28
|
var LeadOfferDto_1 = require("./LeadOfferDto");
|
|
28
29
|
/**
|
|
29
30
|
* @export
|
|
@@ -86,6 +87,8 @@ function instanceOfSellerLeadDetails(value) {
|
|
|
86
87
|
return false;
|
|
87
88
|
if (!('isMutedForBuyer' in value) || value['isMutedForBuyer'] === undefined)
|
|
88
89
|
return false;
|
|
90
|
+
if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined)
|
|
91
|
+
return false;
|
|
89
92
|
if (!('archived' in value) || value['archived'] === undefined)
|
|
90
93
|
return false;
|
|
91
94
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
@@ -128,6 +131,7 @@ function SellerLeadDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
128
131
|
'buyer': (0, BuyerDto_1.BuyerDtoFromJSON)(json['buyer']),
|
|
129
132
|
'isMutedForSeller': json['isMutedForSeller'],
|
|
130
133
|
'isMutedForBuyer': json['isMutedForBuyer'],
|
|
134
|
+
'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoFromJSON)(json['domainLockConfiguration']),
|
|
131
135
|
'archived': json['archived'],
|
|
132
136
|
'createdAt': (new Date(json['createdAt'])),
|
|
133
137
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
@@ -160,6 +164,7 @@ function SellerLeadDetailsToJSONTyped(value, ignoreDiscriminator) {
|
|
|
160
164
|
'buyer': (0, BuyerDto_1.BuyerDtoToJSON)(value['buyer']),
|
|
161
165
|
'isMutedForSeller': value['isMutedForSeller'],
|
|
162
166
|
'isMutedForBuyer': value['isMutedForBuyer'],
|
|
167
|
+
'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoToJSON)(value['domainLockConfiguration']),
|
|
163
168
|
'archived': value['archived'],
|
|
164
169
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
165
170
|
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
@@ -17,6 +17,7 @@ import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSetting
|
|
|
17
17
|
import type { AuctionConfigurationDto } from './AuctionConfigurationDto';
|
|
18
18
|
import type { AccountCommissionByDateRangeDto } from './AccountCommissionByDateRangeDto';
|
|
19
19
|
import type { TimeTableConfigurationDto } from './TimeTableConfigurationDto';
|
|
20
|
+
import type { DomainLockConfigurationDto } from './DomainLockConfigurationDto';
|
|
20
21
|
import type { AccountSettingsRentConfigurationDto } from './AccountSettingsRentConfigurationDto';
|
|
21
22
|
/**
|
|
22
23
|
*
|
|
@@ -156,6 +157,12 @@ export interface WithSettingsInner {
|
|
|
156
157
|
* @memberof WithSettingsInner
|
|
157
158
|
*/
|
|
158
159
|
auctionConfiguration: AuctionConfigurationDto;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {DomainLockConfigurationDto}
|
|
163
|
+
* @memberof WithSettingsInner
|
|
164
|
+
*/
|
|
165
|
+
domainLockConfiguration: DomainLockConfigurationDto;
|
|
159
166
|
}
|
|
160
167
|
/**
|
|
161
168
|
* Check if a given object implements the WithSettingsInner interface.
|
|
@@ -26,6 +26,7 @@ var AccountSettingsLeaseToOwnConfigurationDto_1 = require("./AccountSettingsLeas
|
|
|
26
26
|
var AuctionConfigurationDto_1 = require("./AuctionConfigurationDto");
|
|
27
27
|
var AccountCommissionByDateRangeDto_1 = require("./AccountCommissionByDateRangeDto");
|
|
28
28
|
var TimeTableConfigurationDto_1 = require("./TimeTableConfigurationDto");
|
|
29
|
+
var DomainLockConfigurationDto_1 = require("./DomainLockConfigurationDto");
|
|
29
30
|
var AccountSettingsRentConfigurationDto_1 = require("./AccountSettingsRentConfigurationDto");
|
|
30
31
|
/**
|
|
31
32
|
* Check if a given object implements the WithSettingsInner interface.
|
|
@@ -75,6 +76,8 @@ function instanceOfWithSettingsInner(value) {
|
|
|
75
76
|
return false;
|
|
76
77
|
if (!('auctionConfiguration' in value) || value['auctionConfiguration'] === undefined)
|
|
77
78
|
return false;
|
|
79
|
+
if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined)
|
|
80
|
+
return false;
|
|
78
81
|
return true;
|
|
79
82
|
}
|
|
80
83
|
function WithSettingsInnerFromJSON(json) {
|
|
@@ -107,6 +110,7 @@ function WithSettingsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
107
110
|
'commissionPercentage': json['commissionPercentage'],
|
|
108
111
|
'commissionsByDateRange': (json['commissionsByDateRange'].map(AccountCommissionByDateRangeDto_1.AccountCommissionByDateRangeDtoFromJSON)),
|
|
109
112
|
'auctionConfiguration': (0, AuctionConfigurationDto_1.AuctionConfigurationDtoFromJSON)(json['auctionConfiguration']),
|
|
113
|
+
'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoFromJSON)(json['domainLockConfiguration']),
|
|
110
114
|
};
|
|
111
115
|
}
|
|
112
116
|
function WithSettingsInnerToJSON(json) {
|
|
@@ -140,5 +144,6 @@ function WithSettingsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
|
140
144
|
'commissionPercentage': value['commissionPercentage'],
|
|
141
145
|
'commissionsByDateRange': (value['commissionsByDateRange'].map(AccountCommissionByDateRangeDto_1.AccountCommissionByDateRangeDtoToJSON)),
|
|
142
146
|
'auctionConfiguration': (0, AuctionConfigurationDto_1.AuctionConfigurationDtoToJSON)(value['auctionConfiguration']),
|
|
147
|
+
'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoToJSON)(value['domainLockConfiguration']),
|
|
143
148
|
};
|
|
144
149
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -120,6 +120,7 @@ export * from './DomainExchangeRateDto';
|
|
|
120
120
|
export * from './DomainFiltersDto';
|
|
121
121
|
export * from './DomainLeadPriceNegotiatorAiAgentConfigurationDto';
|
|
122
122
|
export * from './DomainLeadPriceNegotiatorAiAgentConfigurationInput';
|
|
123
|
+
export * from './DomainLockConfigurationDto';
|
|
123
124
|
export * from './DomainLockDto';
|
|
124
125
|
export * from './DomainPricesChangeDto';
|
|
125
126
|
export * from './DomainSalesInformationDto';
|
|
@@ -222,6 +223,9 @@ export * from './ListDomainsWithUpdatedPricing200Response';
|
|
|
222
223
|
export * from './ListLeadMessagesDto';
|
|
223
224
|
export * from './ListLeadsResultItem';
|
|
224
225
|
export * from './ListNotifications200Response';
|
|
226
|
+
export * from './LockConfigurationInput';
|
|
227
|
+
export * from './LockDurationDto';
|
|
228
|
+
export * from './LockDurationInput';
|
|
225
229
|
export * from './LoginDto';
|
|
226
230
|
export * from './LoginInput';
|
|
227
231
|
export * from './MajesticMetrics';
|
package/dist/models/index.js
CHANGED
|
@@ -138,6 +138,7 @@ __exportStar(require("./DomainExchangeRateDto"), exports);
|
|
|
138
138
|
__exportStar(require("./DomainFiltersDto"), exports);
|
|
139
139
|
__exportStar(require("./DomainLeadPriceNegotiatorAiAgentConfigurationDto"), exports);
|
|
140
140
|
__exportStar(require("./DomainLeadPriceNegotiatorAiAgentConfigurationInput"), exports);
|
|
141
|
+
__exportStar(require("./DomainLockConfigurationDto"), exports);
|
|
141
142
|
__exportStar(require("./DomainLockDto"), exports);
|
|
142
143
|
__exportStar(require("./DomainPricesChangeDto"), exports);
|
|
143
144
|
__exportStar(require("./DomainSalesInformationDto"), exports);
|
|
@@ -240,6 +241,9 @@ __exportStar(require("./ListDomainsWithUpdatedPricing200Response"), exports);
|
|
|
240
241
|
__exportStar(require("./ListLeadMessagesDto"), exports);
|
|
241
242
|
__exportStar(require("./ListLeadsResultItem"), exports);
|
|
242
243
|
__exportStar(require("./ListNotifications200Response"), exports);
|
|
244
|
+
__exportStar(require("./LockConfigurationInput"), exports);
|
|
245
|
+
__exportStar(require("./LockDurationDto"), exports);
|
|
246
|
+
__exportStar(require("./LockDurationInput"), exports);
|
|
243
247
|
__exportStar(require("./LoginDto"), exports);
|
|
244
248
|
__exportStar(require("./LoginInput"), exports);
|
|
245
249
|
__exportStar(require("./MajesticMetrics"), exports);
|
package/package.json
CHANGED
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -23,6 +23,7 @@ import type {
|
|
|
23
23
|
LeadLeaseToOwnAndRentConfigurationPresetsDto,
|
|
24
24
|
List200Response,
|
|
25
25
|
ListLeadMessagesDto,
|
|
26
|
+
LockConfigurationInput,
|
|
26
27
|
ObjectId,
|
|
27
28
|
PutLeadOfferInput,
|
|
28
29
|
SellerLeadDetails,
|
|
@@ -46,6 +47,8 @@ import {
|
|
|
46
47
|
List200ResponseToJSON,
|
|
47
48
|
ListLeadMessagesDtoFromJSON,
|
|
48
49
|
ListLeadMessagesDtoToJSON,
|
|
50
|
+
LockConfigurationInputFromJSON,
|
|
51
|
+
LockConfigurationInputToJSON,
|
|
49
52
|
ObjectIdFromJSON,
|
|
50
53
|
ObjectIdToJSON,
|
|
51
54
|
PutLeadOfferInputFromJSON,
|
|
@@ -116,6 +119,11 @@ export interface LeadsApiUnarchiveLeadRequest {
|
|
|
116
119
|
leadId: string;
|
|
117
120
|
}
|
|
118
121
|
|
|
122
|
+
export interface LeadsApiUpdateLeadDomainLockConfigurationRequest {
|
|
123
|
+
leadId: string;
|
|
124
|
+
lockConfigurationInput: LockConfigurationInput;
|
|
125
|
+
}
|
|
126
|
+
|
|
119
127
|
export interface LeadsApiUpdateLeadMuteStatusRequest {
|
|
120
128
|
leadId: string;
|
|
121
129
|
updateLeadMuteStatusInput: UpdateLeadMuteStatusInput;
|
|
@@ -727,6 +735,56 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
727
735
|
await this.unarchiveLeadRaw(requestParameters, initOverrides);
|
|
728
736
|
}
|
|
729
737
|
|
|
738
|
+
/**
|
|
739
|
+
*
|
|
740
|
+
*/
|
|
741
|
+
async updateLeadDomainLockConfigurationRaw(requestParameters: LeadsApiUpdateLeadDomainLockConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
742
|
+
if (requestParameters['leadId'] == null) {
|
|
743
|
+
throw new runtime.RequiredError(
|
|
744
|
+
'leadId',
|
|
745
|
+
'Required parameter "leadId" was null or undefined when calling updateLeadDomainLockConfiguration().'
|
|
746
|
+
);
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
if (requestParameters['lockConfigurationInput'] == null) {
|
|
750
|
+
throw new runtime.RequiredError(
|
|
751
|
+
'lockConfigurationInput',
|
|
752
|
+
'Required parameter "lockConfigurationInput" was null or undefined when calling updateLeadDomainLockConfiguration().'
|
|
753
|
+
);
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
const queryParameters: any = {};
|
|
757
|
+
|
|
758
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
759
|
+
|
|
760
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
761
|
+
|
|
762
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
763
|
+
const token = this.configuration.accessToken;
|
|
764
|
+
const tokenString = await token("bearer", []);
|
|
765
|
+
|
|
766
|
+
if (tokenString) {
|
|
767
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
const response = await this.request({
|
|
771
|
+
path: `/private/leads/{leadId}/domain-lock-configuration`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
772
|
+
method: 'PUT',
|
|
773
|
+
headers: headerParameters,
|
|
774
|
+
query: queryParameters,
|
|
775
|
+
body: LockConfigurationInputToJSON(requestParameters['lockConfigurationInput']),
|
|
776
|
+
}, initOverrides);
|
|
777
|
+
|
|
778
|
+
return new runtime.VoidApiResponse(response);
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
*
|
|
783
|
+
*/
|
|
784
|
+
async updateLeadDomainLockConfiguration(requestParameters: LeadsApiUpdateLeadDomainLockConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
785
|
+
await this.updateLeadDomainLockConfigurationRaw(requestParameters, initOverrides);
|
|
786
|
+
}
|
|
787
|
+
|
|
730
788
|
/**
|
|
731
789
|
*
|
|
732
790
|
*/
|
|
@@ -48,6 +48,13 @@ import {
|
|
|
48
48
|
LandingPageSettingsDtoToJSON,
|
|
49
49
|
LandingPageSettingsDtoToJSONTyped,
|
|
50
50
|
} from './LandingPageSettingsDto';
|
|
51
|
+
import type { DomainLockConfigurationDto } from './DomainLockConfigurationDto';
|
|
52
|
+
import {
|
|
53
|
+
DomainLockConfigurationDtoFromJSON,
|
|
54
|
+
DomainLockConfigurationDtoFromJSONTyped,
|
|
55
|
+
DomainLockConfigurationDtoToJSON,
|
|
56
|
+
DomainLockConfigurationDtoToJSONTyped,
|
|
57
|
+
} from './DomainLockConfigurationDto';
|
|
51
58
|
import type { AccountSettingsRentConfigurationDto } from './AccountSettingsRentConfigurationDto';
|
|
52
59
|
import {
|
|
53
60
|
AccountSettingsRentConfigurationDtoFromJSON,
|
|
@@ -128,6 +135,12 @@ export interface AccountSettingsDto {
|
|
|
128
135
|
* @memberof AccountSettingsDto
|
|
129
136
|
*/
|
|
130
137
|
transferCostPaymentMaxPercentage: number;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {DomainLockConfigurationDto}
|
|
141
|
+
* @memberof AccountSettingsDto
|
|
142
|
+
*/
|
|
143
|
+
domainLockConfiguration: DomainLockConfigurationDto;
|
|
131
144
|
}
|
|
132
145
|
|
|
133
146
|
/**
|
|
@@ -145,6 +158,7 @@ export function instanceOfAccountSettingsDto(value: object): value is AccountSet
|
|
|
145
158
|
if (!('avatar' in value) || value['avatar'] === undefined) return false;
|
|
146
159
|
if (!('alias' in value) || value['alias'] === undefined) return false;
|
|
147
160
|
if (!('transferCostPaymentMaxPercentage' in value) || value['transferCostPaymentMaxPercentage'] === undefined) return false;
|
|
161
|
+
if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined) return false;
|
|
148
162
|
return true;
|
|
149
163
|
}
|
|
150
164
|
|
|
@@ -169,6 +183,7 @@ export function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
169
183
|
'avatar': json['avatar'],
|
|
170
184
|
'alias': AccountSettingsAliasDtoFromJSON(json['alias']),
|
|
171
185
|
'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'],
|
|
186
|
+
'domainLockConfiguration': DomainLockConfigurationDtoFromJSON(json['domainLockConfiguration']),
|
|
172
187
|
};
|
|
173
188
|
}
|
|
174
189
|
|
|
@@ -194,6 +209,7 @@ export function AccountSettingsDtoToJSONTyped(value?: AccountSettingsDto | null,
|
|
|
194
209
|
'avatar': value['avatar'],
|
|
195
210
|
'alias': AccountSettingsAliasDtoToJSON(value['alias']),
|
|
196
211
|
'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
|
|
212
|
+
'domainLockConfiguration': DomainLockConfigurationDtoToJSON(value['domainLockConfiguration']),
|
|
197
213
|
};
|
|
198
214
|
}
|
|
199
215
|
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LockConfigurationInput } from './LockConfigurationInput';
|
|
17
|
+
import {
|
|
18
|
+
LockConfigurationInputFromJSON,
|
|
19
|
+
LockConfigurationInputFromJSONTyped,
|
|
20
|
+
LockConfigurationInputToJSON,
|
|
21
|
+
LockConfigurationInputToJSONTyped,
|
|
22
|
+
} from './LockConfigurationInput';
|
|
16
23
|
import type { MoneyDto } from './MoneyDto';
|
|
17
24
|
import {
|
|
18
25
|
MoneyDtoFromJSON,
|
|
@@ -134,6 +141,12 @@ export interface AccountSettingsInput {
|
|
|
134
141
|
* @memberof AccountSettingsInput
|
|
135
142
|
*/
|
|
136
143
|
transferCostPaymentMaxPercentage?: number;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {LockConfigurationInput}
|
|
147
|
+
* @memberof AccountSettingsInput
|
|
148
|
+
*/
|
|
149
|
+
domainLockConfiguration?: LockConfigurationInput;
|
|
137
150
|
}
|
|
138
151
|
|
|
139
152
|
/**
|
|
@@ -165,6 +178,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
165
178
|
'timezone': json['timezone'] == null ? undefined : json['timezone'],
|
|
166
179
|
'alias': json['alias'] == null ? undefined : AccountAliasInputFromJSON(json['alias']),
|
|
167
180
|
'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'] == null ? undefined : json['transferCostPaymentMaxPercentage'],
|
|
181
|
+
'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : LockConfigurationInputFromJSON(json['domainLockConfiguration']),
|
|
168
182
|
};
|
|
169
183
|
}
|
|
170
184
|
|
|
@@ -191,6 +205,7 @@ export function AccountSettingsInputToJSONTyped(value?: AccountSettingsInput | n
|
|
|
191
205
|
'timezone': value['timezone'],
|
|
192
206
|
'alias': AccountAliasInputToJSON(value['alias']),
|
|
193
207
|
'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
|
|
208
|
+
'domainLockConfiguration': LockConfigurationInputToJSON(value['domainLockConfiguration']),
|
|
194
209
|
};
|
|
195
210
|
}
|
|
196
211
|
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LockConfigurationInput } from './LockConfigurationInput';
|
|
17
|
+
import {
|
|
18
|
+
LockConfigurationInputFromJSON,
|
|
19
|
+
LockConfigurationInputFromJSONTyped,
|
|
20
|
+
LockConfigurationInputToJSON,
|
|
21
|
+
LockConfigurationInputToJSONTyped,
|
|
22
|
+
} from './LockConfigurationInput';
|
|
16
23
|
import type { AdminAccountSettingsAffiliateInput } from './AdminAccountSettingsAffiliateInput';
|
|
17
24
|
import {
|
|
18
25
|
AdminAccountSettingsAffiliateInputFromJSON,
|
|
@@ -83,6 +90,12 @@ export interface AdminAccountSettingsInput {
|
|
|
83
90
|
* @memberof AdminAccountSettingsInput
|
|
84
91
|
*/
|
|
85
92
|
auctionConfiguration?: AdminAuctionConfigurationInput;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {LockConfigurationInput}
|
|
96
|
+
* @memberof AdminAccountSettingsInput
|
|
97
|
+
*/
|
|
98
|
+
domainLockConfiguration?: LockConfigurationInput;
|
|
86
99
|
}
|
|
87
100
|
|
|
88
101
|
/**
|
|
@@ -109,6 +122,7 @@ export function AdminAccountSettingsInputFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
109
122
|
'affiliate': json['affiliate'] == null ? undefined : AdminAccountSettingsAffiliateInputFromJSON(json['affiliate']),
|
|
110
123
|
'domainAffiliate': json['domainAffiliate'] == null ? undefined : AdminAccountSettingsAffiliateInputFromJSON(json['domainAffiliate']),
|
|
111
124
|
'auctionConfiguration': json['auctionConfiguration'] == null ? undefined : AdminAuctionConfigurationInputFromJSON(json['auctionConfiguration']),
|
|
125
|
+
'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : LockConfigurationInputFromJSON(json['domainLockConfiguration']),
|
|
112
126
|
};
|
|
113
127
|
}
|
|
114
128
|
|
|
@@ -130,6 +144,7 @@ export function AdminAccountSettingsInputToJSONTyped(value?: AdminAccountSetting
|
|
|
130
144
|
'affiliate': AdminAccountSettingsAffiliateInputToJSON(value['affiliate']),
|
|
131
145
|
'domainAffiliate': AdminAccountSettingsAffiliateInputToJSON(value['domainAffiliate']),
|
|
132
146
|
'auctionConfiguration': AdminAuctionConfigurationInputToJSON(value['auctionConfiguration']),
|
|
147
|
+
'domainLockConfiguration': LockConfigurationInputToJSON(value['domainLockConfiguration']),
|
|
133
148
|
};
|
|
134
149
|
}
|
|
135
150
|
|