@randock/nameshift-api-client 0.0.364 → 0.0.366

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 (72) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +3 -3
  3. package/dist/apis/LeadsApi.d.ts +13 -1
  4. package/dist/apis/LeadsApi.js +56 -0
  5. package/dist/models/AccountSettingsDto.d.ts +7 -0
  6. package/dist/models/AccountSettingsDto.js +5 -0
  7. package/dist/models/AccountSettingsInput.d.ts +6 -0
  8. package/dist/models/AccountSettingsInput.js +2 -0
  9. package/dist/models/AdminAccountSettingsInput.d.ts +6 -0
  10. package/dist/models/AdminAccountSettingsInput.js +2 -0
  11. package/dist/models/BuyerDomainTransferListItemDto.d.ts +6 -0
  12. package/dist/models/BuyerDomainTransferListItemDto.js +4 -0
  13. package/dist/models/BuyerLeadListItemDto.d.ts +6 -0
  14. package/dist/models/BuyerLeadListItemDto.js +4 -0
  15. package/dist/models/CreateManualLeadInput.d.ts +14 -0
  16. package/dist/models/CreateManualLeadInput.js +6 -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/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +7 -0
  26. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +5 -0
  27. package/dist/models/LeadDomainDto.d.ts +6 -0
  28. package/dist/models/LeadDomainDto.js +4 -0
  29. package/dist/models/LeadDto.d.ts +7 -0
  30. package/dist/models/LeadDto.js +5 -0
  31. package/dist/models/LeadOfferExpirationConfigurationDto.d.ts +39 -0
  32. package/dist/models/LeadOfferExpirationConfigurationDto.js +56 -0
  33. package/dist/models/LeadOfferExpirationConfigurationInput.d.ts +39 -0
  34. package/dist/models/LeadOfferExpirationConfigurationInput.js +52 -0
  35. package/dist/models/LeadOfferExpirationDurationInput.d.ts +47 -0
  36. package/dist/models/LeadOfferExpirationDurationInput.js +60 -0
  37. package/dist/models/ListLeadsResultItem.d.ts +7 -0
  38. package/dist/models/ListLeadsResultItem.js +5 -0
  39. package/dist/models/PutLeadOfferInput.d.ts +7 -0
  40. package/dist/models/PutLeadOfferInput.js +3 -0
  41. package/dist/models/SellerLeadDetails.d.ts +7 -0
  42. package/dist/models/SellerLeadDetails.js +5 -0
  43. package/dist/models/TaskListLeadDto.d.ts +7 -0
  44. package/dist/models/TaskListLeadDto.js +5 -0
  45. package/dist/models/WithSettingsInner.d.ts +7 -0
  46. package/dist/models/WithSettingsInner.js +5 -0
  47. package/dist/models/index.d.ts +3 -0
  48. package/dist/models/index.js +3 -0
  49. package/package.json +1 -1
  50. package/src/apis/LeadsApi.ts +58 -0
  51. package/src/models/AccountSettingsDto.ts +16 -0
  52. package/src/models/AccountSettingsInput.ts +8 -0
  53. package/src/models/AdminAccountSettingsInput.ts +8 -0
  54. package/src/models/BuyerDomainTransferListItemDto.ts +9 -0
  55. package/src/models/BuyerLeadListItemDto.ts +9 -0
  56. package/src/models/CreateManualLeadInput.ts +30 -0
  57. package/src/models/IntersectionDomainDtoWithAccountDto.ts +9 -0
  58. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +9 -0
  59. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
  60. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +9 -0
  61. package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +16 -0
  62. package/src/models/LeadDomainDto.ts +9 -0
  63. package/src/models/LeadDto.ts +16 -0
  64. package/src/models/LeadOfferExpirationConfigurationDto.ts +83 -0
  65. package/src/models/LeadOfferExpirationConfigurationInput.ts +81 -0
  66. package/src/models/LeadOfferExpirationDurationInput.ts +85 -0
  67. package/src/models/ListLeadsResultItem.ts +16 -0
  68. package/src/models/PutLeadOfferInput.ts +15 -0
  69. package/src/models/SellerLeadDetails.ts +16 -0
  70. package/src/models/TaskListLeadDto.ts +16 -0
  71. package/src/models/WithSettingsInner.ts +16 -0
  72. package/src/models/index.ts +3 -0
@@ -232,6 +232,9 @@ src/models/LeadMessageData.ts
232
232
  src/models/LeadMessageDataLeaseToOwn.ts
233
233
  src/models/LeadMessageDto.ts
234
234
  src/models/LeadOfferDto.ts
235
+ src/models/LeadOfferExpirationConfigurationDto.ts
236
+ src/models/LeadOfferExpirationConfigurationInput.ts
237
+ src/models/LeadOfferExpirationDurationInput.ts
235
238
  src/models/LeadPriceNegotiatorAiAgentConfigurationDto.ts
236
239
  src/models/LeadPriceNegotiatorAiAgentConfigurationInput.ts
237
240
  src/models/LeadRentConfigurationDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.364
1
+ ## @randock/nameshift-api-client@0.0.366
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.364 --save
39
+ npm install @randock/nameshift-api-client@0.0.366 --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
- b8af6f75ac68bc0761c871ebdf3ee69af707ec41a13468c43a5444863613d0e457d2d1ef385401135c3c49c3b3e68684
47
+ cb2f5f5f448dc6b306e243f3d4db3ce360d0a0fe0cb71171f164301d3ff5a154dde74728357cfc28dbe177e2e9e8c184
@@ -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, LockConfigurationInput, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
13
+ import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadOfferExpirationConfigurationInput, List200Response, ListLeadMessagesDto, LockConfigurationInput, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
14
14
  export interface LeadsApiAcceptLeadOfferRequest {
15
15
  leadId: string;
16
16
  }
@@ -64,6 +64,10 @@ export interface LeadsApiUpdateLeadMuteStatusRequest {
64
64
  leadId: string;
65
65
  updateLeadMuteStatusInput: UpdateLeadMuteStatusInput;
66
66
  }
67
+ export interface LeadsApiUpdateLeadOfferExpirationConfigurationRequest {
68
+ leadId: string;
69
+ leadOfferExpirationConfigurationInput: LeadOfferExpirationConfigurationInput;
70
+ }
67
71
  /**
68
72
  *
69
73
  */
@@ -196,4 +200,12 @@ export declare class LeadsApi extends runtime.BaseAPI {
196
200
  *
197
201
  */
198
202
  updateLeadMuteStatus(requestParameters: LeadsApiUpdateLeadMuteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
203
+ /**
204
+ *
205
+ */
206
+ updateLeadOfferExpirationConfigurationRaw(requestParameters: LeadsApiUpdateLeadOfferExpirationConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
207
+ /**
208
+ *
209
+ */
210
+ updateLeadOfferExpirationConfiguration(requestParameters: LeadsApiUpdateLeadOfferExpirationConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
199
211
  }
@@ -937,6 +937,62 @@ var LeadsApi = /** @class */ (function (_super) {
937
937
  });
938
938
  });
939
939
  };
940
+ /**
941
+ *
942
+ */
943
+ LeadsApi.prototype.updateLeadOfferExpirationConfigurationRaw = function (requestParameters, initOverrides) {
944
+ return __awaiter(this, void 0, void 0, function () {
945
+ var queryParameters, headerParameters, token, tokenString, response;
946
+ return __generator(this, function (_a) {
947
+ switch (_a.label) {
948
+ case 0:
949
+ if (requestParameters['leadId'] == null) {
950
+ throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling updateLeadOfferExpirationConfiguration().');
951
+ }
952
+ if (requestParameters['leadOfferExpirationConfigurationInput'] == null) {
953
+ throw new runtime.RequiredError('leadOfferExpirationConfigurationInput', 'Required parameter "leadOfferExpirationConfigurationInput" was null or undefined when calling updateLeadOfferExpirationConfiguration().');
954
+ }
955
+ queryParameters = {};
956
+ headerParameters = {};
957
+ headerParameters['Content-Type'] = 'application/json';
958
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
959
+ token = this.configuration.accessToken;
960
+ return [4 /*yield*/, token("bearer", [])];
961
+ case 1:
962
+ tokenString = _a.sent();
963
+ if (tokenString) {
964
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
965
+ }
966
+ _a.label = 2;
967
+ case 2: return [4 /*yield*/, this.request({
968
+ path: "/private/leads/{leadId}/offer-expiration-configuration".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
969
+ method: 'PUT',
970
+ headers: headerParameters,
971
+ query: queryParameters,
972
+ body: (0, index_1.LeadOfferExpirationConfigurationInputToJSON)(requestParameters['leadOfferExpirationConfigurationInput']),
973
+ }, initOverrides)];
974
+ case 3:
975
+ response = _a.sent();
976
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
977
+ }
978
+ });
979
+ });
980
+ };
981
+ /**
982
+ *
983
+ */
984
+ LeadsApi.prototype.updateLeadOfferExpirationConfiguration = function (requestParameters, initOverrides) {
985
+ return __awaiter(this, void 0, void 0, function () {
986
+ return __generator(this, function (_a) {
987
+ switch (_a.label) {
988
+ case 0: return [4 /*yield*/, this.updateLeadOfferExpirationConfigurationRaw(requestParameters, initOverrides)];
989
+ case 1:
990
+ _a.sent();
991
+ return [2 /*return*/];
992
+ }
993
+ });
994
+ });
995
+ };
940
996
  return LeadsApi;
941
997
  }(runtime.BaseAPI));
942
998
  exports.LeadsApi = LeadsApi;
@@ -13,6 +13,7 @@ import type { MoneyDto } from './MoneyDto';
13
13
  import type { AccountSettingsSidnDto } from './AccountSettingsSidnDto';
14
14
  import type { AccountSettingsAliasDto } from './AccountSettingsAliasDto';
15
15
  import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
16
+ import type { LeadOfferExpirationConfigurationDto } from './LeadOfferExpirationConfigurationDto';
16
17
  import type { LandingPageSettingsDto } from './LandingPageSettingsDto';
17
18
  import type { DomainLockConfigurationDto } from './DomainLockConfigurationDto';
18
19
  import type { AccountSettingsRentConfigurationDto } from './AccountSettingsRentConfigurationDto';
@@ -94,6 +95,12 @@ export interface AccountSettingsDto {
94
95
  * @memberof AccountSettingsDto
95
96
  */
96
97
  domainLockConfiguration: DomainLockConfigurationDto;
98
+ /**
99
+ *
100
+ * @type {LeadOfferExpirationConfigurationDto}
101
+ * @memberof AccountSettingsDto
102
+ */
103
+ leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
97
104
  }
98
105
  /**
99
106
  * Check if a given object implements the AccountSettingsDto interface.
@@ -22,6 +22,7 @@ var MoneyDto_1 = require("./MoneyDto");
22
22
  var AccountSettingsSidnDto_1 = require("./AccountSettingsSidnDto");
23
23
  var AccountSettingsAliasDto_1 = require("./AccountSettingsAliasDto");
24
24
  var AccountSettingsLeaseToOwnConfigurationDto_1 = require("./AccountSettingsLeaseToOwnConfigurationDto");
25
+ var LeadOfferExpirationConfigurationDto_1 = require("./LeadOfferExpirationConfigurationDto");
25
26
  var LandingPageSettingsDto_1 = require("./LandingPageSettingsDto");
26
27
  var DomainLockConfigurationDto_1 = require("./DomainLockConfigurationDto");
27
28
  var AccountSettingsRentConfigurationDto_1 = require("./AccountSettingsRentConfigurationDto");
@@ -53,6 +54,8 @@ function instanceOfAccountSettingsDto(value) {
53
54
  return false;
54
55
  if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined)
55
56
  return false;
57
+ if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined)
58
+ return false;
56
59
  return true;
57
60
  }
58
61
  function AccountSettingsDtoFromJSON(json) {
@@ -75,6 +78,7 @@ function AccountSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
75
78
  'alias': (0, AccountSettingsAliasDto_1.AccountSettingsAliasDtoFromJSON)(json['alias']),
76
79
  'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'],
77
80
  'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoFromJSON)(json['domainLockConfiguration']),
81
+ 'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoFromJSON)(json['leadOfferExpirationConfiguration']),
78
82
  };
79
83
  }
80
84
  function AccountSettingsDtoToJSON(json) {
@@ -98,5 +102,6 @@ function AccountSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
98
102
  'alias': (0, AccountSettingsAliasDto_1.AccountSettingsAliasDtoToJSON)(value['alias']),
99
103
  'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
100
104
  'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoToJSON)(value['domainLockConfiguration']),
105
+ 'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoToJSON)(value['leadOfferExpirationConfiguration']),
101
106
  };
102
107
  }
@@ -100,6 +100,12 @@ export interface AccountSettingsInput {
100
100
  * @memberof AccountSettingsInput
101
101
  */
102
102
  domainLockConfiguration?: LockConfigurationInput;
103
+ /**
104
+ *
105
+ * @type {LockConfigurationInput}
106
+ * @memberof AccountSettingsInput
107
+ */
108
+ leadOfferExpirationConfiguration?: LockConfigurationInput;
103
109
  }
104
110
  /**
105
111
  * Check if a given object implements the AccountSettingsInput interface.
@@ -52,6 +52,7 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
52
52
  'alias': json['alias'] == null ? undefined : (0, AccountAliasInput_1.AccountAliasInputFromJSON)(json['alias']),
53
53
  'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'] == null ? undefined : json['transferCostPaymentMaxPercentage'],
54
54
  'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : (0, LockConfigurationInput_1.LockConfigurationInputFromJSON)(json['domainLockConfiguration']),
55
+ 'leadOfferExpirationConfiguration': json['leadOfferExpirationConfiguration'] == null ? undefined : (0, LockConfigurationInput_1.LockConfigurationInputFromJSON)(json['leadOfferExpirationConfiguration']),
55
56
  };
56
57
  }
57
58
  function AccountSettingsInputToJSON(json) {
@@ -76,5 +77,6 @@ function AccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
76
77
  'alias': (0, AccountAliasInput_1.AccountAliasInputToJSON)(value['alias']),
77
78
  'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
78
79
  'domainLockConfiguration': (0, LockConfigurationInput_1.LockConfigurationInputToJSON)(value['domainLockConfiguration']),
80
+ 'leadOfferExpirationConfiguration': (0, LockConfigurationInput_1.LockConfigurationInputToJSON)(value['leadOfferExpirationConfiguration']),
79
81
  };
80
82
  }
@@ -67,6 +67,12 @@ export interface AdminAccountSettingsInput {
67
67
  * @memberof AdminAccountSettingsInput
68
68
  */
69
69
  domainLockConfiguration?: LockConfigurationInput;
70
+ /**
71
+ *
72
+ * @type {LockConfigurationInput}
73
+ * @memberof AdminAccountSettingsInput
74
+ */
75
+ leadOfferExpirationConfiguration?: LockConfigurationInput;
70
76
  }
71
77
  /**
72
78
  * Check if a given object implements the AdminAccountSettingsInput interface.
@@ -44,6 +44,7 @@ function AdminAccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'domainAffiliate': json['domainAffiliate'] == null ? undefined : (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputFromJSON)(json['domainAffiliate']),
45
45
  'auctionConfiguration': json['auctionConfiguration'] == null ? undefined : (0, AdminAuctionConfigurationInput_1.AdminAuctionConfigurationInputFromJSON)(json['auctionConfiguration']),
46
46
  'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : (0, LockConfigurationInput_1.LockConfigurationInputFromJSON)(json['domainLockConfiguration']),
47
+ 'leadOfferExpirationConfiguration': json['leadOfferExpirationConfiguration'] == null ? undefined : (0, LockConfigurationInput_1.LockConfigurationInputFromJSON)(json['leadOfferExpirationConfiguration']),
47
48
  };
48
49
  }
49
50
  function AdminAccountSettingsInputToJSON(json) {
@@ -63,5 +64,6 @@ function AdminAccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
63
64
  'domainAffiliate': (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputToJSON)(value['domainAffiliate']),
64
65
  'auctionConfiguration': (0, AdminAuctionConfigurationInput_1.AdminAuctionConfigurationInputToJSON)(value['auctionConfiguration']),
65
66
  'domainLockConfiguration': (0, LockConfigurationInput_1.LockConfigurationInputToJSON)(value['domainLockConfiguration']),
67
+ 'leadOfferExpirationConfiguration': (0, LockConfigurationInput_1.LockConfigurationInputToJSON)(value['leadOfferExpirationConfiguration']),
66
68
  };
67
69
  }
@@ -64,6 +64,12 @@ export interface BuyerDomainTransferListItemDto {
64
64
  * @memberof BuyerDomainTransferListItemDto
65
65
  */
66
66
  ipsTag: string | null;
67
+ /**
68
+ * The buyer domain transfer is expired
69
+ * @type {boolean}
70
+ * @memberof BuyerDomainTransferListItemDto
71
+ */
72
+ isOfferExpired: boolean;
67
73
  }
68
74
  /**
69
75
  * @export
@@ -59,6 +59,8 @@ function instanceOfBuyerDomainTransferListItemDto(value) {
59
59
  return false;
60
60
  if (!('ipsTag' in value) || value['ipsTag'] === undefined)
61
61
  return false;
62
+ if (!('isOfferExpired' in value) || value['isOfferExpired'] === undefined)
63
+ return false;
62
64
  return true;
63
65
  }
64
66
  function BuyerDomainTransferListItemDtoFromJSON(json) {
@@ -77,6 +79,7 @@ function BuyerDomainTransferListItemDtoFromJSONTyped(json, ignoreDiscriminator)
77
79
  'domain': (0, BuyerDomainTransferListItemDomainDto_1.BuyerDomainTransferListItemDomainDtoFromJSON)(json['domain']),
78
80
  'createdAt': (new Date(json['createdAt'])),
79
81
  'ipsTag': json['ipsTag'],
82
+ 'isOfferExpired': json['isOfferExpired'],
80
83
  };
81
84
  }
82
85
  function BuyerDomainTransferListItemDtoToJSON(json) {
@@ -96,5 +99,6 @@ function BuyerDomainTransferListItemDtoToJSONTyped(value, ignoreDiscriminator) {
96
99
  'domain': (0, BuyerDomainTransferListItemDomainDto_1.BuyerDomainTransferListItemDomainDtoToJSON)(value['domain']),
97
100
  'createdAt': ((value['createdAt']).toISOString()),
98
101
  'ipsTag': value['ipsTag'],
102
+ 'isOfferExpired': value['isOfferExpired'],
99
103
  };
100
104
  }
@@ -84,6 +84,12 @@ export interface BuyerLeadListItemDto {
84
84
  * @memberof BuyerLeadListItemDto
85
85
  */
86
86
  isMuted: boolean;
87
+ /**
88
+ * The lead is offer expired
89
+ * @type {boolean}
90
+ * @memberof BuyerLeadListItemDto
91
+ */
92
+ isOfferExpired: boolean;
87
93
  }
88
94
  /**
89
95
  * @export
@@ -76,6 +76,8 @@ function instanceOfBuyerLeadListItemDto(value) {
76
76
  return false;
77
77
  if (!('isMuted' in value) || value['isMuted'] === undefined)
78
78
  return false;
79
+ if (!('isOfferExpired' in value) || value['isOfferExpired'] === undefined)
80
+ return false;
79
81
  return true;
80
82
  }
81
83
  function BuyerLeadListItemDtoFromJSON(json) {
@@ -97,6 +99,7 @@ function BuyerLeadListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
97
99
  'unreadMessages': json['unreadMessages'],
98
100
  'orderPaymentUrl': json['orderPaymentUrl'],
99
101
  'isMuted': json['isMuted'],
102
+ 'isOfferExpired': json['isOfferExpired'],
100
103
  };
101
104
  }
102
105
  function BuyerLeadListItemDtoToJSON(json) {
@@ -119,5 +122,6 @@ function BuyerLeadListItemDtoToJSONTyped(value, ignoreDiscriminator) {
119
122
  'unreadMessages': value['unreadMessages'],
120
123
  'orderPaymentUrl': value['orderPaymentUrl'],
121
124
  'isMuted': value['isMuted'],
125
+ 'isOfferExpired': value['isOfferExpired'],
122
126
  };
123
127
  }
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LockConfigurationInput } from './LockConfigurationInput';
13
+ import type { LeadOfferExpirationConfigurationInput } from './LeadOfferExpirationConfigurationInput';
12
14
  import type { MoneyInput } from './MoneyInput';
13
15
  /**
14
16
  *
@@ -70,6 +72,18 @@ export interface CreateManualLeadInput {
70
72
  * @memberof CreateManualLeadInput
71
73
  */
72
74
  leaseToOwnMaxMonths: number | null;
75
+ /**
76
+ *
77
+ * @type {LeadOfferExpirationConfigurationInput}
78
+ * @memberof CreateManualLeadInput
79
+ */
80
+ leadOfferExpirationConfiguration?: LeadOfferExpirationConfigurationInput;
81
+ /**
82
+ *
83
+ * @type {LockConfigurationInput}
84
+ * @memberof CreateManualLeadInput
85
+ */
86
+ domainLockConfiguration?: LockConfigurationInput;
73
87
  }
74
88
  /**
75
89
  * @export
@@ -19,6 +19,8 @@ exports.CreateManualLeadInputFromJSON = CreateManualLeadInputFromJSON;
19
19
  exports.CreateManualLeadInputFromJSONTyped = CreateManualLeadInputFromJSONTyped;
20
20
  exports.CreateManualLeadInputToJSON = CreateManualLeadInputToJSON;
21
21
  exports.CreateManualLeadInputToJSONTyped = CreateManualLeadInputToJSONTyped;
22
+ var LockConfigurationInput_1 = require("./LockConfigurationInput");
23
+ var LeadOfferExpirationConfigurationInput_1 = require("./LeadOfferExpirationConfigurationInput");
22
24
  var MoneyInput_1 = require("./MoneyInput");
23
25
  /**
24
26
  * @export
@@ -70,6 +72,8 @@ function CreateManualLeadInputFromJSONTyped(json, ignoreDiscriminator) {
70
72
  'offer': (0, MoneyInput_1.MoneyInputFromJSON)(json['offer']),
71
73
  'leaseToOwnMinMonths': json['leaseToOwnMinMonths'],
72
74
  'leaseToOwnMaxMonths': json['leaseToOwnMaxMonths'],
75
+ 'leadOfferExpirationConfiguration': json['leadOfferExpirationConfiguration'] == null ? undefined : (0, LeadOfferExpirationConfigurationInput_1.LeadOfferExpirationConfigurationInputFromJSON)(json['leadOfferExpirationConfiguration']),
76
+ 'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : (0, LockConfigurationInput_1.LockConfigurationInputFromJSON)(json['domainLockConfiguration']),
73
77
  };
74
78
  }
75
79
  function CreateManualLeadInputToJSON(json) {
@@ -90,5 +94,7 @@ function CreateManualLeadInputToJSONTyped(value, ignoreDiscriminator) {
90
94
  'offer': (0, MoneyInput_1.MoneyInputToJSON)(value['offer']),
91
95
  'leaseToOwnMinMonths': value['leaseToOwnMinMonths'],
92
96
  'leaseToOwnMaxMonths': value['leaseToOwnMaxMonths'],
97
+ 'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationInput_1.LeadOfferExpirationConfigurationInputToJSON)(value['leadOfferExpirationConfiguration']),
98
+ 'domainLockConfiguration': (0, LockConfigurationInput_1.LockConfigurationInputToJSON)(value['domainLockConfiguration']),
93
99
  };
94
100
  }
@@ -52,6 +52,12 @@ export interface IntersectionDomainDtoWithAccountDto {
52
52
  * @memberof IntersectionDomainDtoWithAccountDto
53
53
  */
54
54
  isLocked: boolean;
55
+ /**
56
+ * The date until which the domain is locked (end date of the current continuous lock period), or null if not locked
57
+ * @type {Date}
58
+ * @memberof IntersectionDomainDtoWithAccountDto
59
+ */
60
+ lockedUntil: Date | null;
55
61
  /**
56
62
  * The TLD for this domain.
57
63
  * @type {string}
@@ -39,6 +39,8 @@ function instanceOfIntersectionDomainDtoWithAccountDto(value) {
39
39
  return false;
40
40
  if (!('isLocked' in value) || value['isLocked'] === undefined)
41
41
  return false;
42
+ if (!('lockedUntil' in value) || value['lockedUntil'] === undefined)
43
+ return false;
42
44
  if (!('tld' in value) || value['tld'] === undefined)
43
45
  return false;
44
46
  if (!('verified' in value) || value['verified'] === undefined)
@@ -94,6 +96,7 @@ function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscrimina
94
96
  'hijackerId': json['hijackerId'],
95
97
  'isDeleteable': json['isDeleteable'],
96
98
  'isLocked': json['isLocked'],
99
+ 'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
97
100
  'tld': json['tld'],
98
101
  'verified': json['verified'],
99
102
  'nameservers': json['nameservers'],
@@ -130,6 +133,7 @@ function IntersectionDomainDtoWithAccountDtoToJSONTyped(value, ignoreDiscriminat
130
133
  'hijackerId': value['hijackerId'],
131
134
  'isDeleteable': value['isDeleteable'],
132
135
  'isLocked': value['isLocked'],
136
+ 'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
133
137
  'tld': value['tld'],
134
138
  'verified': value['verified'],
135
139
  'nameservers': value['nameservers'],
@@ -52,6 +52,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
52
52
  * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
53
53
  */
54
54
  isLocked: boolean;
55
+ /**
56
+ * The date until which the domain is locked (end date of the current continuous lock period), or null if not locked
57
+ * @type {Date}
58
+ * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
59
+ */
60
+ lockedUntil: Date | null;
55
61
  /**
56
62
  * The TLD for this domain.
57
63
  * @type {string}
@@ -39,6 +39,8 @@ function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(value)
39
39
  return false;
40
40
  if (!('isLocked' in value) || value['isLocked'] === undefined)
41
41
  return false;
42
+ if (!('lockedUntil' in value) || value['lockedUntil'] === undefined)
43
+ return false;
42
44
  if (!('tld' in value) || value['tld'] === undefined)
43
45
  return false;
44
46
  if (!('verified' in value) || value['verified'] === undefined)
@@ -96,6 +98,7 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped(json
96
98
  'hijackerId': json['hijackerId'],
97
99
  'isDeleteable': json['isDeleteable'],
98
100
  'isLocked': json['isLocked'],
101
+ 'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
99
102
  'tld': json['tld'],
100
103
  'verified': json['verified'],
101
104
  'nameservers': json['nameservers'],
@@ -133,6 +136,7 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped(value,
133
136
  'hijackerId': value['hijackerId'],
134
137
  'isDeleteable': value['isDeleteable'],
135
138
  'isLocked': value['isLocked'],
139
+ 'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
136
140
  'tld': value['tld'],
137
141
  'verified': value['verified'],
138
142
  'nameservers': value['nameservers'],
@@ -52,6 +52,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
52
52
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
53
53
  */
54
54
  isLocked: boolean;
55
+ /**
56
+ * The date until which the domain is locked (end date of the current continuous lock period), or null if not locked
57
+ * @type {Date}
58
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
59
+ */
60
+ lockedUntil: Date | null;
55
61
  /**
56
62
  * The TLD for this domain.
57
63
  * @type {string}
@@ -39,6 +39,8 @@ function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
39
39
  return false;
40
40
  if (!('isLocked' in value) || value['isLocked'] === undefined)
41
41
  return false;
42
+ if (!('lockedUntil' in value) || value['lockedUntil'] === undefined)
43
+ return false;
42
44
  if (!('tld' in value) || value['tld'] === undefined)
43
45
  return false;
44
46
  if (!('verified' in value) || value['verified'] === undefined)
@@ -96,6 +98,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
96
98
  'hijackerId': json['hijackerId'],
97
99
  'isDeleteable': json['isDeleteable'],
98
100
  'isLocked': json['isLocked'],
101
+ 'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
99
102
  'tld': json['tld'],
100
103
  'verified': json['verified'],
101
104
  'nameservers': json['nameservers'],
@@ -133,6 +136,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(value, ig
133
136
  'hijackerId': value['hijackerId'],
134
137
  'isDeleteable': value['isDeleteable'],
135
138
  'isLocked': value['isLocked'],
139
+ 'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
136
140
  'tld': value['tld'],
137
141
  'verified': value['verified'],
138
142
  'nameservers': value['nameservers'],
@@ -52,6 +52,12 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
52
52
  * @memberof IntersectionDomainDtoWithSeoMetricsDto
53
53
  */
54
54
  isLocked: boolean;
55
+ /**
56
+ * The date until which the domain is locked (end date of the current continuous lock period), or null if not locked
57
+ * @type {Date}
58
+ * @memberof IntersectionDomainDtoWithSeoMetricsDto
59
+ */
60
+ lockedUntil: Date | null;
55
61
  /**
56
62
  * The SEO metrics for this domain
57
63
  * @type {SeoMetricsDto}
@@ -39,6 +39,8 @@ function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value) {
39
39
  return false;
40
40
  if (!('isLocked' in value) || value['isLocked'] === undefined)
41
41
  return false;
42
+ if (!('lockedUntil' in value) || value['lockedUntil'] === undefined)
43
+ return false;
42
44
  if (!('seoMetrics' in value) || value['seoMetrics'] === undefined)
43
45
  return false;
44
46
  if (!('tld' in value) || value['tld'] === undefined)
@@ -94,6 +96,7 @@ function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json, ignoreDiscrim
94
96
  'hijackerId': json['hijackerId'],
95
97
  'isDeleteable': json['isDeleteable'],
96
98
  'isLocked': json['isLocked'],
99
+ 'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
97
100
  'seoMetrics': (0, SeoMetricsDto_1.SeoMetricsDtoFromJSON)(json['seoMetrics']),
98
101
  'tld': json['tld'],
99
102
  'verified': json['verified'],
@@ -130,6 +133,7 @@ function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value, ignoreDiscrimi
130
133
  'hijackerId': value['hijackerId'],
131
134
  'isDeleteable': value['isDeleteable'],
132
135
  'isLocked': value['isLocked'],
136
+ 'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
133
137
  'seoMetrics': (0, SeoMetricsDto_1.SeoMetricsDtoToJSON)(value['seoMetrics']),
134
138
  'tld': value['tld'],
135
139
  'verified': value['verified'],
@@ -14,6 +14,7 @@ import type { ManualLeadLeaseToOwnDto } from './ManualLeadLeaseToOwnDto';
14
14
  import type { MoneyDto } from './MoneyDto';
15
15
  import type { IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto } from './IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto';
16
16
  import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
17
+ import type { LeadOfferExpirationConfigurationDto } from './LeadOfferExpirationConfigurationDto';
17
18
  import type { LeadOfferDto } from './LeadOfferDto';
18
19
  /**
19
20
  *
@@ -141,6 +142,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
141
142
  * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
142
143
  */
143
144
  lastSellerOffer: LeadOfferDto | null;
145
+ /**
146
+ *
147
+ * @type {LeadOfferExpirationConfigurationDto}
148
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
149
+ */
150
+ leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
144
151
  }
145
152
  /**
146
153
  * @export
@@ -24,6 +24,7 @@ var ManualLeadLeaseToOwnDto_1 = require("./ManualLeadLeaseToOwnDto");
24
24
  var MoneyDto_1 = require("./MoneyDto");
25
25
  var IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1 = require("./IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto");
26
26
  var LeadRentConfigurationDto_1 = require("./LeadRentConfigurationDto");
27
+ var LeadOfferExpirationConfigurationDto_1 = require("./LeadOfferExpirationConfigurationDto");
27
28
  var LeadOfferDto_1 = require("./LeadOfferDto");
28
29
  /**
29
30
  * @export
@@ -106,6 +107,8 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetai
106
107
  return false;
107
108
  if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined)
108
109
  return false;
110
+ if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined)
111
+ return false;
109
112
  return true;
110
113
  }
111
114
  function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON(json) {
@@ -136,6 +139,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJ
136
139
  'rent': (0, LeadRentConfigurationDto_1.LeadRentConfigurationDtoFromJSON)(json['rent']),
137
140
  'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastBuyerOffer']),
138
141
  'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastSellerOffer']),
142
+ 'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoFromJSON)(json['leadOfferExpirationConfiguration']),
139
143
  };
140
144
  }
141
145
  function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON(json) {
@@ -167,5 +171,6 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSO
167
171
  'rent': (0, LeadRentConfigurationDto_1.LeadRentConfigurationDtoToJSON)(value['rent']),
168
172
  'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastBuyerOffer']),
169
173
  'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastSellerOffer']),
174
+ 'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoToJSON)(value['leadOfferExpirationConfiguration']),
170
175
  };
171
176
  }
@@ -28,6 +28,12 @@ export interface LeadDomainDto {
28
28
  * @memberof LeadDomainDto
29
29
  */
30
30
  isLocked: boolean;
31
+ /**
32
+ * Whether the domain is currently locked
33
+ * @type {Date}
34
+ * @memberof LeadDomainDto
35
+ */
36
+ lockedUntil: Date | null;
31
37
  /**
32
38
  * Domain name
33
39
  * @type {string}
@@ -27,6 +27,8 @@ function instanceOfLeadDomainDto(value) {
27
27
  return false;
28
28
  if (!('isLocked' in value) || value['isLocked'] === undefined)
29
29
  return false;
30
+ if (!('lockedUntil' in value) || value['lockedUntil'] === undefined)
31
+ return false;
30
32
  if (!('name' in value) || value['name'] === undefined)
31
33
  return false;
32
34
  if (!('displayName' in value) || value['displayName'] === undefined)
@@ -51,6 +53,7 @@ function LeadDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
51
53
  return {
52
54
  'id': json['id'],
53
55
  'isLocked': json['isLocked'],
56
+ 'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
54
57
  'name': json['name'],
55
58
  'displayName': json['displayName'],
56
59
  'currencyCode': json['currencyCode'],
@@ -70,6 +73,7 @@ function LeadDomainDtoToJSONTyped(value, ignoreDiscriminator) {
70
73
  return {
71
74
  'id': value['id'],
72
75
  'isLocked': value['isLocked'],
76
+ 'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
73
77
  'name': value['name'],
74
78
  'displayName': value['displayName'],
75
79
  'currencyCode': value['currencyCode'],