@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
|
@@ -67,6 +67,12 @@ export interface CustomerSuccessListAccountMetricsDto {
|
|
|
67
67
|
* @memberof CustomerSuccessListAccountMetricsDto
|
|
68
68
|
*/
|
|
69
69
|
pointingDomainsNumber: number;
|
|
70
|
+
/**
|
|
71
|
+
* Number of verified domains.
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof CustomerSuccessListAccountMetricsDto
|
|
74
|
+
*/
|
|
75
|
+
verifiedDomainsNumber: number;
|
|
70
76
|
/**
|
|
71
77
|
* Number of pending challenges to collect.
|
|
72
78
|
* @type {number}
|
|
@@ -93,6 +99,7 @@ export function instanceOfCustomerSuccessListAccountMetricsDto(value: object): v
|
|
|
93
99
|
if (!('soldDomainsNumber' in value) || value['soldDomainsNumber'] === undefined) return false;
|
|
94
100
|
if (!('referralsNumber' in value) || value['referralsNumber'] === undefined) return false;
|
|
95
101
|
if (!('pointingDomainsNumber' in value) || value['pointingDomainsNumber'] === undefined) return false;
|
|
102
|
+
if (!('verifiedDomainsNumber' in value) || value['verifiedDomainsNumber'] === undefined) return false;
|
|
96
103
|
if (!('pendingChallengesToCollectNumber' in value) || value['pendingChallengesToCollectNumber'] === undefined) return false;
|
|
97
104
|
if (!('salesRatio' in value) || value['salesRatio'] === undefined) return false;
|
|
98
105
|
return true;
|
|
@@ -116,6 +123,7 @@ export function CustomerSuccessListAccountMetricsDtoFromJSONTyped(json: any, ign
|
|
|
116
123
|
'soldDomainsNumber': json['soldDomainsNumber'],
|
|
117
124
|
'referralsNumber': json['referralsNumber'],
|
|
118
125
|
'pointingDomainsNumber': json['pointingDomainsNumber'],
|
|
126
|
+
'verifiedDomainsNumber': json['verifiedDomainsNumber'],
|
|
119
127
|
'pendingChallengesToCollectNumber': json['pendingChallengesToCollectNumber'],
|
|
120
128
|
'salesRatio': json['salesRatio'],
|
|
121
129
|
};
|
|
@@ -140,6 +148,7 @@ export function CustomerSuccessListAccountMetricsDtoToJSONTyped(value?: Customer
|
|
|
140
148
|
'soldDomainsNumber': value['soldDomainsNumber'],
|
|
141
149
|
'referralsNumber': value['referralsNumber'],
|
|
142
150
|
'pointingDomainsNumber': value['pointingDomainsNumber'],
|
|
151
|
+
'verifiedDomainsNumber': value['verifiedDomainsNumber'],
|
|
143
152
|
'pendingChallengesToCollectNumber': value['pendingChallengesToCollectNumber'],
|
|
144
153
|
'salesRatio': value['salesRatio'],
|
|
145
154
|
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DeclineBrokeredLeadInput
|
|
20
|
+
*/
|
|
21
|
+
export interface DeclineBrokeredLeadInput {
|
|
22
|
+
/**
|
|
23
|
+
* Why the seller declines; shared with the broker.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DeclineBrokeredLeadInput
|
|
26
|
+
*/
|
|
27
|
+
reason?: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the DeclineBrokeredLeadInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfDeclineBrokeredLeadInput(value: object): value is DeclineBrokeredLeadInput {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function DeclineBrokeredLeadInputFromJSON(json: any): DeclineBrokeredLeadInput {
|
|
38
|
+
return DeclineBrokeredLeadInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function DeclineBrokeredLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeclineBrokeredLeadInput {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function DeclineBrokeredLeadInputToJSON(json: any): DeclineBrokeredLeadInput {
|
|
52
|
+
return DeclineBrokeredLeadInputToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function DeclineBrokeredLeadInputToJSONTyped(value?: DeclineBrokeredLeadInput | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'reason': value['reason'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -99,6 +99,7 @@ export const FeatureFlagListItemDtoNameEnum = {
|
|
|
99
99
|
LEAD_ENRICHMENT: 'LEAD_ENRICHMENT',
|
|
100
100
|
LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
|
|
101
101
|
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
102
|
+
BROKER_PROGRAM: 'BROKER_PROGRAM',
|
|
102
103
|
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
|
|
103
104
|
BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK',
|
|
104
105
|
MFA_ENFORCED_FOR_STAFF: 'MFA_ENFORCED_FOR_STAFF',
|
package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts
CHANGED
|
@@ -129,6 +129,18 @@ export interface IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
|
|
|
129
129
|
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
130
130
|
*/
|
|
131
131
|
canSell: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Whether the account can bring in brokered deals: brokerage is switched on and the account is verified.
|
|
134
|
+
* @type {boolean}
|
|
135
|
+
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
136
|
+
*/
|
|
137
|
+
canBroker: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Whether the account can see the onboarding.
|
|
140
|
+
* @type {boolean}
|
|
141
|
+
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
142
|
+
*/
|
|
143
|
+
canSeeOnboarding: boolean;
|
|
132
144
|
/**
|
|
133
145
|
* Account settings.
|
|
134
146
|
* @type {WithSettingsInner}
|
|
@@ -185,6 +197,7 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
|
|
|
185
197
|
LEAD_ENRICHMENT: 'LEAD_ENRICHMENT',
|
|
186
198
|
LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
|
|
187
199
|
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
200
|
+
BROKER_PROGRAM: 'BROKER_PROGRAM',
|
|
188
201
|
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
|
|
189
202
|
BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK',
|
|
190
203
|
MFA_ENFORCED_FOR_STAFF: 'MFA_ENFORCED_FOR_STAFF',
|
|
@@ -207,6 +220,8 @@ export function instanceOfIntersectionAccountDtoWithSettingsDtoWithNotifications
|
|
|
207
220
|
if (!('leaseToOwnKickbackPercentage' in value) || value['leaseToOwnKickbackPercentage'] === undefined) return false;
|
|
208
221
|
if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined) return false;
|
|
209
222
|
if (!('canSell' in value) || value['canSell'] === undefined) return false;
|
|
223
|
+
if (!('canBroker' in value) || value['canBroker'] === undefined) return false;
|
|
224
|
+
if (!('canSeeOnboarding' in value) || value['canSeeOnboarding'] === undefined) return false;
|
|
210
225
|
if (!('settings' in value) || value['settings'] === undefined) return false;
|
|
211
226
|
if (!('notifications' in value) || value['notifications'] === undefined) return false;
|
|
212
227
|
if (!('enabledFeatures' in value) || value['enabledFeatures'] === undefined) return false;
|
|
@@ -233,6 +248,8 @@ export function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFea
|
|
|
233
248
|
'leaseToOwnKickbackPercentage': json['leaseToOwnKickbackPercentage'],
|
|
234
249
|
'challengeRewardBalance': ChallengeRewardBalanceDtoFromJSON(json['challengeRewardBalance']),
|
|
235
250
|
'canSell': json['canSell'],
|
|
251
|
+
'canBroker': json['canBroker'],
|
|
252
|
+
'canSeeOnboarding': json['canSeeOnboarding'],
|
|
236
253
|
'settings': WithSettingsInnerFromJSON(json['settings']),
|
|
237
254
|
'notifications': ((json['notifications'] as Array<any>).map(AccountNotificationDtoFromJSON)),
|
|
238
255
|
'enabledFeatures': json['enabledFeatures'],
|
|
@@ -260,6 +277,8 @@ export function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFea
|
|
|
260
277
|
'leaseToOwnKickbackPercentage': value['leaseToOwnKickbackPercentage'],
|
|
261
278
|
'challengeRewardBalance': ChallengeRewardBalanceDtoToJSON(value['challengeRewardBalance']),
|
|
262
279
|
'canSell': value['canSell'],
|
|
280
|
+
'canBroker': value['canBroker'],
|
|
281
|
+
'canSeeOnboarding': value['canSeeOnboarding'],
|
|
263
282
|
'settings': WithSettingsInnerToJSON(value['settings']),
|
|
264
283
|
'notifications': ((value['notifications'] as Array<any>).map(AccountNotificationDtoToJSON)),
|
|
265
284
|
'enabledFeatures': value['enabledFeatures'],
|
|
@@ -275,7 +275,7 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
275
275
|
*/
|
|
276
276
|
leadVerification: LeadVerificationSettingsDto;
|
|
277
277
|
/**
|
|
278
|
-
*
|
|
278
|
+
* Always null. Whether another account claims the domain is told by `hijackerId`; that account itself is not shown.
|
|
279
279
|
* @type {AccountDto}
|
|
280
280
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
281
281
|
*/
|
package/src/models/InvoiceDto.ts
CHANGED
|
@@ -121,6 +121,12 @@ export interface InvoiceDto {
|
|
|
121
121
|
* @memberof InvoiceDto
|
|
122
122
|
*/
|
|
123
123
|
isAffiliateCommission: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Whether this is the invoice a broker issues for a brokered sale commission.
|
|
126
|
+
* @type {boolean}
|
|
127
|
+
* @memberof InvoiceDto
|
|
128
|
+
*/
|
|
129
|
+
isBrokerCommission: boolean;
|
|
124
130
|
/**
|
|
125
131
|
* Buyer email (only for buyer-target invoices).
|
|
126
132
|
* @type {string}
|
|
@@ -185,6 +191,7 @@ export function instanceOfInvoiceDto(value: object): value is InvoiceDto {
|
|
|
185
191
|
if (!('parent' in value) || value['parent'] === undefined) return false;
|
|
186
192
|
if (!('hasChildren' in value) || value['hasChildren'] === undefined) return false;
|
|
187
193
|
if (!('isAffiliateCommission' in value) || value['isAffiliateCommission'] === undefined) return false;
|
|
194
|
+
if (!('isBrokerCommission' in value) || value['isBrokerCommission'] === undefined) return false;
|
|
188
195
|
if (!('buyerEmail' in value) || value['buyerEmail'] === undefined) return false;
|
|
189
196
|
if (!('transaction' in value) || value['transaction'] === undefined) return false;
|
|
190
197
|
if (!('payoutDueAt' in value) || value['payoutDueAt'] === undefined) return false;
|
|
@@ -213,6 +220,7 @@ export function InvoiceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
213
220
|
'parent': json['parent'],
|
|
214
221
|
'hasChildren': json['hasChildren'],
|
|
215
222
|
'isAffiliateCommission': json['isAffiliateCommission'],
|
|
223
|
+
'isBrokerCommission': json['isBrokerCommission'],
|
|
216
224
|
'buyerEmail': json['buyerEmail'],
|
|
217
225
|
'transaction': InvoiceDtoTransactionFromJSON(json['transaction']),
|
|
218
226
|
'payoutDueAt': (json['payoutDueAt'] == null ? null : new Date(json['payoutDueAt'])),
|
|
@@ -242,6 +250,7 @@ export function InvoiceDtoToJSONTyped(value?: InvoiceDto | null, ignoreDiscrimin
|
|
|
242
250
|
'parent': value['parent'],
|
|
243
251
|
'hasChildren': value['hasChildren'],
|
|
244
252
|
'isAffiliateCommission': value['isAffiliateCommission'],
|
|
253
|
+
'isBrokerCommission': value['isBrokerCommission'],
|
|
245
254
|
'buyerEmail': value['buyerEmail'],
|
|
246
255
|
'transaction': InvoiceDtoTransactionToJSON(value['transaction']),
|
|
247
256
|
'payoutDueAt': (value['payoutDueAt'] == null ? null : (value['payoutDueAt'] as any).toISOString()),
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { BrokeredLeadBreakdownDto } from './BrokeredLeadBreakdownDto';
|
|
17
|
+
import {
|
|
18
|
+
BrokeredLeadBreakdownDtoFromJSON,
|
|
19
|
+
BrokeredLeadBreakdownDtoFromJSONTyped,
|
|
20
|
+
BrokeredLeadBreakdownDtoToJSON,
|
|
21
|
+
BrokeredLeadBreakdownDtoToJSONTyped,
|
|
22
|
+
} from './BrokeredLeadBreakdownDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LeadBrokeredDealDto
|
|
28
|
+
*/
|
|
29
|
+
export interface LeadBrokeredDealDto {
|
|
30
|
+
/**
|
|
31
|
+
* Name of the broker who brought the deal.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LeadBrokeredDealDto
|
|
34
|
+
*/
|
|
35
|
+
brokerName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {BrokeredLeadBreakdownDto}
|
|
39
|
+
* @memberof LeadBrokeredDealDto
|
|
40
|
+
*/
|
|
41
|
+
breakdown: BrokeredLeadBreakdownDto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the LeadBrokeredDealDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfLeadBrokeredDealDto(value: object): value is LeadBrokeredDealDto {
|
|
48
|
+
if (!('brokerName' in value) || value['brokerName'] === undefined) return false;
|
|
49
|
+
if (!('breakdown' in value) || value['breakdown'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function LeadBrokeredDealDtoFromJSON(json: any): LeadBrokeredDealDto {
|
|
54
|
+
return LeadBrokeredDealDtoFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function LeadBrokeredDealDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadBrokeredDealDto {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'brokerName': json['brokerName'],
|
|
64
|
+
'breakdown': BrokeredLeadBreakdownDtoFromJSON(json['breakdown']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function LeadBrokeredDealDtoToJSON(json: any): LeadBrokeredDealDto {
|
|
69
|
+
return LeadBrokeredDealDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function LeadBrokeredDealDtoToJSONTyped(value?: LeadBrokeredDealDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'brokerName': value['brokerName'],
|
|
80
|
+
'breakdown': BrokeredLeadBreakdownDtoToJSON(value['breakdown']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -67,6 +67,12 @@ export interface ListAccountMetricsDto {
|
|
|
67
67
|
* @memberof ListAccountMetricsDto
|
|
68
68
|
*/
|
|
69
69
|
pointingDomainsNumber: number;
|
|
70
|
+
/**
|
|
71
|
+
* Number of verified domains.
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof ListAccountMetricsDto
|
|
74
|
+
*/
|
|
75
|
+
verifiedDomainsNumber: number;
|
|
70
76
|
/**
|
|
71
77
|
* Number of pending challenges to collect.
|
|
72
78
|
* @type {number}
|
|
@@ -93,6 +99,7 @@ export function instanceOfListAccountMetricsDto(value: object): value is ListAcc
|
|
|
93
99
|
if (!('soldDomainsNumber' in value) || value['soldDomainsNumber'] === undefined) return false;
|
|
94
100
|
if (!('referralsNumber' in value) || value['referralsNumber'] === undefined) return false;
|
|
95
101
|
if (!('pointingDomainsNumber' in value) || value['pointingDomainsNumber'] === undefined) return false;
|
|
102
|
+
if (!('verifiedDomainsNumber' in value) || value['verifiedDomainsNumber'] === undefined) return false;
|
|
96
103
|
if (!('pendingChallengesToCollectNumber' in value) || value['pendingChallengesToCollectNumber'] === undefined) return false;
|
|
97
104
|
if (!('salesRatio' in value) || value['salesRatio'] === undefined) return false;
|
|
98
105
|
return true;
|
|
@@ -116,6 +123,7 @@ export function ListAccountMetricsDtoFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
116
123
|
'soldDomainsNumber': json['soldDomainsNumber'],
|
|
117
124
|
'referralsNumber': json['referralsNumber'],
|
|
118
125
|
'pointingDomainsNumber': json['pointingDomainsNumber'],
|
|
126
|
+
'verifiedDomainsNumber': json['verifiedDomainsNumber'],
|
|
119
127
|
'pendingChallengesToCollectNumber': json['pendingChallengesToCollectNumber'],
|
|
120
128
|
'salesRatio': json['salesRatio'],
|
|
121
129
|
};
|
|
@@ -140,6 +148,7 @@ export function ListAccountMetricsDtoToJSONTyped(value?: ListAccountMetricsDto |
|
|
|
140
148
|
'soldDomainsNumber': value['soldDomainsNumber'],
|
|
141
149
|
'referralsNumber': value['referralsNumber'],
|
|
142
150
|
'pointingDomainsNumber': value['pointingDomainsNumber'],
|
|
151
|
+
'verifiedDomainsNumber': value['verifiedDomainsNumber'],
|
|
143
152
|
'pendingChallengesToCollectNumber': value['pendingChallengesToCollectNumber'],
|
|
144
153
|
'salesRatio': value['salesRatio'],
|
|
145
154
|
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
PaginateResponseLinksToJSONTyped,
|
|
22
|
+
} from './PaginateResponseLinks';
|
|
23
|
+
import type { BrokerBrokeredLeadDto } from './BrokerBrokeredLeadDto';
|
|
24
|
+
import {
|
|
25
|
+
BrokerBrokeredLeadDtoFromJSON,
|
|
26
|
+
BrokerBrokeredLeadDtoFromJSONTyped,
|
|
27
|
+
BrokerBrokeredLeadDtoToJSON,
|
|
28
|
+
BrokerBrokeredLeadDtoToJSONTyped,
|
|
29
|
+
} from './BrokerBrokeredLeadDto';
|
|
30
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
31
|
+
import {
|
|
32
|
+
PaginateResponseMetaFromJSON,
|
|
33
|
+
PaginateResponseMetaFromJSONTyped,
|
|
34
|
+
PaginateResponseMetaToJSON,
|
|
35
|
+
PaginateResponseMetaToJSONTyped,
|
|
36
|
+
} from './PaginateResponseMeta';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface ListBrokerLeads200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface ListBrokerLeads200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<BrokerBrokeredLeadDto>}
|
|
47
|
+
* @memberof ListBrokerLeads200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<BrokerBrokeredLeadDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof ListBrokerLeads200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof ListBrokerLeads200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the ListBrokerLeads200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfListBrokerLeads200Response(value: object): value is ListBrokerLeads200Response {
|
|
68
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
69
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
70
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ListBrokerLeads200ResponseFromJSON(json: any): ListBrokerLeads200Response {
|
|
75
|
+
return ListBrokerLeads200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ListBrokerLeads200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListBrokerLeads200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(BrokerBrokeredLeadDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ListBrokerLeads200ResponseToJSON(json: any): ListBrokerLeads200Response {
|
|
91
|
+
return ListBrokerLeads200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ListBrokerLeads200ResponseToJSONTyped(value?: ListBrokerLeads200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'data': ((value['data'] as Array<any>).map(BrokerBrokeredLeadDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
LeadMessageDataToJSON,
|
|
28
28
|
LeadMessageDataToJSONTyped,
|
|
29
29
|
} from './LeadMessageData';
|
|
30
|
+
import type { LeadBrokeredDealDto } from './LeadBrokeredDealDto';
|
|
31
|
+
import {
|
|
32
|
+
LeadBrokeredDealDtoFromJSON,
|
|
33
|
+
LeadBrokeredDealDtoFromJSONTyped,
|
|
34
|
+
LeadBrokeredDealDtoToJSON,
|
|
35
|
+
LeadBrokeredDealDtoToJSONTyped,
|
|
36
|
+
} from './LeadBrokeredDealDto';
|
|
30
37
|
import type { LeadDomainDto } from './LeadDomainDto';
|
|
31
38
|
import {
|
|
32
39
|
LeadDomainDtoFromJSON,
|
|
@@ -261,6 +268,12 @@ export interface ListLeadsResultItem {
|
|
|
261
268
|
* @memberof ListLeadsResultItem
|
|
262
269
|
*/
|
|
263
270
|
isMutedForSeller: boolean;
|
|
271
|
+
/**
|
|
272
|
+
* The broker deal the lead comes from, if any.
|
|
273
|
+
* @type {LeadBrokeredDealDto}
|
|
274
|
+
* @memberof ListLeadsResultItem
|
|
275
|
+
*/
|
|
276
|
+
brokeredDeal: LeadBrokeredDealDto | null;
|
|
264
277
|
}
|
|
265
278
|
|
|
266
279
|
|
|
@@ -371,6 +384,7 @@ export function instanceOfListLeadsResultItem(value: object): value is ListLeads
|
|
|
371
384
|
if (!('lastMessageData' in value) || value['lastMessageData'] === undefined) return false;
|
|
372
385
|
if (!('lastMessageDate' in value) || value['lastMessageDate'] === undefined) return false;
|
|
373
386
|
if (!('isMutedForSeller' in value) || value['isMutedForSeller'] === undefined) return false;
|
|
387
|
+
if (!('brokeredDeal' in value) || value['brokeredDeal'] === undefined) return false;
|
|
374
388
|
return true;
|
|
375
389
|
}
|
|
376
390
|
|
|
@@ -416,6 +430,7 @@ export function ListLeadsResultItemFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
416
430
|
'lastMessageData': LeadMessageDataFromJSON(json['lastMessageData']),
|
|
417
431
|
'lastMessageDate': (new Date(json['lastMessageDate'])),
|
|
418
432
|
'isMutedForSeller': json['isMutedForSeller'],
|
|
433
|
+
'brokeredDeal': LeadBrokeredDealDtoFromJSON(json['brokeredDeal']),
|
|
419
434
|
};
|
|
420
435
|
}
|
|
421
436
|
|
|
@@ -462,6 +477,7 @@ export function ListLeadsResultItemToJSONTyped(value?: ListLeadsResultItem | nul
|
|
|
462
477
|
'lastMessageData': LeadMessageDataToJSON(value['lastMessageData']),
|
|
463
478
|
'lastMessageDate': ((value['lastMessageDate']).toISOString()),
|
|
464
479
|
'isMutedForSeller': value['isMutedForSeller'],
|
|
480
|
+
'brokeredDeal': LeadBrokeredDealDtoToJSON(value['brokeredDeal']),
|
|
465
481
|
};
|
|
466
482
|
}
|
|
467
483
|
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LeadBrokeredDealDto } from './LeadBrokeredDealDto';
|
|
17
|
+
import {
|
|
18
|
+
LeadBrokeredDealDtoFromJSON,
|
|
19
|
+
LeadBrokeredDealDtoFromJSONTyped,
|
|
20
|
+
LeadBrokeredDealDtoToJSON,
|
|
21
|
+
LeadBrokeredDealDtoToJSONTyped,
|
|
22
|
+
} from './LeadBrokeredDealDto';
|
|
16
23
|
import type { ManualLeadBuyerDto } from './ManualLeadBuyerDto';
|
|
17
24
|
import {
|
|
18
25
|
ManualLeadBuyerDtoFromJSON,
|
|
@@ -232,6 +239,12 @@ export interface ManualLeadDetails {
|
|
|
232
239
|
* @memberof ManualLeadDetails
|
|
233
240
|
*/
|
|
234
241
|
domainLockConfiguration: DomainLockConfigurationDto;
|
|
242
|
+
/**
|
|
243
|
+
* The broker deal the lead comes from, if any.
|
|
244
|
+
* @type {LeadBrokeredDealDto}
|
|
245
|
+
* @memberof ManualLeadDetails
|
|
246
|
+
*/
|
|
247
|
+
brokeredDeal: LeadBrokeredDealDto | null;
|
|
235
248
|
}
|
|
236
249
|
|
|
237
250
|
|
|
@@ -312,6 +325,7 @@ export function instanceOfManualLeadDetails(value: object): value is ManualLeadD
|
|
|
312
325
|
if (!('awaitingSellerFirstMessage' in value) || value['awaitingSellerFirstMessage'] === undefined) return false;
|
|
313
326
|
if (!('buyer' in value) || value['buyer'] === undefined) return false;
|
|
314
327
|
if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined) return false;
|
|
328
|
+
if (!('brokeredDeal' in value) || value['brokeredDeal'] === undefined) return false;
|
|
315
329
|
return true;
|
|
316
330
|
}
|
|
317
331
|
|
|
@@ -351,6 +365,7 @@ export function ManualLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
351
365
|
'awaitingSellerFirstMessage': json['awaitingSellerFirstMessage'],
|
|
352
366
|
'buyer': ManualLeadBuyerDtoFromJSON(json['buyer']),
|
|
353
367
|
'domainLockConfiguration': DomainLockConfigurationDtoFromJSON(json['domainLockConfiguration']),
|
|
368
|
+
'brokeredDeal': LeadBrokeredDealDtoFromJSON(json['brokeredDeal']),
|
|
354
369
|
};
|
|
355
370
|
}
|
|
356
371
|
|
|
@@ -391,6 +406,7 @@ export function ManualLeadDetailsToJSONTyped(value?: ManualLeadDetails | null, i
|
|
|
391
406
|
'awaitingSellerFirstMessage': value['awaitingSellerFirstMessage'],
|
|
392
407
|
'buyer': ManualLeadBuyerDtoToJSON(value['buyer']),
|
|
393
408
|
'domainLockConfiguration': DomainLockConfigurationDtoToJSON(value['domainLockConfiguration']),
|
|
409
|
+
'brokeredDeal': LeadBrokeredDealDtoToJSON(value['brokeredDeal']),
|
|
394
410
|
};
|
|
395
411
|
}
|
|
396
412
|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OverrideBrokeredLeadNameshiftCommissionInput
|
|
20
|
+
*/
|
|
21
|
+
export interface OverrideBrokeredLeadNameshiftCommissionInput {
|
|
22
|
+
/**
|
|
23
|
+
* Platform fee charged to the broker, as a percentage of the sale price.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof OverrideBrokeredLeadNameshiftCommissionInput
|
|
26
|
+
*/
|
|
27
|
+
percentage: number;
|
|
28
|
+
/**
|
|
29
|
+
* Why this deal gets a custom fee; kept with the deal.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OverrideBrokeredLeadNameshiftCommissionInput
|
|
32
|
+
*/
|
|
33
|
+
reason: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the OverrideBrokeredLeadNameshiftCommissionInput interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfOverrideBrokeredLeadNameshiftCommissionInput(value: object): value is OverrideBrokeredLeadNameshiftCommissionInput {
|
|
40
|
+
if (!('percentage' in value) || value['percentage'] === undefined) return false;
|
|
41
|
+
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function OverrideBrokeredLeadNameshiftCommissionInputFromJSON(json: any): OverrideBrokeredLeadNameshiftCommissionInput {
|
|
46
|
+
return OverrideBrokeredLeadNameshiftCommissionInputFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function OverrideBrokeredLeadNameshiftCommissionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): OverrideBrokeredLeadNameshiftCommissionInput {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'percentage': json['percentage'],
|
|
56
|
+
'reason': json['reason'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function OverrideBrokeredLeadNameshiftCommissionInputToJSON(json: any): OverrideBrokeredLeadNameshiftCommissionInput {
|
|
61
|
+
return OverrideBrokeredLeadNameshiftCommissionInputToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function OverrideBrokeredLeadNameshiftCommissionInputToJSONTyped(value?: OverrideBrokeredLeadNameshiftCommissionInput | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'percentage': value['percentage'],
|
|
72
|
+
'reason': value['reason'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|