@randock/nameshift-api-client 0.0.538 → 0.0.540
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 +20 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +36 -1
- package/dist/apis/AdminApi.js +136 -0
- package/dist/apis/BrokeredLeadsApi.d.ts +195 -0
- package/dist/apis/BrokeredLeadsApi.js +912 -0
- package/dist/apis/BrokeredLeadsPublicApi.d.ts +31 -0
- package/dist/apis/BrokeredLeadsPublicApi.js +126 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AccountBrokerSettingsInput.d.ts +38 -0
- package/dist/models/AccountBrokerSettingsInput.js +51 -0
- package/dist/models/AccountDto.d.ts +12 -0
- package/dist/models/AccountDto.js +8 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +2 -1
- package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionItemDto.js +2 -1
- package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.js +2 -1
- package/dist/models/AccountNotificationDto.d.ts +1 -0
- package/dist/models/AccountNotificationDto.js +2 -1
- package/dist/models/AccountSettingsBrokerDto.d.ts +38 -0
- package/dist/models/AccountSettingsBrokerDto.js +55 -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/AdminBrokeredLeadDto.d.ts +248 -0
- package/dist/models/AdminBrokeredLeadDto.js +204 -0
- package/dist/models/AdminListBrokeredLeads200Response.d.ts +47 -0
- package/dist/models/AdminListBrokeredLeads200Response.js +62 -0
- package/dist/models/ApiKeyDto.d.ts +2 -0
- package/dist/models/ApiKeyDto.js +2 -0
- package/dist/models/ApiKeyScopeDto.d.ts +2 -0
- package/dist/models/ApiKeyScopeDto.js +2 -0
- package/dist/models/BrokerBrokeredLeadDto.d.ts +189 -0
- package/dist/models/BrokerBrokeredLeadDto.js +162 -0
- package/dist/models/BrokerCommissionInput.d.ts +52 -0
- package/dist/models/BrokerCommissionInput.js +63 -0
- package/dist/models/BrokeredLeadBreakdownDto.d.ts +58 -0
- package/dist/models/BrokeredLeadBreakdownDto.js +69 -0
- package/dist/models/BrokeredLeadBuyerContactDto.d.ts +50 -0
- package/dist/models/BrokeredLeadBuyerContactDto.js +63 -0
- package/dist/models/BrokeredLeadBuyerInput.d.ts +50 -0
- package/dist/models/BrokeredLeadBuyerInput.js +63 -0
- package/dist/models/BrokeredLeadCommissionDto.d.ts +71 -0
- package/dist/models/BrokeredLeadCommissionDto.js +80 -0
- package/dist/models/BrokeredLeadInvitationDto.d.ts +57 -0
- package/dist/models/BrokeredLeadInvitationDto.js +68 -0
- package/dist/models/BuyerInvoiceDto.d.ts +6 -0
- package/dist/models/BuyerInvoiceDto.js +4 -0
- package/dist/models/BuyerNotificationDto.d.ts +6 -0
- package/dist/models/BuyerNotificationDto.js +7 -1
- package/dist/models/BuyerNotificationListItemDto.d.ts +6 -0
- package/dist/models/BuyerNotificationListItemDto.js +7 -1
- package/dist/models/CommissionDto.d.ts +1 -0
- package/dist/models/CommissionDto.js +2 -1
- package/dist/models/CommissionPayloadInput.d.ts +1 -0
- package/dist/models/CommissionPayloadInput.js +2 -1
- package/dist/models/CommissionReasonDto.d.ts +1 -0
- package/dist/models/CommissionReasonDto.js +2 -1
- package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
- package/dist/models/CommissionSimulationItemInput.js +2 -1
- package/dist/models/CreateApiKeyInput.d.ts +2 -0
- package/dist/models/CreateApiKeyInput.js +2 -0
- package/dist/models/CreateBrokeredLeadInput.d.ts +59 -0
- package/dist/models/CreateBrokeredLeadInput.js +68 -0
- package/dist/models/CreatedApiKeyDto.d.ts +2 -0
- package/dist/models/CreatedApiKeyDto.js +2 -0
- package/dist/models/CustomerSuccessListAccountDto.d.ts +6 -0
- package/dist/models/CustomerSuccessListAccountDto.js +4 -0
- package/dist/models/CustomerSuccessListAccountMetricsDto.d.ts +6 -0
- package/dist/models/CustomerSuccessListAccountMetricsDto.js +4 -0
- package/dist/models/DeclineBrokeredLeadInput.d.ts +32 -0
- package/dist/models/DeclineBrokeredLeadInput.js +49 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +13 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +9 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +1 -1
- package/dist/models/InvoiceDto.d.ts +6 -0
- package/dist/models/InvoiceDto.js +4 -0
- package/dist/models/LeadBrokeredDealDto.d.ts +39 -0
- package/dist/models/LeadBrokeredDealDto.js +56 -0
- package/dist/models/ListAccountMetricsDto.d.ts +6 -0
- package/dist/models/ListAccountMetricsDto.js +4 -0
- package/dist/models/ListBrokerLeads200Response.d.ts +47 -0
- package/dist/models/ListBrokerLeads200Response.js +62 -0
- package/dist/models/ListLeadsResultItem.d.ts +7 -0
- package/dist/models/ListLeadsResultItem.js +5 -0
- package/dist/models/ManualLeadDetails.d.ts +7 -0
- package/dist/models/ManualLeadDetails.js +5 -0
- package/dist/models/OverrideBrokeredLeadNameshiftCommissionInput.d.ts +38 -0
- package/dist/models/OverrideBrokeredLeadNameshiftCommissionInput.js +55 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +19 -0
- package/dist/models/PrivateAccountGetMeResponse.js +13 -0
- package/dist/models/RegisterAccountInput.d.ts +6 -0
- package/dist/models/RegisterAccountInput.js +2 -0
- package/dist/models/SellerBrokeredLeadDto.d.ts +114 -0
- package/dist/models/SellerBrokeredLeadDto.js +111 -0
- package/dist/models/SellerBrokeredLeadVerificationDto.d.ts +44 -0
- package/dist/models/SellerBrokeredLeadVerificationDto.js +59 -0
- package/dist/models/SellerInvoiceDto.d.ts +6 -0
- package/dist/models/SellerInvoiceDto.js +4 -0
- package/dist/models/SimulateCommissionInput.d.ts +1 -0
- package/dist/models/SimulateCommissionInput.js +2 -1
- package/dist/models/UpdateApiKeyInput.d.ts +2 -0
- package/dist/models/UpdateApiKeyInput.js +2 -0
- package/dist/models/UserNotificationDto.d.ts +6 -0
- package/dist/models/UserNotificationDto.js +7 -1
- package/dist/models/UserNotificationListItemDto.d.ts +6 -0
- package/dist/models/UserNotificationListItemDto.js +7 -1
- package/dist/models/WithSettingsInner.d.ts +11 -4
- package/dist/models/WithSettingsInner.js +9 -4
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +18 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +145 -0
- package/src/apis/BrokeredLeadsApi.ts +740 -0
- package/src/apis/BrokeredLeadsPublicApi.ts +69 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AccountBrokerSettingsInput.ts +73 -0
- package/src/models/AccountDto.ts +18 -0
- package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +2 -1
- package/src/models/AccountNameshiftCommissionItemDto.ts +2 -1
- package/src/models/AccountNameshiftCommissionReasonDto.ts +2 -1
- package/src/models/AccountNotificationDto.ts +2 -1
- package/src/models/AccountSettingsBrokerDto.ts +75 -0
- package/src/models/AccountSettingsDto.ts +16 -0
- package/src/models/AccountSettingsInput.ts +15 -0
- package/src/models/AdminBrokeredLeadDto.ts +404 -0
- package/src/models/AdminListBrokeredLeads200Response.ts +106 -0
- package/src/models/ApiKeyDto.ts +2 -0
- package/src/models/ApiKeyScopeDto.ts +2 -0
- package/src/models/BrokerBrokeredLeadDto.ts +320 -0
- package/src/models/BrokerCommissionInput.ts +93 -0
- package/src/models/BrokeredLeadBreakdownDto.ts +117 -0
- package/src/models/BrokeredLeadBuyerContactDto.ts +93 -0
- package/src/models/BrokeredLeadBuyerInput.ts +93 -0
- package/src/models/BrokeredLeadCommissionDto.ts +130 -0
- package/src/models/BrokeredLeadInvitationDto.ts +110 -0
- package/src/models/BuyerInvoiceDto.ts +9 -0
- package/src/models/BuyerNotificationDto.ts +7 -1
- package/src/models/BuyerNotificationListItemDto.ts +7 -1
- package/src/models/CommissionDto.ts +2 -1
- package/src/models/CommissionPayloadInput.ts +2 -1
- package/src/models/CommissionReasonDto.ts +2 -1
- package/src/models/CommissionSimulationItemInput.ts +2 -1
- package/src/models/CreateApiKeyInput.ts +2 -0
- package/src/models/CreateBrokeredLeadInput.ts +123 -0
- package/src/models/CreatedApiKeyDto.ts +2 -0
- package/src/models/CustomerSuccessListAccountDto.ts +9 -0
- package/src/models/CustomerSuccessListAccountMetricsDto.ts +9 -0
- package/src/models/DeclineBrokeredLeadInput.ts +65 -0
- package/src/models/FeatureFlagListItemDto.ts +1 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +19 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +1 -1
- package/src/models/InvoiceDto.ts +9 -0
- package/src/models/LeadBrokeredDealDto.ts +83 -0
- package/src/models/ListAccountMetricsDto.ts +9 -0
- package/src/models/ListBrokerLeads200Response.ts +106 -0
- package/src/models/ListLeadsResultItem.ts +16 -0
- package/src/models/ManualLeadDetails.ts +16 -0
- package/src/models/OverrideBrokeredLeadNameshiftCommissionInput.ts +75 -0
- package/src/models/PrivateAccountGetMeResponse.ts +28 -0
- package/src/models/RegisterAccountInput.ts +8 -0
- package/src/models/SellerBrokeredLeadDto.ts +215 -0
- package/src/models/SellerBrokeredLeadVerificationDto.ts +84 -0
- package/src/models/SellerInvoiceDto.ts +9 -0
- package/src/models/SimulateCommissionInput.ts +2 -1
- package/src/models/UpdateApiKeyInput.ts +2 -0
- package/src/models/UserNotificationDto.ts +7 -1
- package/src/models/UserNotificationListItemDto.ts +7 -1
- package/src/models/WithSettingsInner.ts +44 -28
- package/src/models/index.ts +18 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
+
import type { BrokerBrokeredLeadDto } from './BrokerBrokeredLeadDto';
|
|
14
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ListBrokerLeads200Response
|
|
19
|
+
*/
|
|
20
|
+
export interface ListBrokerLeads200Response {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<BrokerBrokeredLeadDto>}
|
|
24
|
+
* @memberof ListBrokerLeads200Response
|
|
25
|
+
*/
|
|
26
|
+
data: Array<BrokerBrokeredLeadDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof ListBrokerLeads200Response
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof ListBrokerLeads200Response
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ListBrokerLeads200Response interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfListBrokerLeads200Response(value: object): value is ListBrokerLeads200Response;
|
|
44
|
+
export declare function ListBrokerLeads200ResponseFromJSON(json: any): ListBrokerLeads200Response;
|
|
45
|
+
export declare function ListBrokerLeads200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListBrokerLeads200Response;
|
|
46
|
+
export declare function ListBrokerLeads200ResponseToJSON(json: any): ListBrokerLeads200Response;
|
|
47
|
+
export declare function ListBrokerLeads200ResponseToJSONTyped(value?: ListBrokerLeads200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.instanceOfListBrokerLeads200Response = instanceOfListBrokerLeads200Response;
|
|
17
|
+
exports.ListBrokerLeads200ResponseFromJSON = ListBrokerLeads200ResponseFromJSON;
|
|
18
|
+
exports.ListBrokerLeads200ResponseFromJSONTyped = ListBrokerLeads200ResponseFromJSONTyped;
|
|
19
|
+
exports.ListBrokerLeads200ResponseToJSON = ListBrokerLeads200ResponseToJSON;
|
|
20
|
+
exports.ListBrokerLeads200ResponseToJSONTyped = ListBrokerLeads200ResponseToJSONTyped;
|
|
21
|
+
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
+
var BrokerBrokeredLeadDto_1 = require("./BrokerBrokeredLeadDto");
|
|
23
|
+
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ListBrokerLeads200Response interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfListBrokerLeads200Response(value) {
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('links' in value) || value['links'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function ListBrokerLeads200ResponseFromJSON(json) {
|
|
37
|
+
return ListBrokerLeads200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function ListBrokerLeads200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (json['data'].map(BrokerBrokeredLeadDto_1.BrokerBrokeredLeadDtoFromJSON)),
|
|
45
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ListBrokerLeads200ResponseToJSON(json) {
|
|
50
|
+
return ListBrokerLeads200ResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ListBrokerLeads200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'data': (value['data'].map(BrokerBrokeredLeadDto_1.BrokerBrokeredLeadDtoToJSON)),
|
|
59
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
60
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { LeadLeaseToOwnConfigurationDto } from './LeadLeaseToOwnConfigurationDto';
|
|
13
13
|
import type { LeadMessageData } from './LeadMessageData';
|
|
14
|
+
import type { LeadBrokeredDealDto } from './LeadBrokeredDealDto';
|
|
14
15
|
import type { LeadDomainDto } from './LeadDomainDto';
|
|
15
16
|
import type { MoneyDto } from './MoneyDto';
|
|
16
17
|
import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
|
|
@@ -214,6 +215,12 @@ export interface ListLeadsResultItem {
|
|
|
214
215
|
* @memberof ListLeadsResultItem
|
|
215
216
|
*/
|
|
216
217
|
isMutedForSeller: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* The broker deal the lead comes from, if any.
|
|
220
|
+
* @type {LeadBrokeredDealDto}
|
|
221
|
+
* @memberof ListLeadsResultItem
|
|
222
|
+
*/
|
|
223
|
+
brokeredDeal: LeadBrokeredDealDto | null;
|
|
217
224
|
}
|
|
218
225
|
/**
|
|
219
226
|
* @export
|
|
@@ -21,6 +21,7 @@ exports.ListLeadsResultItemToJSON = ListLeadsResultItemToJSON;
|
|
|
21
21
|
exports.ListLeadsResultItemToJSONTyped = ListLeadsResultItemToJSONTyped;
|
|
22
22
|
var LeadLeaseToOwnConfigurationDto_1 = require("./LeadLeaseToOwnConfigurationDto");
|
|
23
23
|
var LeadMessageData_1 = require("./LeadMessageData");
|
|
24
|
+
var LeadBrokeredDealDto_1 = require("./LeadBrokeredDealDto");
|
|
24
25
|
var LeadDomainDto_1 = require("./LeadDomainDto");
|
|
25
26
|
var MoneyDto_1 = require("./MoneyDto");
|
|
26
27
|
var LeadRentConfigurationDto_1 = require("./LeadRentConfigurationDto");
|
|
@@ -152,6 +153,8 @@ function instanceOfListLeadsResultItem(value) {
|
|
|
152
153
|
return false;
|
|
153
154
|
if (!('isMutedForSeller' in value) || value['isMutedForSeller'] === undefined)
|
|
154
155
|
return false;
|
|
156
|
+
if (!('brokeredDeal' in value) || value['brokeredDeal'] === undefined)
|
|
157
|
+
return false;
|
|
155
158
|
return true;
|
|
156
159
|
}
|
|
157
160
|
function ListLeadsResultItemFromJSON(json) {
|
|
@@ -194,6 +197,7 @@ function ListLeadsResultItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
194
197
|
'lastMessageData': (0, LeadMessageData_1.LeadMessageDataFromJSON)(json['lastMessageData']),
|
|
195
198
|
'lastMessageDate': (new Date(json['lastMessageDate'])),
|
|
196
199
|
'isMutedForSeller': json['isMutedForSeller'],
|
|
200
|
+
'brokeredDeal': (0, LeadBrokeredDealDto_1.LeadBrokeredDealDtoFromJSON)(json['brokeredDeal']),
|
|
197
201
|
};
|
|
198
202
|
}
|
|
199
203
|
function ListLeadsResultItemToJSON(json) {
|
|
@@ -237,5 +241,6 @@ function ListLeadsResultItemToJSONTyped(value, ignoreDiscriminator) {
|
|
|
237
241
|
'lastMessageData': (0, LeadMessageData_1.LeadMessageDataToJSON)(value['lastMessageData']),
|
|
238
242
|
'lastMessageDate': ((value['lastMessageDate']).toISOString()),
|
|
239
243
|
'isMutedForSeller': value['isMutedForSeller'],
|
|
244
|
+
'brokeredDeal': (0, LeadBrokeredDealDto_1.LeadBrokeredDealDtoToJSON)(value['brokeredDeal']),
|
|
240
245
|
};
|
|
241
246
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { LeadBrokeredDealDto } from './LeadBrokeredDealDto';
|
|
12
13
|
import type { ManualLeadBuyerDto } from './ManualLeadBuyerDto';
|
|
13
14
|
import type { ManualLeadLeaseToOwnDto } from './ManualLeadLeaseToOwnDto';
|
|
14
15
|
import type { MoneyDto } from './MoneyDto';
|
|
@@ -179,6 +180,12 @@ export interface ManualLeadDetails {
|
|
|
179
180
|
* @memberof ManualLeadDetails
|
|
180
181
|
*/
|
|
181
182
|
domainLockConfiguration: DomainLockConfigurationDto;
|
|
183
|
+
/**
|
|
184
|
+
* The broker deal the lead comes from, if any.
|
|
185
|
+
* @type {LeadBrokeredDealDto}
|
|
186
|
+
* @memberof ManualLeadDetails
|
|
187
|
+
*/
|
|
188
|
+
brokeredDeal: LeadBrokeredDealDto | null;
|
|
182
189
|
}
|
|
183
190
|
/**
|
|
184
191
|
* @export
|
|
@@ -19,6 +19,7 @@ exports.ManualLeadDetailsFromJSON = ManualLeadDetailsFromJSON;
|
|
|
19
19
|
exports.ManualLeadDetailsFromJSONTyped = ManualLeadDetailsFromJSONTyped;
|
|
20
20
|
exports.ManualLeadDetailsToJSON = ManualLeadDetailsToJSON;
|
|
21
21
|
exports.ManualLeadDetailsToJSONTyped = ManualLeadDetailsToJSONTyped;
|
|
22
|
+
var LeadBrokeredDealDto_1 = require("./LeadBrokeredDealDto");
|
|
22
23
|
var ManualLeadBuyerDto_1 = require("./ManualLeadBuyerDto");
|
|
23
24
|
var ManualLeadLeaseToOwnDto_1 = require("./ManualLeadLeaseToOwnDto");
|
|
24
25
|
var MoneyDto_1 = require("./MoneyDto");
|
|
@@ -121,6 +122,8 @@ function instanceOfManualLeadDetails(value) {
|
|
|
121
122
|
return false;
|
|
122
123
|
if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined)
|
|
123
124
|
return false;
|
|
125
|
+
if (!('brokeredDeal' in value) || value['brokeredDeal'] === undefined)
|
|
126
|
+
return false;
|
|
124
127
|
return true;
|
|
125
128
|
}
|
|
126
129
|
function ManualLeadDetailsFromJSON(json) {
|
|
@@ -157,6 +160,7 @@ function ManualLeadDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
157
160
|
'awaitingSellerFirstMessage': json['awaitingSellerFirstMessage'],
|
|
158
161
|
'buyer': (0, ManualLeadBuyerDto_1.ManualLeadBuyerDtoFromJSON)(json['buyer']),
|
|
159
162
|
'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoFromJSON)(json['domainLockConfiguration']),
|
|
163
|
+
'brokeredDeal': (0, LeadBrokeredDealDto_1.LeadBrokeredDealDtoFromJSON)(json['brokeredDeal']),
|
|
160
164
|
};
|
|
161
165
|
}
|
|
162
166
|
function ManualLeadDetailsToJSON(json) {
|
|
@@ -194,5 +198,6 @@ function ManualLeadDetailsToJSONTyped(value, ignoreDiscriminator) {
|
|
|
194
198
|
'awaitingSellerFirstMessage': value['awaitingSellerFirstMessage'],
|
|
195
199
|
'buyer': (0, ManualLeadBuyerDto_1.ManualLeadBuyerDtoToJSON)(value['buyer']),
|
|
196
200
|
'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoToJSON)(value['domainLockConfiguration']),
|
|
201
|
+
'brokeredDeal': (0, LeadBrokeredDealDto_1.LeadBrokeredDealDtoToJSON)(value['brokeredDeal']),
|
|
197
202
|
};
|
|
198
203
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 OverrideBrokeredLeadNameshiftCommissionInput
|
|
16
|
+
*/
|
|
17
|
+
export interface OverrideBrokeredLeadNameshiftCommissionInput {
|
|
18
|
+
/**
|
|
19
|
+
* Platform fee charged to the broker, as a percentage of the sale price.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof OverrideBrokeredLeadNameshiftCommissionInput
|
|
22
|
+
*/
|
|
23
|
+
percentage: number;
|
|
24
|
+
/**
|
|
25
|
+
* Why this deal gets a custom fee; kept with the deal.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OverrideBrokeredLeadNameshiftCommissionInput
|
|
28
|
+
*/
|
|
29
|
+
reason: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the OverrideBrokeredLeadNameshiftCommissionInput interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfOverrideBrokeredLeadNameshiftCommissionInput(value: object): value is OverrideBrokeredLeadNameshiftCommissionInput;
|
|
35
|
+
export declare function OverrideBrokeredLeadNameshiftCommissionInputFromJSON(json: any): OverrideBrokeredLeadNameshiftCommissionInput;
|
|
36
|
+
export declare function OverrideBrokeredLeadNameshiftCommissionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): OverrideBrokeredLeadNameshiftCommissionInput;
|
|
37
|
+
export declare function OverrideBrokeredLeadNameshiftCommissionInputToJSON(json: any): OverrideBrokeredLeadNameshiftCommissionInput;
|
|
38
|
+
export declare function OverrideBrokeredLeadNameshiftCommissionInputToJSONTyped(value?: OverrideBrokeredLeadNameshiftCommissionInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.instanceOfOverrideBrokeredLeadNameshiftCommissionInput = instanceOfOverrideBrokeredLeadNameshiftCommissionInput;
|
|
17
|
+
exports.OverrideBrokeredLeadNameshiftCommissionInputFromJSON = OverrideBrokeredLeadNameshiftCommissionInputFromJSON;
|
|
18
|
+
exports.OverrideBrokeredLeadNameshiftCommissionInputFromJSONTyped = OverrideBrokeredLeadNameshiftCommissionInputFromJSONTyped;
|
|
19
|
+
exports.OverrideBrokeredLeadNameshiftCommissionInputToJSON = OverrideBrokeredLeadNameshiftCommissionInputToJSON;
|
|
20
|
+
exports.OverrideBrokeredLeadNameshiftCommissionInputToJSONTyped = OverrideBrokeredLeadNameshiftCommissionInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OverrideBrokeredLeadNameshiftCommissionInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOverrideBrokeredLeadNameshiftCommissionInput(value) {
|
|
25
|
+
if (!('percentage' in value) || value['percentage'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function OverrideBrokeredLeadNameshiftCommissionInputFromJSON(json) {
|
|
32
|
+
return OverrideBrokeredLeadNameshiftCommissionInputFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function OverrideBrokeredLeadNameshiftCommissionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'percentage': json['percentage'],
|
|
40
|
+
'reason': json['reason'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function OverrideBrokeredLeadNameshiftCommissionInputToJSON(json) {
|
|
44
|
+
return OverrideBrokeredLeadNameshiftCommissionInputToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function OverrideBrokeredLeadNameshiftCommissionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'percentage': value['percentage'],
|
|
53
|
+
'reason': value['reason'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -82,6 +82,18 @@ export interface PrivateAccountGetMeResponse {
|
|
|
82
82
|
* @memberof PrivateAccountGetMeResponse
|
|
83
83
|
*/
|
|
84
84
|
canSell: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Whether the account can bring in brokered deals: brokerage is switched on and the account is verified.
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof PrivateAccountGetMeResponse
|
|
89
|
+
*/
|
|
90
|
+
canBroker: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Whether the account can see the onboarding.
|
|
93
|
+
* @type {boolean}
|
|
94
|
+
* @memberof PrivateAccountGetMeResponse
|
|
95
|
+
*/
|
|
96
|
+
canSeeOnboarding: boolean;
|
|
85
97
|
/**
|
|
86
98
|
* Account settings.
|
|
87
99
|
* @type {WithSettingsInner}
|
|
@@ -106,6 +118,12 @@ export interface PrivateAccountGetMeResponse {
|
|
|
106
118
|
* @memberof PrivateAccountGetMeResponse
|
|
107
119
|
*/
|
|
108
120
|
unreadNotificationsNumber: number;
|
|
121
|
+
/**
|
|
122
|
+
* Whether the account brought in deals as a broker. Their deals stay reachable after brokerage is switched off.
|
|
123
|
+
* @type {boolean}
|
|
124
|
+
* @memberof PrivateAccountGetMeResponse
|
|
125
|
+
*/
|
|
126
|
+
hasBrokerLeads: boolean;
|
|
109
127
|
}
|
|
110
128
|
/**
|
|
111
129
|
* @export
|
|
@@ -142,6 +160,7 @@ export declare const PrivateAccountGetMeResponseEnabledFeaturesEnum: {
|
|
|
142
160
|
readonly LEAD_ENRICHMENT: "LEAD_ENRICHMENT";
|
|
143
161
|
readonly LEAD_CREATION_RECAPTCHA: "LEAD_CREATION_RECAPTCHA";
|
|
144
162
|
readonly DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: "DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU";
|
|
163
|
+
readonly BROKER_PROGRAM: "BROKER_PROGRAM";
|
|
145
164
|
readonly DOMAIN_APPRAISAL: "DOMAIN_APPRAISAL";
|
|
146
165
|
readonly BANK_ACCOUNT_NAME_CHECK: "BANK_ACCOUNT_NAME_CHECK";
|
|
147
166
|
readonly MFA_ENFORCED_FOR_STAFF: "MFA_ENFORCED_FOR_STAFF";
|
|
@@ -61,6 +61,7 @@ exports.PrivateAccountGetMeResponseEnabledFeaturesEnum = {
|
|
|
61
61
|
LEAD_ENRICHMENT: 'LEAD_ENRICHMENT',
|
|
62
62
|
LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
|
|
63
63
|
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
64
|
+
BROKER_PROGRAM: 'BROKER_PROGRAM',
|
|
64
65
|
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
|
|
65
66
|
BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK',
|
|
66
67
|
MFA_ENFORCED_FOR_STAFF: 'MFA_ENFORCED_FOR_STAFF',
|
|
@@ -90,6 +91,10 @@ function instanceOfPrivateAccountGetMeResponse(value) {
|
|
|
90
91
|
return false;
|
|
91
92
|
if (!('canSell' in value) || value['canSell'] === undefined)
|
|
92
93
|
return false;
|
|
94
|
+
if (!('canBroker' in value) || value['canBroker'] === undefined)
|
|
95
|
+
return false;
|
|
96
|
+
if (!('canSeeOnboarding' in value) || value['canSeeOnboarding'] === undefined)
|
|
97
|
+
return false;
|
|
93
98
|
if (!('settings' in value) || value['settings'] === undefined)
|
|
94
99
|
return false;
|
|
95
100
|
if (!('notifications' in value) || value['notifications'] === undefined)
|
|
@@ -98,6 +103,8 @@ function instanceOfPrivateAccountGetMeResponse(value) {
|
|
|
98
103
|
return false;
|
|
99
104
|
if (!('unreadNotificationsNumber' in value) || value['unreadNotificationsNumber'] === undefined)
|
|
100
105
|
return false;
|
|
106
|
+
if (!('hasBrokerLeads' in value) || value['hasBrokerLeads'] === undefined)
|
|
107
|
+
return false;
|
|
101
108
|
return true;
|
|
102
109
|
}
|
|
103
110
|
function PrivateAccountGetMeResponseFromJSON(json) {
|
|
@@ -118,10 +125,13 @@ function PrivateAccountGetMeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
118
125
|
'leaseToOwnKickbackPercentage': json['leaseToOwnKickbackPercentage'],
|
|
119
126
|
'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoFromJSON)(json['challengeRewardBalance']),
|
|
120
127
|
'canSell': json['canSell'],
|
|
128
|
+
'canBroker': json['canBroker'],
|
|
129
|
+
'canSeeOnboarding': json['canSeeOnboarding'],
|
|
121
130
|
'settings': (0, WithSettingsInner_1.WithSettingsInnerFromJSON)(json['settings']),
|
|
122
131
|
'notifications': (json['notifications'].map(AccountNotificationDto_1.AccountNotificationDtoFromJSON)),
|
|
123
132
|
'enabledFeatures': json['enabledFeatures'],
|
|
124
133
|
'unreadNotificationsNumber': json['unreadNotificationsNumber'],
|
|
134
|
+
'hasBrokerLeads': json['hasBrokerLeads'],
|
|
125
135
|
};
|
|
126
136
|
}
|
|
127
137
|
function PrivateAccountGetMeResponseToJSON(json) {
|
|
@@ -143,9 +153,12 @@ function PrivateAccountGetMeResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
|
143
153
|
'leaseToOwnKickbackPercentage': value['leaseToOwnKickbackPercentage'],
|
|
144
154
|
'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoToJSON)(value['challengeRewardBalance']),
|
|
145
155
|
'canSell': value['canSell'],
|
|
156
|
+
'canBroker': value['canBroker'],
|
|
157
|
+
'canSeeOnboarding': value['canSeeOnboarding'],
|
|
146
158
|
'settings': (0, WithSettingsInner_1.WithSettingsInnerToJSON)(value['settings']),
|
|
147
159
|
'notifications': (value['notifications'].map(AccountNotificationDto_1.AccountNotificationDtoToJSON)),
|
|
148
160
|
'enabledFeatures': value['enabledFeatures'],
|
|
149
161
|
'unreadNotificationsNumber': value['unreadNotificationsNumber'],
|
|
162
|
+
'hasBrokerLeads': value['hasBrokerLeads'],
|
|
150
163
|
};
|
|
151
164
|
}
|
|
@@ -88,6 +88,12 @@ export interface RegisterAccountInput {
|
|
|
88
88
|
* @memberof RegisterAccountInput
|
|
89
89
|
*/
|
|
90
90
|
portfolioSize?: RegisterAccountPortfolioSizeInput | null;
|
|
91
|
+
/**
|
|
92
|
+
* Token from the signup link a broker shares with a seller. The domain of the brokered deal is added to the new account, and the deal waits there for review.
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof RegisterAccountInput
|
|
95
|
+
*/
|
|
96
|
+
brokeredLeadToken?: string | null;
|
|
91
97
|
}
|
|
92
98
|
/**
|
|
93
99
|
* @export
|
|
@@ -64,6 +64,7 @@ function RegisterAccountInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
64
|
'affiliateIdentifier': json['affiliateIdentifier'] == null ? undefined : json['affiliateIdentifier'],
|
|
65
65
|
'companyName': json['companyName'] == null ? undefined : json['companyName'],
|
|
66
66
|
'portfolioSize': json['portfolioSize'] == null ? undefined : (0, RegisterAccountPortfolioSizeInput_1.RegisterAccountPortfolioSizeInputFromJSON)(json['portfolioSize']),
|
|
67
|
+
'brokeredLeadToken': json['brokeredLeadToken'] == null ? undefined : json['brokeredLeadToken'],
|
|
67
68
|
};
|
|
68
69
|
}
|
|
69
70
|
function RegisterAccountInputToJSON(json) {
|
|
@@ -87,5 +88,6 @@ function RegisterAccountInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
87
88
|
'affiliateIdentifier': value['affiliateIdentifier'],
|
|
88
89
|
'companyName': value['companyName'],
|
|
89
90
|
'portfolioSize': (0, RegisterAccountPortfolioSizeInput_1.RegisterAccountPortfolioSizeInputToJSON)(value['portfolioSize']),
|
|
91
|
+
'brokeredLeadToken': value['brokeredLeadToken'],
|
|
90
92
|
};
|
|
91
93
|
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 { BrokeredLeadBreakdownDto } from './BrokeredLeadBreakdownDto';
|
|
13
|
+
import type { BrokeredLeadCommissionDto } from './BrokeredLeadCommissionDto';
|
|
14
|
+
import type { MoneyDto } from './MoneyDto';
|
|
15
|
+
import type { SellerBrokeredLeadVerificationDto } from './SellerBrokeredLeadVerificationDto';
|
|
16
|
+
import type { MoneyDecimalDto } from './MoneyDecimalDto';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface SellerBrokeredLeadDto
|
|
21
|
+
*/
|
|
22
|
+
export interface SellerBrokeredLeadDto {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof SellerBrokeredLeadDto
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof SellerBrokeredLeadDto
|
|
33
|
+
*/
|
|
34
|
+
domainName: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof SellerBrokeredLeadDto
|
|
39
|
+
*/
|
|
40
|
+
status: SellerBrokeredLeadDtoStatusEnum;
|
|
41
|
+
/**
|
|
42
|
+
* Name of the broker who brought the deal.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof SellerBrokeredLeadDto
|
|
45
|
+
*/
|
|
46
|
+
brokerName: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {MoneyDto}
|
|
50
|
+
* @memberof SellerBrokeredLeadDto
|
|
51
|
+
*/
|
|
52
|
+
askingPrice: MoneyDto;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {BrokeredLeadCommissionDto}
|
|
56
|
+
* @memberof SellerBrokeredLeadDto
|
|
57
|
+
*/
|
|
58
|
+
commission: BrokeredLeadCommissionDto;
|
|
59
|
+
/**
|
|
60
|
+
* The sale price less the broker commission charged to the seller. Nameshift charges no commission on a brokered sale.
|
|
61
|
+
* @type {MoneyDecimalDto}
|
|
62
|
+
* @memberof SellerBrokeredLeadDto
|
|
63
|
+
*/
|
|
64
|
+
sellerProceeds: MoneyDecimalDto;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {BrokeredLeadBreakdownDto}
|
|
68
|
+
* @memberof SellerBrokeredLeadDto
|
|
69
|
+
*/
|
|
70
|
+
breakdown: BrokeredLeadBreakdownDto;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {SellerBrokeredLeadVerificationDto}
|
|
74
|
+
* @memberof SellerBrokeredLeadDto
|
|
75
|
+
*/
|
|
76
|
+
verification: SellerBrokeredLeadVerificationDto;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof SellerBrokeredLeadDto
|
|
81
|
+
*/
|
|
82
|
+
declineReason: string | null;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {Date}
|
|
86
|
+
* @memberof SellerBrokeredLeadDto
|
|
87
|
+
*/
|
|
88
|
+
createdAt: Date;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {Date}
|
|
92
|
+
* @memberof SellerBrokeredLeadDto
|
|
93
|
+
*/
|
|
94
|
+
approvedAt: Date | null;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @export
|
|
98
|
+
*/
|
|
99
|
+
export declare const SellerBrokeredLeadDtoStatusEnum: {
|
|
100
|
+
readonly PENDING_SELLER: "pending_seller";
|
|
101
|
+
readonly PENDING_SELLER_VERIFICATION: "pending_seller_verification";
|
|
102
|
+
readonly APPROVED: "approved";
|
|
103
|
+
readonly DECLINED: "declined";
|
|
104
|
+
readonly CANCELLED: "cancelled";
|
|
105
|
+
};
|
|
106
|
+
export type SellerBrokeredLeadDtoStatusEnum = typeof SellerBrokeredLeadDtoStatusEnum[keyof typeof SellerBrokeredLeadDtoStatusEnum];
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the SellerBrokeredLeadDto interface.
|
|
109
|
+
*/
|
|
110
|
+
export declare function instanceOfSellerBrokeredLeadDto(value: object): value is SellerBrokeredLeadDto;
|
|
111
|
+
export declare function SellerBrokeredLeadDtoFromJSON(json: any): SellerBrokeredLeadDto;
|
|
112
|
+
export declare function SellerBrokeredLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerBrokeredLeadDto;
|
|
113
|
+
export declare function SellerBrokeredLeadDtoToJSON(json: any): SellerBrokeredLeadDto;
|
|
114
|
+
export declare function SellerBrokeredLeadDtoToJSONTyped(value?: SellerBrokeredLeadDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.SellerBrokeredLeadDtoStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfSellerBrokeredLeadDto = instanceOfSellerBrokeredLeadDto;
|
|
18
|
+
exports.SellerBrokeredLeadDtoFromJSON = SellerBrokeredLeadDtoFromJSON;
|
|
19
|
+
exports.SellerBrokeredLeadDtoFromJSONTyped = SellerBrokeredLeadDtoFromJSONTyped;
|
|
20
|
+
exports.SellerBrokeredLeadDtoToJSON = SellerBrokeredLeadDtoToJSON;
|
|
21
|
+
exports.SellerBrokeredLeadDtoToJSONTyped = SellerBrokeredLeadDtoToJSONTyped;
|
|
22
|
+
var BrokeredLeadBreakdownDto_1 = require("./BrokeredLeadBreakdownDto");
|
|
23
|
+
var BrokeredLeadCommissionDto_1 = require("./BrokeredLeadCommissionDto");
|
|
24
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
25
|
+
var SellerBrokeredLeadVerificationDto_1 = require("./SellerBrokeredLeadVerificationDto");
|
|
26
|
+
var MoneyDecimalDto_1 = require("./MoneyDecimalDto");
|
|
27
|
+
/**
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
exports.SellerBrokeredLeadDtoStatusEnum = {
|
|
31
|
+
PENDING_SELLER: 'pending_seller',
|
|
32
|
+
PENDING_SELLER_VERIFICATION: 'pending_seller_verification',
|
|
33
|
+
APPROVED: 'approved',
|
|
34
|
+
DECLINED: 'declined',
|
|
35
|
+
CANCELLED: 'cancelled'
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SellerBrokeredLeadDto interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfSellerBrokeredLeadDto(value) {
|
|
41
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('domainName' in value) || value['domainName'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('brokerName' in value) || value['brokerName'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('askingPrice' in value) || value['askingPrice'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('commission' in value) || value['commission'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('sellerProceeds' in value) || value['sellerProceeds'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('breakdown' in value) || value['breakdown'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('verification' in value) || value['verification'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('declineReason' in value) || value['declineReason'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('approvedAt' in value) || value['approvedAt'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
function SellerBrokeredLeadDtoFromJSON(json) {
|
|
68
|
+
return SellerBrokeredLeadDtoFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function SellerBrokeredLeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'id': json['id'],
|
|
76
|
+
'domainName': json['domainName'],
|
|
77
|
+
'status': json['status'],
|
|
78
|
+
'brokerName': json['brokerName'],
|
|
79
|
+
'askingPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['askingPrice']),
|
|
80
|
+
'commission': (0, BrokeredLeadCommissionDto_1.BrokeredLeadCommissionDtoFromJSON)(json['commission']),
|
|
81
|
+
'sellerProceeds': (0, MoneyDecimalDto_1.MoneyDecimalDtoFromJSON)(json['sellerProceeds']),
|
|
82
|
+
'breakdown': (0, BrokeredLeadBreakdownDto_1.BrokeredLeadBreakdownDtoFromJSON)(json['breakdown']),
|
|
83
|
+
'verification': (0, SellerBrokeredLeadVerificationDto_1.SellerBrokeredLeadVerificationDtoFromJSON)(json['verification']),
|
|
84
|
+
'declineReason': json['declineReason'],
|
|
85
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
86
|
+
'approvedAt': (json['approvedAt'] == null ? null : new Date(json['approvedAt'])),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function SellerBrokeredLeadDtoToJSON(json) {
|
|
90
|
+
return SellerBrokeredLeadDtoToJSONTyped(json, false);
|
|
91
|
+
}
|
|
92
|
+
function SellerBrokeredLeadDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
93
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
94
|
+
if (value == null) {
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
'id': value['id'],
|
|
99
|
+
'domainName': value['domainName'],
|
|
100
|
+
'status': value['status'],
|
|
101
|
+
'brokerName': value['brokerName'],
|
|
102
|
+
'askingPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['askingPrice']),
|
|
103
|
+
'commission': (0, BrokeredLeadCommissionDto_1.BrokeredLeadCommissionDtoToJSON)(value['commission']),
|
|
104
|
+
'sellerProceeds': (0, MoneyDecimalDto_1.MoneyDecimalDtoToJSON)(value['sellerProceeds']),
|
|
105
|
+
'breakdown': (0, BrokeredLeadBreakdownDto_1.BrokeredLeadBreakdownDtoToJSON)(value['breakdown']),
|
|
106
|
+
'verification': (0, SellerBrokeredLeadVerificationDto_1.SellerBrokeredLeadVerificationDtoToJSON)(value['verification']),
|
|
107
|
+
'declineReason': value['declineReason'],
|
|
108
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
109
|
+
'approvedAt': (value['approvedAt'] == null ? null : value['approvedAt'].toISOString()),
|
|
110
|
+
};
|
|
111
|
+
}
|