@randock/nameshift-api-client 0.0.362 → 0.0.364
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 +5 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +24 -1
- package/dist/apis/AdminApi.js +107 -0
- 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/DomainLockDto.d.ts +56 -0
- package/dist/models/DomainLockDto.js +67 -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 +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +100 -0
- 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/DomainLockDto.ts +102 -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 +5 -0
|
@@ -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,8 @@ export * from './DomainExchangeRateDto';
|
|
|
120
120
|
export * from './DomainFiltersDto';
|
|
121
121
|
export * from './DomainLeadPriceNegotiatorAiAgentConfigurationDto';
|
|
122
122
|
export * from './DomainLeadPriceNegotiatorAiAgentConfigurationInput';
|
|
123
|
+
export * from './DomainLockConfigurationDto';
|
|
124
|
+
export * from './DomainLockDto';
|
|
123
125
|
export * from './DomainPricesChangeDto';
|
|
124
126
|
export * from './DomainSalesInformationDto';
|
|
125
127
|
export * from './DomainSalesInformationLeaseToOwnConfigurationDto';
|
|
@@ -221,6 +223,9 @@ export * from './ListDomainsWithUpdatedPricing200Response';
|
|
|
221
223
|
export * from './ListLeadMessagesDto';
|
|
222
224
|
export * from './ListLeadsResultItem';
|
|
223
225
|
export * from './ListNotifications200Response';
|
|
226
|
+
export * from './LockConfigurationInput';
|
|
227
|
+
export * from './LockDurationDto';
|
|
228
|
+
export * from './LockDurationInput';
|
|
224
229
|
export * from './LoginDto';
|
|
225
230
|
export * from './LoginInput';
|
|
226
231
|
export * from './MajesticMetrics';
|
package/dist/models/index.js
CHANGED
|
@@ -138,6 +138,8 @@ __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);
|
|
142
|
+
__exportStar(require("./DomainLockDto"), exports);
|
|
141
143
|
__exportStar(require("./DomainPricesChangeDto"), exports);
|
|
142
144
|
__exportStar(require("./DomainSalesInformationDto"), exports);
|
|
143
145
|
__exportStar(require("./DomainSalesInformationLeaseToOwnConfigurationDto"), exports);
|
|
@@ -239,6 +241,9 @@ __exportStar(require("./ListDomainsWithUpdatedPricing200Response"), exports);
|
|
|
239
241
|
__exportStar(require("./ListLeadMessagesDto"), exports);
|
|
240
242
|
__exportStar(require("./ListLeadsResultItem"), exports);
|
|
241
243
|
__exportStar(require("./ListNotifications200Response"), exports);
|
|
244
|
+
__exportStar(require("./LockConfigurationInput"), exports);
|
|
245
|
+
__exportStar(require("./LockDurationDto"), exports);
|
|
246
|
+
__exportStar(require("./LockDurationInput"), exports);
|
|
242
247
|
__exportStar(require("./LoginDto"), exports);
|
|
243
248
|
__exportStar(require("./LoginInput"), exports);
|
|
244
249
|
__exportStar(require("./MajesticMetrics"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -24,6 +24,7 @@ import type {
|
|
|
24
24
|
BadRequestException,
|
|
25
25
|
ChangeOrderStatusInput,
|
|
26
26
|
ChangeSubscriptionStatusInput,
|
|
27
|
+
DomainLockDto,
|
|
27
28
|
DomainTransferDetailsDto,
|
|
28
29
|
GetAllAuctions200Response,
|
|
29
30
|
GetAllInvoices200Response,
|
|
@@ -62,6 +63,8 @@ import {
|
|
|
62
63
|
ChangeOrderStatusInputToJSON,
|
|
63
64
|
ChangeSubscriptionStatusInputFromJSON,
|
|
64
65
|
ChangeSubscriptionStatusInputToJSON,
|
|
66
|
+
DomainLockDtoFromJSON,
|
|
67
|
+
DomainLockDtoToJSON,
|
|
65
68
|
DomainTransferDetailsDtoFromJSON,
|
|
66
69
|
DomainTransferDetailsDtoToJSON,
|
|
67
70
|
GetAllAuctions200ResponseFromJSON,
|
|
@@ -202,6 +205,10 @@ export interface AdminApiListBankAccountsRequest {
|
|
|
202
205
|
sortBy?: Array<string>;
|
|
203
206
|
}
|
|
204
207
|
|
|
208
|
+
export interface AdminApiListDomainLocksRequest {
|
|
209
|
+
domainId: string;
|
|
210
|
+
}
|
|
211
|
+
|
|
205
212
|
export interface AdminApiListDomainsRequest {
|
|
206
213
|
filter?: object;
|
|
207
214
|
page?: number;
|
|
@@ -243,6 +250,11 @@ export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
|
|
|
243
250
|
sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
|
|
244
251
|
}
|
|
245
252
|
|
|
253
|
+
export interface AdminApiRemoveDomainLockRequest {
|
|
254
|
+
domainId: string;
|
|
255
|
+
lockId: string;
|
|
256
|
+
}
|
|
257
|
+
|
|
246
258
|
export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
|
|
247
259
|
accountId: string;
|
|
248
260
|
}
|
|
@@ -1128,6 +1140,47 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1128
1140
|
return await response.value();
|
|
1129
1141
|
}
|
|
1130
1142
|
|
|
1143
|
+
/**
|
|
1144
|
+
*
|
|
1145
|
+
*/
|
|
1146
|
+
async listDomainLocksRaw(requestParameters: AdminApiListDomainLocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DomainLockDto>>> {
|
|
1147
|
+
if (requestParameters['domainId'] == null) {
|
|
1148
|
+
throw new runtime.RequiredError(
|
|
1149
|
+
'domainId',
|
|
1150
|
+
'Required parameter "domainId" was null or undefined when calling listDomainLocks().'
|
|
1151
|
+
);
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
const queryParameters: any = {};
|
|
1155
|
+
|
|
1156
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1157
|
+
|
|
1158
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1159
|
+
const token = this.configuration.accessToken;
|
|
1160
|
+
const tokenString = await token("bearer", []);
|
|
1161
|
+
|
|
1162
|
+
if (tokenString) {
|
|
1163
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
const response = await this.request({
|
|
1167
|
+
path: `/admin/domains/{domainId}/locks`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
|
|
1168
|
+
method: 'GET',
|
|
1169
|
+
headers: headerParameters,
|
|
1170
|
+
query: queryParameters,
|
|
1171
|
+
}, initOverrides);
|
|
1172
|
+
|
|
1173
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DomainLockDtoFromJSON));
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
*
|
|
1178
|
+
*/
|
|
1179
|
+
async listDomainLocks(requestParameters: AdminApiListDomainLocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DomainLockDto>> {
|
|
1180
|
+
const response = await this.listDomainLocksRaw(requestParameters, initOverrides);
|
|
1181
|
+
return await response.value();
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1131
1184
|
/**
|
|
1132
1185
|
*
|
|
1133
1186
|
*/
|
|
@@ -1515,6 +1568,53 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1515
1568
|
return await response.value();
|
|
1516
1569
|
}
|
|
1517
1570
|
|
|
1571
|
+
/**
|
|
1572
|
+
*
|
|
1573
|
+
*/
|
|
1574
|
+
async removeDomainLockRaw(requestParameters: AdminApiRemoveDomainLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1575
|
+
if (requestParameters['domainId'] == null) {
|
|
1576
|
+
throw new runtime.RequiredError(
|
|
1577
|
+
'domainId',
|
|
1578
|
+
'Required parameter "domainId" was null or undefined when calling removeDomainLock().'
|
|
1579
|
+
);
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
if (requestParameters['lockId'] == null) {
|
|
1583
|
+
throw new runtime.RequiredError(
|
|
1584
|
+
'lockId',
|
|
1585
|
+
'Required parameter "lockId" was null or undefined when calling removeDomainLock().'
|
|
1586
|
+
);
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
const queryParameters: any = {};
|
|
1590
|
+
|
|
1591
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1592
|
+
|
|
1593
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1594
|
+
const token = this.configuration.accessToken;
|
|
1595
|
+
const tokenString = await token("bearer", []);
|
|
1596
|
+
|
|
1597
|
+
if (tokenString) {
|
|
1598
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
const response = await this.request({
|
|
1602
|
+
path: `/admin/domains/{domainId}/locks/{lockId}`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))).replace(`{${"lockId"}}`, encodeURIComponent(String(requestParameters['lockId']))),
|
|
1603
|
+
method: 'DELETE',
|
|
1604
|
+
headers: headerParameters,
|
|
1605
|
+
query: queryParameters,
|
|
1606
|
+
}, initOverrides);
|
|
1607
|
+
|
|
1608
|
+
return new runtime.VoidApiResponse(response);
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
/**
|
|
1612
|
+
*
|
|
1613
|
+
*/
|
|
1614
|
+
async removeDomainLock(requestParameters: AdminApiRemoveDomainLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1615
|
+
await this.removeDomainLockRaw(requestParameters, initOverrides);
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1518
1618
|
/**
|
|
1519
1619
|
*
|
|
1520
1620
|
*/
|
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
|
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LockDurationDto } from './LockDurationDto';
|
|
17
|
+
import {
|
|
18
|
+
LockDurationDtoFromJSON,
|
|
19
|
+
LockDurationDtoFromJSONTyped,
|
|
20
|
+
LockDurationDtoToJSON,
|
|
21
|
+
LockDurationDtoToJSONTyped,
|
|
22
|
+
} from './LockDurationDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DomainLockConfigurationDto
|
|
28
|
+
*/
|
|
29
|
+
export interface DomainLockConfigurationDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof DomainLockConfigurationDto
|
|
34
|
+
*/
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {LockDurationDto}
|
|
39
|
+
* @memberof DomainLockConfigurationDto
|
|
40
|
+
*/
|
|
41
|
+
duration: LockDurationDto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the DomainLockConfigurationDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfDomainLockConfigurationDto(value: object): value is DomainLockConfigurationDto {
|
|
48
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
49
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function DomainLockConfigurationDtoFromJSON(json: any): DomainLockConfigurationDto {
|
|
54
|
+
return DomainLockConfigurationDtoFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function DomainLockConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainLockConfigurationDto {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'enabled': json['enabled'],
|
|
64
|
+
'duration': LockDurationDtoFromJSON(json['duration']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function DomainLockConfigurationDtoToJSON(json: any): DomainLockConfigurationDto {
|
|
69
|
+
return DomainLockConfigurationDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function DomainLockConfigurationDtoToJSONTyped(value?: DomainLockConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'enabled': value['enabled'],
|
|
80
|
+
'duration': LockDurationDtoToJSON(value['duration']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DomainLockDto
|
|
20
|
+
*/
|
|
21
|
+
export interface DomainLockDto {
|
|
22
|
+
/**
|
|
23
|
+
* The uuid for this domain lock.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DomainLockDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The domain id this lock belongs to.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DomainLockDto
|
|
32
|
+
*/
|
|
33
|
+
domainId: string;
|
|
34
|
+
/**
|
|
35
|
+
* The lock start date.
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof DomainLockDto
|
|
38
|
+
*/
|
|
39
|
+
startDate: Date;
|
|
40
|
+
/**
|
|
41
|
+
* The lock end date.
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof DomainLockDto
|
|
44
|
+
*/
|
|
45
|
+
endDate: Date;
|
|
46
|
+
/**
|
|
47
|
+
* The creation date.
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof DomainLockDto
|
|
50
|
+
*/
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the DomainLockDto interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfDomainLockDto(value: object): value is DomainLockDto {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('domainId' in value) || value['domainId'] === undefined) return false;
|
|
60
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
61
|
+
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
62
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function DomainLockDtoFromJSON(json: any): DomainLockDto {
|
|
67
|
+
return DomainLockDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function DomainLockDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainLockDto {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'domainId': json['domainId'],
|
|
78
|
+
'startDate': (new Date(json['startDate'])),
|
|
79
|
+
'endDate': (new Date(json['endDate'])),
|
|
80
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function DomainLockDtoToJSON(json: any): DomainLockDto {
|
|
85
|
+
return DomainLockDtoToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function DomainLockDtoToJSONTyped(value?: DomainLockDto | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'domainId': value['domainId'],
|
|
97
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
98
|
+
'endDate': ((value['endDate']).toISOString()),
|
|
99
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -93,6 +93,12 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
93
93
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
94
94
|
*/
|
|
95
95
|
isDeleteable: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Whether the domain is currently locked
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
100
|
+
*/
|
|
101
|
+
isLocked: boolean;
|
|
96
102
|
/**
|
|
97
103
|
* The TLD for this domain.
|
|
98
104
|
* @type {string}
|
|
@@ -224,6 +230,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): va
|
|
|
224
230
|
if (!('accountId' in value) || value['accountId'] === undefined) return false;
|
|
225
231
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
|
|
226
232
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
233
|
+
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
227
234
|
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
228
235
|
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
229
236
|
if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
|
|
@@ -261,6 +268,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
|
|
|
261
268
|
'accountId': json['accountId'],
|
|
262
269
|
'hijackerId': json['hijackerId'],
|
|
263
270
|
'isDeleteable': json['isDeleteable'],
|
|
271
|
+
'isLocked': json['isLocked'],
|
|
264
272
|
'tld': json['tld'],
|
|
265
273
|
'verified': json['verified'],
|
|
266
274
|
'nameservers': json['nameservers'],
|
|
@@ -299,6 +307,7 @@ export function IntersectionDomainDtoWithAccountDtoToJSONTyped(value?: Intersect
|
|
|
299
307
|
'accountId': value['accountId'],
|
|
300
308
|
'hijackerId': value['hijackerId'],
|
|
301
309
|
'isDeleteable': value['isDeleteable'],
|
|
310
|
+
'isLocked': value['isLocked'],
|
|
302
311
|
'tld': value['tld'],
|
|
303
312
|
'verified': value['verified'],
|
|
304
313
|
'nameservers': value['nameservers'],
|