@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.
Files changed (57) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +24 -1
  4. package/dist/apis/AdminApi.js +107 -0
  5. package/dist/apis/LeadsApi.d.ts +13 -1
  6. package/dist/apis/LeadsApi.js +56 -0
  7. package/dist/models/AccountSettingsDto.d.ts +7 -0
  8. package/dist/models/AccountSettingsDto.js +5 -0
  9. package/dist/models/AccountSettingsInput.d.ts +7 -0
  10. package/dist/models/AccountSettingsInput.js +3 -0
  11. package/dist/models/AdminAccountSettingsInput.d.ts +7 -0
  12. package/dist/models/AdminAccountSettingsInput.js +3 -0
  13. package/dist/models/DomainLockConfigurationDto.d.ts +39 -0
  14. package/dist/models/DomainLockConfigurationDto.js +56 -0
  15. package/dist/models/DomainLockDto.d.ts +56 -0
  16. package/dist/models/DomainLockDto.js +67 -0
  17. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +6 -0
  18. package/dist/models/IntersectionDomainDtoWithAccountDto.js +4 -0
  19. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +6 -0
  20. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +4 -0
  21. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +6 -0
  22. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
  23. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +6 -0
  24. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +4 -0
  25. package/dist/models/LeadDomainDto.d.ts +6 -0
  26. package/dist/models/LeadDomainDto.js +4 -0
  27. package/dist/models/LockConfigurationInput.d.ts +39 -0
  28. package/dist/models/LockConfigurationInput.js +52 -0
  29. package/dist/models/LockDurationDto.d.ts +47 -0
  30. package/dist/models/LockDurationDto.js +64 -0
  31. package/dist/models/LockDurationInput.d.ts +47 -0
  32. package/dist/models/LockDurationInput.js +60 -0
  33. package/dist/models/SellerLeadDetails.d.ts +7 -0
  34. package/dist/models/SellerLeadDetails.js +5 -0
  35. package/dist/models/WithSettingsInner.d.ts +7 -0
  36. package/dist/models/WithSettingsInner.js +5 -0
  37. package/dist/models/index.d.ts +5 -0
  38. package/dist/models/index.js +5 -0
  39. package/package.json +1 -1
  40. package/src/apis/AdminApi.ts +100 -0
  41. package/src/apis/LeadsApi.ts +58 -0
  42. package/src/models/AccountSettingsDto.ts +16 -0
  43. package/src/models/AccountSettingsInput.ts +15 -0
  44. package/src/models/AdminAccountSettingsInput.ts +15 -0
  45. package/src/models/DomainLockConfigurationDto.ts +83 -0
  46. package/src/models/DomainLockDto.ts +102 -0
  47. package/src/models/IntersectionDomainDtoWithAccountDto.ts +9 -0
  48. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +9 -0
  49. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
  50. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +9 -0
  51. package/src/models/LeadDomainDto.ts +9 -0
  52. package/src/models/LockConfigurationInput.ts +81 -0
  53. package/src/models/LockDurationDto.ts +87 -0
  54. package/src/models/LockDurationInput.ts +85 -0
  55. package/src/models/SellerLeadDetails.ts +16 -0
  56. package/src/models/WithSettingsInner.ts +16 -0
  57. package/src/models/index.ts +5 -0
@@ -155,6 +155,8 @@ src/models/DomainExchangeRateDto.ts
155
155
  src/models/DomainFiltersDto.ts
156
156
  src/models/DomainLeadPriceNegotiatorAiAgentConfigurationDto.ts
157
157
  src/models/DomainLeadPriceNegotiatorAiAgentConfigurationInput.ts
158
+ src/models/DomainLockConfigurationDto.ts
159
+ src/models/DomainLockDto.ts
158
160
  src/models/DomainPricesChangeDto.ts
159
161
  src/models/DomainSalesInformationDto.ts
160
162
  src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts
@@ -256,6 +258,9 @@ src/models/ListDomainsWithUpdatedPricing200Response.ts
256
258
  src/models/ListLeadMessagesDto.ts
257
259
  src/models/ListLeadsResultItem.ts
258
260
  src/models/ListNotifications200Response.ts
261
+ src/models/LockConfigurationInput.ts
262
+ src/models/LockDurationDto.ts
263
+ src/models/LockDurationInput.ts
259
264
  src/models/LoginDto.ts
260
265
  src/models/LoginInput.ts
261
266
  src/models/MajesticMetrics.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.362
1
+ ## @randock/nameshift-api-client@0.0.364
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.362 --save
39
+ npm install @randock/nameshift-api-client@0.0.364 --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
- 0e0877d67cf4c5a3691fe94ec5e6dbf74252e552b57cd58f19e0dce99b0f8e877666eb019e3cd12674359bd833149027
47
+ b8af6f75ac68bc0761c871ebdf3ee69af707ec41a13468c43a5444863613d0e457d2d1ef385401135c3c49c3b3e68684
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
13
+ import type { AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainLockDto, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
14
14
  export interface AdminApiAdminGetAllDomainTransfersRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -94,6 +94,9 @@ export interface AdminApiListBankAccountsRequest {
94
94
  limit?: number;
95
95
  sortBy?: Array<string>;
96
96
  }
97
+ export interface AdminApiListDomainLocksRequest {
98
+ domainId: string;
99
+ }
97
100
  export interface AdminApiListDomainsRequest {
98
101
  filter?: object;
99
102
  page?: number;
@@ -127,6 +130,10 @@ export interface AdminApiPostAdminExecuteDomainTransferStepActionRequest {
127
130
  export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
128
131
  sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
129
132
  }
133
+ export interface AdminApiRemoveDomainLockRequest {
134
+ domainId: string;
135
+ lockId: string;
136
+ }
130
137
  export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
131
138
  accountId: string;
132
139
  }
@@ -296,6 +303,14 @@ export declare class AdminApi extends runtime.BaseAPI {
296
303
  *
297
304
  */
298
305
  listBankAccounts(requestParameters?: AdminApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListBankAccounts200Response>;
306
+ /**
307
+ *
308
+ */
309
+ listDomainLocksRaw(requestParameters: AdminApiListDomainLocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DomainLockDto>>>;
310
+ /**
311
+ *
312
+ */
313
+ listDomainLocks(requestParameters: AdminApiListDomainLocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DomainLockDto>>;
299
314
  /**
300
315
  *
301
316
  */
@@ -360,6 +375,14 @@ export declare class AdminApi extends runtime.BaseAPI {
360
375
  *
361
376
  */
362
377
  postAiPriceNegotiatorAgentChatMessage(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LeadMessageDto>>;
378
+ /**
379
+ *
380
+ */
381
+ removeDomainLockRaw(requestParameters: AdminApiRemoveDomainLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
382
+ /**
383
+ *
384
+ */
385
+ removeDomainLock(requestParameters: AdminApiRemoveDomainLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
363
386
  /**
364
387
  *
365
388
  */
@@ -1170,6 +1170,59 @@ var AdminApi = /** @class */ (function (_super) {
1170
1170
  });
1171
1171
  });
1172
1172
  };
1173
+ /**
1174
+ *
1175
+ */
1176
+ AdminApi.prototype.listDomainLocksRaw = function (requestParameters, initOverrides) {
1177
+ return __awaiter(this, void 0, void 0, function () {
1178
+ var queryParameters, headerParameters, token, tokenString, response;
1179
+ return __generator(this, function (_a) {
1180
+ switch (_a.label) {
1181
+ case 0:
1182
+ if (requestParameters['domainId'] == null) {
1183
+ throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling listDomainLocks().');
1184
+ }
1185
+ queryParameters = {};
1186
+ headerParameters = {};
1187
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1188
+ token = this.configuration.accessToken;
1189
+ return [4 /*yield*/, token("bearer", [])];
1190
+ case 1:
1191
+ tokenString = _a.sent();
1192
+ if (tokenString) {
1193
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1194
+ }
1195
+ _a.label = 2;
1196
+ case 2: return [4 /*yield*/, this.request({
1197
+ path: "/admin/domains/{domainId}/locks".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
1198
+ method: 'GET',
1199
+ headers: headerParameters,
1200
+ query: queryParameters,
1201
+ }, initOverrides)];
1202
+ case 3:
1203
+ response = _a.sent();
1204
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.DomainLockDtoFromJSON); })];
1205
+ }
1206
+ });
1207
+ });
1208
+ };
1209
+ /**
1210
+ *
1211
+ */
1212
+ AdminApi.prototype.listDomainLocks = function (requestParameters, initOverrides) {
1213
+ return __awaiter(this, void 0, void 0, function () {
1214
+ var response;
1215
+ return __generator(this, function (_a) {
1216
+ switch (_a.label) {
1217
+ case 0: return [4 /*yield*/, this.listDomainLocksRaw(requestParameters, initOverrides)];
1218
+ case 1:
1219
+ response = _a.sent();
1220
+ return [4 /*yield*/, response.value()];
1221
+ case 2: return [2 /*return*/, _a.sent()];
1222
+ }
1223
+ });
1224
+ });
1225
+ };
1173
1226
  /**
1174
1227
  *
1175
1228
  */
@@ -1625,6 +1678,60 @@ var AdminApi = /** @class */ (function (_super) {
1625
1678
  });
1626
1679
  });
1627
1680
  };
1681
+ /**
1682
+ *
1683
+ */
1684
+ AdminApi.prototype.removeDomainLockRaw = function (requestParameters, initOverrides) {
1685
+ return __awaiter(this, void 0, void 0, function () {
1686
+ var queryParameters, headerParameters, token, tokenString, response;
1687
+ return __generator(this, function (_a) {
1688
+ switch (_a.label) {
1689
+ case 0:
1690
+ if (requestParameters['domainId'] == null) {
1691
+ throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling removeDomainLock().');
1692
+ }
1693
+ if (requestParameters['lockId'] == null) {
1694
+ throw new runtime.RequiredError('lockId', 'Required parameter "lockId" was null or undefined when calling removeDomainLock().');
1695
+ }
1696
+ queryParameters = {};
1697
+ headerParameters = {};
1698
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1699
+ token = this.configuration.accessToken;
1700
+ return [4 /*yield*/, token("bearer", [])];
1701
+ case 1:
1702
+ tokenString = _a.sent();
1703
+ if (tokenString) {
1704
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1705
+ }
1706
+ _a.label = 2;
1707
+ case 2: return [4 /*yield*/, this.request({
1708
+ path: "/admin/domains/{domainId}/locks/{lockId}".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))).replace("{".concat("lockId", "}"), encodeURIComponent(String(requestParameters['lockId']))),
1709
+ method: 'DELETE',
1710
+ headers: headerParameters,
1711
+ query: queryParameters,
1712
+ }, initOverrides)];
1713
+ case 3:
1714
+ response = _a.sent();
1715
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
1716
+ }
1717
+ });
1718
+ });
1719
+ };
1720
+ /**
1721
+ *
1722
+ */
1723
+ AdminApi.prototype.removeDomainLock = function (requestParameters, initOverrides) {
1724
+ return __awaiter(this, void 0, void 0, function () {
1725
+ return __generator(this, function (_a) {
1726
+ switch (_a.label) {
1727
+ case 0: return [4 /*yield*/, this.removeDomainLockRaw(requestParameters, initOverrides)];
1728
+ case 1:
1729
+ _a.sent();
1730
+ return [2 /*return*/];
1731
+ }
1732
+ });
1733
+ });
1734
+ };
1628
1735
  /**
1629
1736
  *
1630
1737
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, List200Response, ListLeadMessagesDto, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
13
+ import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, List200Response, ListLeadMessagesDto, LockConfigurationInput, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
14
14
  export interface LeadsApiAcceptLeadOfferRequest {
15
15
  leadId: string;
16
16
  }
@@ -56,6 +56,10 @@ export interface LeadsApiResumeLeadPriceNegotiatorAgentRequest {
56
56
  export interface LeadsApiUnarchiveLeadRequest {
57
57
  leadId: string;
58
58
  }
59
+ export interface LeadsApiUpdateLeadDomainLockConfigurationRequest {
60
+ leadId: string;
61
+ lockConfigurationInput: LockConfigurationInput;
62
+ }
59
63
  export interface LeadsApiUpdateLeadMuteStatusRequest {
60
64
  leadId: string;
61
65
  updateLeadMuteStatusInput: UpdateLeadMuteStatusInput;
@@ -176,6 +180,14 @@ export declare class LeadsApi extends runtime.BaseAPI {
176
180
  *
177
181
  */
178
182
  unarchiveLead(requestParameters: LeadsApiUnarchiveLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
183
+ /**
184
+ *
185
+ */
186
+ updateLeadDomainLockConfigurationRaw(requestParameters: LeadsApiUpdateLeadDomainLockConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
187
+ /**
188
+ *
189
+ */
190
+ updateLeadDomainLockConfiguration(requestParameters: LeadsApiUpdateLeadDomainLockConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
179
191
  /**
180
192
  *
181
193
  */
@@ -825,6 +825,62 @@ var LeadsApi = /** @class */ (function (_super) {
825
825
  });
826
826
  });
827
827
  };
828
+ /**
829
+ *
830
+ */
831
+ LeadsApi.prototype.updateLeadDomainLockConfigurationRaw = function (requestParameters, initOverrides) {
832
+ return __awaiter(this, void 0, void 0, function () {
833
+ var queryParameters, headerParameters, token, tokenString, response;
834
+ return __generator(this, function (_a) {
835
+ switch (_a.label) {
836
+ case 0:
837
+ if (requestParameters['leadId'] == null) {
838
+ throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling updateLeadDomainLockConfiguration().');
839
+ }
840
+ if (requestParameters['lockConfigurationInput'] == null) {
841
+ throw new runtime.RequiredError('lockConfigurationInput', 'Required parameter "lockConfigurationInput" was null or undefined when calling updateLeadDomainLockConfiguration().');
842
+ }
843
+ queryParameters = {};
844
+ headerParameters = {};
845
+ headerParameters['Content-Type'] = 'application/json';
846
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
847
+ token = this.configuration.accessToken;
848
+ return [4 /*yield*/, token("bearer", [])];
849
+ case 1:
850
+ tokenString = _a.sent();
851
+ if (tokenString) {
852
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
853
+ }
854
+ _a.label = 2;
855
+ case 2: return [4 /*yield*/, this.request({
856
+ path: "/private/leads/{leadId}/domain-lock-configuration".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
857
+ method: 'PUT',
858
+ headers: headerParameters,
859
+ query: queryParameters,
860
+ body: (0, index_1.LockConfigurationInputToJSON)(requestParameters['lockConfigurationInput']),
861
+ }, initOverrides)];
862
+ case 3:
863
+ response = _a.sent();
864
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
865
+ }
866
+ });
867
+ });
868
+ };
869
+ /**
870
+ *
871
+ */
872
+ LeadsApi.prototype.updateLeadDomainLockConfiguration = function (requestParameters, initOverrides) {
873
+ return __awaiter(this, void 0, void 0, function () {
874
+ return __generator(this, function (_a) {
875
+ switch (_a.label) {
876
+ case 0: return [4 /*yield*/, this.updateLeadDomainLockConfigurationRaw(requestParameters, initOverrides)];
877
+ case 1:
878
+ _a.sent();
879
+ return [2 /*return*/];
880
+ }
881
+ });
882
+ });
883
+ };
828
884
  /**
829
885
  *
830
886
  */
@@ -14,6 +14,7 @@ import type { AccountSettingsSidnDto } from './AccountSettingsSidnDto';
14
14
  import type { AccountSettingsAliasDto } from './AccountSettingsAliasDto';
15
15
  import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
16
16
  import type { LandingPageSettingsDto } from './LandingPageSettingsDto';
17
+ import type { DomainLockConfigurationDto } from './DomainLockConfigurationDto';
17
18
  import type { AccountSettingsRentConfigurationDto } from './AccountSettingsRentConfigurationDto';
18
19
  /**
19
20
  *
@@ -87,6 +88,12 @@ export interface AccountSettingsDto {
87
88
  * @memberof AccountSettingsDto
88
89
  */
89
90
  transferCostPaymentMaxPercentage: number;
91
+ /**
92
+ *
93
+ * @type {DomainLockConfigurationDto}
94
+ * @memberof AccountSettingsDto
95
+ */
96
+ domainLockConfiguration: DomainLockConfigurationDto;
90
97
  }
91
98
  /**
92
99
  * Check if a given object implements the AccountSettingsDto interface.
@@ -23,6 +23,7 @@ var AccountSettingsSidnDto_1 = require("./AccountSettingsSidnDto");
23
23
  var AccountSettingsAliasDto_1 = require("./AccountSettingsAliasDto");
24
24
  var AccountSettingsLeaseToOwnConfigurationDto_1 = require("./AccountSettingsLeaseToOwnConfigurationDto");
25
25
  var LandingPageSettingsDto_1 = require("./LandingPageSettingsDto");
26
+ var DomainLockConfigurationDto_1 = require("./DomainLockConfigurationDto");
26
27
  var AccountSettingsRentConfigurationDto_1 = require("./AccountSettingsRentConfigurationDto");
27
28
  /**
28
29
  * Check if a given object implements the AccountSettingsDto interface.
@@ -50,6 +51,8 @@ function instanceOfAccountSettingsDto(value) {
50
51
  return false;
51
52
  if (!('transferCostPaymentMaxPercentage' in value) || value['transferCostPaymentMaxPercentage'] === undefined)
52
53
  return false;
54
+ if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined)
55
+ return false;
53
56
  return true;
54
57
  }
55
58
  function AccountSettingsDtoFromJSON(json) {
@@ -71,6 +74,7 @@ function AccountSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
71
74
  'avatar': json['avatar'],
72
75
  'alias': (0, AccountSettingsAliasDto_1.AccountSettingsAliasDtoFromJSON)(json['alias']),
73
76
  'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'],
77
+ 'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoFromJSON)(json['domainLockConfiguration']),
74
78
  };
75
79
  }
76
80
  function AccountSettingsDtoToJSON(json) {
@@ -93,5 +97,6 @@ function AccountSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
93
97
  'avatar': value['avatar'],
94
98
  'alias': (0, AccountSettingsAliasDto_1.AccountSettingsAliasDtoToJSON)(value['alias']),
95
99
  'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
100
+ 'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoToJSON)(value['domainLockConfiguration']),
96
101
  };
97
102
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LockConfigurationInput } from './LockConfigurationInput';
12
13
  import type { MoneyDto } from './MoneyDto';
13
14
  import type { LandingPageInput } from './LandingPageInput';
14
15
  import type { TimeTableConfigurationInput } from './TimeTableConfigurationInput';
@@ -93,6 +94,12 @@ export interface AccountSettingsInput {
93
94
  * @memberof AccountSettingsInput
94
95
  */
95
96
  transferCostPaymentMaxPercentage?: number;
97
+ /**
98
+ *
99
+ * @type {LockConfigurationInput}
100
+ * @memberof AccountSettingsInput
101
+ */
102
+ domainLockConfiguration?: LockConfigurationInput;
96
103
  }
97
104
  /**
98
105
  * Check if a given object implements the AccountSettingsInput interface.
@@ -18,6 +18,7 @@ exports.AccountSettingsInputFromJSON = AccountSettingsInputFromJSON;
18
18
  exports.AccountSettingsInputFromJSONTyped = AccountSettingsInputFromJSONTyped;
19
19
  exports.AccountSettingsInputToJSON = AccountSettingsInputToJSON;
20
20
  exports.AccountSettingsInputToJSONTyped = AccountSettingsInputToJSONTyped;
21
+ var LockConfigurationInput_1 = require("./LockConfigurationInput");
21
22
  var MoneyDto_1 = require("./MoneyDto");
22
23
  var LandingPageInput_1 = require("./LandingPageInput");
23
24
  var TimeTableConfigurationInput_1 = require("./TimeTableConfigurationInput");
@@ -50,6 +51,7 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
50
51
  'timezone': json['timezone'] == null ? undefined : json['timezone'],
51
52
  'alias': json['alias'] == null ? undefined : (0, AccountAliasInput_1.AccountAliasInputFromJSON)(json['alias']),
52
53
  'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'] == null ? undefined : json['transferCostPaymentMaxPercentage'],
54
+ 'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : (0, LockConfigurationInput_1.LockConfigurationInputFromJSON)(json['domainLockConfiguration']),
53
55
  };
54
56
  }
55
57
  function AccountSettingsInputToJSON(json) {
@@ -73,5 +75,6 @@ function AccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
73
75
  'timezone': value['timezone'],
74
76
  'alias': (0, AccountAliasInput_1.AccountAliasInputToJSON)(value['alias']),
75
77
  'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
78
+ 'domainLockConfiguration': (0, LockConfigurationInput_1.LockConfigurationInputToJSON)(value['domainLockConfiguration']),
76
79
  };
77
80
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LockConfigurationInput } from './LockConfigurationInput';
12
13
  import type { AdminAccountSettingsAffiliateInput } from './AdminAccountSettingsAffiliateInput';
13
14
  import type { AdminAccountCommissionByDateRangeInput } from './AdminAccountCommissionByDateRangeInput';
14
15
  import type { AdminAuctionConfigurationInput } from './AdminAuctionConfigurationInput';
@@ -60,6 +61,12 @@ export interface AdminAccountSettingsInput {
60
61
  * @memberof AdminAccountSettingsInput
61
62
  */
62
63
  auctionConfiguration?: AdminAuctionConfigurationInput;
64
+ /**
65
+ *
66
+ * @type {LockConfigurationInput}
67
+ * @memberof AdminAccountSettingsInput
68
+ */
69
+ domainLockConfiguration?: LockConfigurationInput;
63
70
  }
64
71
  /**
65
72
  * Check if a given object implements the AdminAccountSettingsInput interface.
@@ -18,6 +18,7 @@ exports.AdminAccountSettingsInputFromJSON = AdminAccountSettingsInputFromJSON;
18
18
  exports.AdminAccountSettingsInputFromJSONTyped = AdminAccountSettingsInputFromJSONTyped;
19
19
  exports.AdminAccountSettingsInputToJSON = AdminAccountSettingsInputToJSON;
20
20
  exports.AdminAccountSettingsInputToJSONTyped = AdminAccountSettingsInputToJSONTyped;
21
+ var LockConfigurationInput_1 = require("./LockConfigurationInput");
21
22
  var AdminAccountSettingsAffiliateInput_1 = require("./AdminAccountSettingsAffiliateInput");
22
23
  var AdminAccountCommissionByDateRangeInput_1 = require("./AdminAccountCommissionByDateRangeInput");
23
24
  var AdminAuctionConfigurationInput_1 = require("./AdminAuctionConfigurationInput");
@@ -42,6 +43,7 @@ function AdminAccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
42
43
  'affiliate': json['affiliate'] == null ? undefined : (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputFromJSON)(json['affiliate']),
43
44
  'domainAffiliate': json['domainAffiliate'] == null ? undefined : (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputFromJSON)(json['domainAffiliate']),
44
45
  'auctionConfiguration': json['auctionConfiguration'] == null ? undefined : (0, AdminAuctionConfigurationInput_1.AdminAuctionConfigurationInputFromJSON)(json['auctionConfiguration']),
46
+ 'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : (0, LockConfigurationInput_1.LockConfigurationInputFromJSON)(json['domainLockConfiguration']),
45
47
  };
46
48
  }
47
49
  function AdminAccountSettingsInputToJSON(json) {
@@ -60,5 +62,6 @@ function AdminAccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
60
62
  'affiliate': (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputToJSON)(value['affiliate']),
61
63
  'domainAffiliate': (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputToJSON)(value['domainAffiliate']),
62
64
  'auctionConfiguration': (0, AdminAuctionConfigurationInput_1.AdminAuctionConfigurationInputToJSON)(value['auctionConfiguration']),
65
+ 'domainLockConfiguration': (0, LockConfigurationInput_1.LockConfigurationInputToJSON)(value['domainLockConfiguration']),
63
66
  };
64
67
  }
@@ -0,0 +1,39 @@
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
+ import type { LockDurationDto } from './LockDurationDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DomainLockConfigurationDto
17
+ */
18
+ export interface DomainLockConfigurationDto {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof DomainLockConfigurationDto
23
+ */
24
+ enabled: boolean;
25
+ /**
26
+ *
27
+ * @type {LockDurationDto}
28
+ * @memberof DomainLockConfigurationDto
29
+ */
30
+ duration: LockDurationDto;
31
+ }
32
+ /**
33
+ * Check if a given object implements the DomainLockConfigurationDto interface.
34
+ */
35
+ export declare function instanceOfDomainLockConfigurationDto(value: object): value is DomainLockConfigurationDto;
36
+ export declare function DomainLockConfigurationDtoFromJSON(json: any): DomainLockConfigurationDto;
37
+ export declare function DomainLockConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainLockConfigurationDto;
38
+ export declare function DomainLockConfigurationDtoToJSON(json: any): DomainLockConfigurationDto;
39
+ export declare function DomainLockConfigurationDtoToJSONTyped(value?: DomainLockConfigurationDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfDomainLockConfigurationDto = instanceOfDomainLockConfigurationDto;
17
+ exports.DomainLockConfigurationDtoFromJSON = DomainLockConfigurationDtoFromJSON;
18
+ exports.DomainLockConfigurationDtoFromJSONTyped = DomainLockConfigurationDtoFromJSONTyped;
19
+ exports.DomainLockConfigurationDtoToJSON = DomainLockConfigurationDtoToJSON;
20
+ exports.DomainLockConfigurationDtoToJSONTyped = DomainLockConfigurationDtoToJSONTyped;
21
+ var LockDurationDto_1 = require("./LockDurationDto");
22
+ /**
23
+ * Check if a given object implements the DomainLockConfigurationDto interface.
24
+ */
25
+ function instanceOfDomainLockConfigurationDto(value) {
26
+ if (!('enabled' in value) || value['enabled'] === undefined)
27
+ return false;
28
+ if (!('duration' in value) || value['duration'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function DomainLockConfigurationDtoFromJSON(json) {
33
+ return DomainLockConfigurationDtoFromJSONTyped(json, false);
34
+ }
35
+ function DomainLockConfigurationDtoFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'enabled': json['enabled'],
41
+ 'duration': (0, LockDurationDto_1.LockDurationDtoFromJSON)(json['duration']),
42
+ };
43
+ }
44
+ function DomainLockConfigurationDtoToJSON(json) {
45
+ return DomainLockConfigurationDtoToJSONTyped(json, false);
46
+ }
47
+ function DomainLockConfigurationDtoToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'enabled': value['enabled'],
54
+ 'duration': (0, LockDurationDto_1.LockDurationDtoToJSON)(value['duration']),
55
+ };
56
+ }
@@ -0,0 +1,56 @@
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 DomainLockDto
16
+ */
17
+ export interface DomainLockDto {
18
+ /**
19
+ * The uuid for this domain lock.
20
+ * @type {string}
21
+ * @memberof DomainLockDto
22
+ */
23
+ id: string;
24
+ /**
25
+ * The domain id this lock belongs to.
26
+ * @type {string}
27
+ * @memberof DomainLockDto
28
+ */
29
+ domainId: string;
30
+ /**
31
+ * The lock start date.
32
+ * @type {Date}
33
+ * @memberof DomainLockDto
34
+ */
35
+ startDate: Date;
36
+ /**
37
+ * The lock end date.
38
+ * @type {Date}
39
+ * @memberof DomainLockDto
40
+ */
41
+ endDate: Date;
42
+ /**
43
+ * The creation date.
44
+ * @type {Date}
45
+ * @memberof DomainLockDto
46
+ */
47
+ createdAt: Date;
48
+ }
49
+ /**
50
+ * Check if a given object implements the DomainLockDto interface.
51
+ */
52
+ export declare function instanceOfDomainLockDto(value: object): value is DomainLockDto;
53
+ export declare function DomainLockDtoFromJSON(json: any): DomainLockDto;
54
+ export declare function DomainLockDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainLockDto;
55
+ export declare function DomainLockDtoToJSON(json: any): DomainLockDto;
56
+ export declare function DomainLockDtoToJSONTyped(value?: DomainLockDto | null, ignoreDiscriminator?: boolean): any;