@randock/nameshift-api-client 0.0.538 → 0.0.539
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 +6 -0
- package/dist/models/AccountDto.js +4 -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/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 +7 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +5 -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/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 +13 -0
- package/dist/models/PrivateAccountGetMeResponse.js +9 -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 +9 -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/DeclineBrokeredLeadInput.ts +65 -0
- package/src/models/FeatureFlagListItemDto.ts +1 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +10 -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/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 +19 -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,69 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
BrokeredLeadInvitationDto,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
BrokeredLeadInvitationDtoFromJSON,
|
|
22
|
+
BrokeredLeadInvitationDtoToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
export interface BrokeredLeadsPublicApiGetBrokeredLeadInvitationRequest {
|
|
26
|
+
token: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export class BrokeredLeadsPublicApi extends runtime.BaseAPI {
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Returns the domain, broker and price of the deal behind a seller signup link, and whether the link can still be used.
|
|
36
|
+
* Get the deal a seller signup link invites for
|
|
37
|
+
*/
|
|
38
|
+
async getBrokeredLeadInvitationRaw(requestParameters: BrokeredLeadsPublicApiGetBrokeredLeadInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrokeredLeadInvitationDto>> {
|
|
39
|
+
if (requestParameters['token'] == null) {
|
|
40
|
+
throw new runtime.RequiredError(
|
|
41
|
+
'token',
|
|
42
|
+
'Required parameter "token" was null or undefined when calling getBrokeredLeadInvitation().'
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const queryParameters: any = {};
|
|
47
|
+
|
|
48
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
49
|
+
|
|
50
|
+
const response = await this.request({
|
|
51
|
+
path: `/brokered-leads/invitations/{token}`.replace(`{${"token"}}`, encodeURIComponent(String(requestParameters['token']))),
|
|
52
|
+
method: 'GET',
|
|
53
|
+
headers: headerParameters,
|
|
54
|
+
query: queryParameters,
|
|
55
|
+
}, initOverrides);
|
|
56
|
+
|
|
57
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BrokeredLeadInvitationDtoFromJSON(jsonValue));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Returns the domain, broker and price of the deal behind a seller signup link, and whether the link can still be used.
|
|
62
|
+
* Get the deal a seller signup link invites for
|
|
63
|
+
*/
|
|
64
|
+
async getBrokeredLeadInvitation(requestParameters: BrokeredLeadsPublicApiGetBrokeredLeadInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrokeredLeadInvitationDto> {
|
|
65
|
+
const response = await this.getBrokeredLeadInvitationRaw(requestParameters, initOverrides);
|
|
66
|
+
return await response.value();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -8,6 +8,8 @@ export * from './AdminApi';
|
|
|
8
8
|
export * from './AuctionsApi';
|
|
9
9
|
export * from './AuctionsPublicApi';
|
|
10
10
|
export * from './BankAccountsApi';
|
|
11
|
+
export * from './BrokeredLeadsApi';
|
|
12
|
+
export * from './BrokeredLeadsPublicApi';
|
|
11
13
|
export * from './BuyersApi';
|
|
12
14
|
export * from './BuyersPublicApi';
|
|
13
15
|
export * from './ChallengesApi';
|
|
@@ -0,0 +1,73 @@
|
|
|
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 AccountBrokerSettingsInput
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountBrokerSettingsInput {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the account works as a broker. Brokers still need to complete the account verification before they can bring in deals.
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof AccountBrokerSettingsInput
|
|
26
|
+
*/
|
|
27
|
+
enabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* ISO 639-1 codes of the languages the broker works in. Replaces the current list.
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof AccountBrokerSettingsInput
|
|
32
|
+
*/
|
|
33
|
+
spokenLanguages?: Array<string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AccountBrokerSettingsInput interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAccountBrokerSettingsInput(value: object): value is AccountBrokerSettingsInput {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function AccountBrokerSettingsInputFromJSON(json: any): AccountBrokerSettingsInput {
|
|
44
|
+
return AccountBrokerSettingsInputFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function AccountBrokerSettingsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBrokerSettingsInput {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
54
|
+
'spokenLanguages': json['spokenLanguages'] == null ? undefined : json['spokenLanguages'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function AccountBrokerSettingsInputToJSON(json: any): AccountBrokerSettingsInput {
|
|
59
|
+
return AccountBrokerSettingsInputToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AccountBrokerSettingsInputToJSONTyped(value?: AccountBrokerSettingsInput | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'enabled': value['enabled'],
|
|
70
|
+
'spokenLanguages': value['spokenLanguages'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/src/models/AccountDto.ts
CHANGED
|
@@ -115,6 +115,12 @@ export interface AccountDto {
|
|
|
115
115
|
* @memberof AccountDto
|
|
116
116
|
*/
|
|
117
117
|
canSell: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Whether the account can bring in brokered deals: brokerage is switched on and the account is verified.
|
|
120
|
+
* @type {boolean}
|
|
121
|
+
* @memberof AccountDto
|
|
122
|
+
*/
|
|
123
|
+
canBroker: boolean;
|
|
118
124
|
}
|
|
119
125
|
|
|
120
126
|
/**
|
|
@@ -131,6 +137,7 @@ export function instanceOfAccountDto(value: object): value is AccountDto {
|
|
|
131
137
|
if (!('leaseToOwnKickbackPercentage' in value) || value['leaseToOwnKickbackPercentage'] === undefined) return false;
|
|
132
138
|
if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined) return false;
|
|
133
139
|
if (!('canSell' in value) || value['canSell'] === undefined) return false;
|
|
140
|
+
if (!('canBroker' in value) || value['canBroker'] === undefined) return false;
|
|
134
141
|
return true;
|
|
135
142
|
}
|
|
136
143
|
|
|
@@ -154,6 +161,7 @@ export function AccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
154
161
|
'leaseToOwnKickbackPercentage': json['leaseToOwnKickbackPercentage'],
|
|
155
162
|
'challengeRewardBalance': ChallengeRewardBalanceDtoFromJSON(json['challengeRewardBalance']),
|
|
156
163
|
'canSell': json['canSell'],
|
|
164
|
+
'canBroker': json['canBroker'],
|
|
157
165
|
};
|
|
158
166
|
}
|
|
159
167
|
|
|
@@ -178,6 +186,7 @@ export function AccountDtoToJSONTyped(value?: AccountDto | null, ignoreDiscrimin
|
|
|
178
186
|
'leaseToOwnKickbackPercentage': value['leaseToOwnKickbackPercentage'],
|
|
179
187
|
'challengeRewardBalance': ChallengeRewardBalanceDtoToJSON(value['challengeRewardBalance']),
|
|
180
188
|
'canSell': value['canSell'],
|
|
189
|
+
'canBroker': value['canBroker'],
|
|
181
190
|
};
|
|
182
191
|
}
|
|
183
192
|
|
|
@@ -62,7 +62,8 @@ export const AccountNameshiftCommissionBySubtypeDtoSubtypeEnum = {
|
|
|
62
62
|
NOT_POINTING: 'not_pointing',
|
|
63
63
|
ROUTED: 'routed',
|
|
64
64
|
MANUAL_LEAD: 'manual_lead',
|
|
65
|
-
AUCTION: 'auction'
|
|
65
|
+
AUCTION: 'auction',
|
|
66
|
+
BROKERED_LEAD: 'brokered_lead'
|
|
66
67
|
} as const;
|
|
67
68
|
export type AccountNameshiftCommissionBySubtypeDtoSubtypeEnum = typeof AccountNameshiftCommissionBySubtypeDtoSubtypeEnum[keyof typeof AccountNameshiftCommissionBySubtypeDtoSubtypeEnum];
|
|
68
69
|
|
|
@@ -86,7 +86,8 @@ export const AccountNameshiftCommissionItemDtoSubtypeEnum = {
|
|
|
86
86
|
NOT_POINTING: 'not_pointing',
|
|
87
87
|
ROUTED: 'routed',
|
|
88
88
|
MANUAL_LEAD: 'manual_lead',
|
|
89
|
-
AUCTION: 'auction'
|
|
89
|
+
AUCTION: 'auction',
|
|
90
|
+
BROKERED_LEAD: 'brokered_lead'
|
|
90
91
|
} as const;
|
|
91
92
|
export type AccountNameshiftCommissionItemDtoSubtypeEnum = typeof AccountNameshiftCommissionItemDtoSubtypeEnum[keyof typeof AccountNameshiftCommissionItemDtoSubtypeEnum];
|
|
92
93
|
|
|
@@ -132,7 +132,8 @@ export const AccountNameshiftCommissionReasonDtoSubtypeEnum = {
|
|
|
132
132
|
NOT_POINTING: 'not_pointing',
|
|
133
133
|
ROUTED: 'routed',
|
|
134
134
|
MANUAL_LEAD: 'manual_lead',
|
|
135
|
-
AUCTION: 'auction'
|
|
135
|
+
AUCTION: 'auction',
|
|
136
|
+
BROKERED_LEAD: 'brokered_lead'
|
|
136
137
|
} as const;
|
|
137
138
|
export type AccountNameshiftCommissionReasonDtoSubtypeEnum = typeof AccountNameshiftCommissionReasonDtoSubtypeEnum[keyof typeof AccountNameshiftCommissionReasonDtoSubtypeEnum];
|
|
138
139
|
|
|
@@ -73,7 +73,8 @@ export const AccountNotificationDtoTypeEnum = {
|
|
|
73
73
|
ACCOUNT_PAYMENT_PROVIDER_NOT_ACTIVE: 'account.payment_provider.not_active',
|
|
74
74
|
ACCOUNT_PAYMENT_PROVIDER_WAS_CHANGED: 'account.payment_provider.was_changed',
|
|
75
75
|
ACCOUNT_BANK_ACCOUNT_VERIFICATION_REQUIRED: 'account.bank_account.verification_required',
|
|
76
|
-
ACCOUNT_BANK_ACCOUNT_REQUIRED_TO_RECEIVE_PAYOUTS: 'account.bank_account.required_to_receive_payouts'
|
|
76
|
+
ACCOUNT_BANK_ACCOUNT_REQUIRED_TO_RECEIVE_PAYOUTS: 'account.bank_account.required_to_receive_payouts',
|
|
77
|
+
ACCOUNT_BROKERED_LEAD_APPROVAL_REQUIRED: 'account.brokered_lead.approval_required'
|
|
77
78
|
} as const;
|
|
78
79
|
export type AccountNotificationDtoTypeEnum = typeof AccountNotificationDtoTypeEnum[keyof typeof AccountNotificationDtoTypeEnum];
|
|
79
80
|
|
|
@@ -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 AccountSettingsBrokerDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountSettingsBrokerDto {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the account works as a broker.
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof AccountSettingsBrokerDto
|
|
26
|
+
*/
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* ISO 639-1 codes of the languages the broker works in.
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof AccountSettingsBrokerDto
|
|
32
|
+
*/
|
|
33
|
+
spokenLanguages: Array<string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AccountSettingsBrokerDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAccountSettingsBrokerDto(value: object): value is AccountSettingsBrokerDto {
|
|
40
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
41
|
+
if (!('spokenLanguages' in value) || value['spokenLanguages'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AccountSettingsBrokerDtoFromJSON(json: any): AccountSettingsBrokerDto {
|
|
46
|
+
return AccountSettingsBrokerDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AccountSettingsBrokerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsBrokerDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'enabled': json['enabled'],
|
|
56
|
+
'spokenLanguages': json['spokenLanguages'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AccountSettingsBrokerDtoToJSON(json: any): AccountSettingsBrokerDto {
|
|
61
|
+
return AccountSettingsBrokerDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function AccountSettingsBrokerDtoToJSONTyped(value?: AccountSettingsBrokerDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'enabled': value['enabled'],
|
|
72
|
+
'spokenLanguages': value['spokenLanguages'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -41,6 +41,13 @@ import {
|
|
|
41
41
|
AccountSettingsAliasDtoToJSON,
|
|
42
42
|
AccountSettingsAliasDtoToJSONTyped,
|
|
43
43
|
} from './AccountSettingsAliasDto';
|
|
44
|
+
import type { AccountSettingsBrokerDto } from './AccountSettingsBrokerDto';
|
|
45
|
+
import {
|
|
46
|
+
AccountSettingsBrokerDtoFromJSON,
|
|
47
|
+
AccountSettingsBrokerDtoFromJSONTyped,
|
|
48
|
+
AccountSettingsBrokerDtoToJSON,
|
|
49
|
+
AccountSettingsBrokerDtoToJSONTyped,
|
|
50
|
+
} from './AccountSettingsBrokerDto';
|
|
44
51
|
import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
45
52
|
import {
|
|
46
53
|
AccountSettingsLeaseToOwnConfigurationDtoFromJSON,
|
|
@@ -173,6 +180,12 @@ export interface AccountSettingsDto {
|
|
|
173
180
|
* @memberof AccountSettingsDto
|
|
174
181
|
*/
|
|
175
182
|
leadVerification: LeadVerificationSettingsDto;
|
|
183
|
+
/**
|
|
184
|
+
* Brokerage settings: whether the account works as a broker.
|
|
185
|
+
* @type {AccountSettingsBrokerDto}
|
|
186
|
+
* @memberof AccountSettingsDto
|
|
187
|
+
*/
|
|
188
|
+
broker: AccountSettingsBrokerDto;
|
|
176
189
|
/**
|
|
177
190
|
* When the buyer of an information request (a lead opened to ask for the price) may write and make offers: immediately, or only after the seller has written or made an offer.
|
|
178
191
|
* @type {string}
|
|
@@ -224,6 +237,7 @@ export function instanceOfAccountSettingsDto(value: object): value is AccountSet
|
|
|
224
237
|
if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
|
|
225
238
|
if (!('marketplace' in value) || value['marketplace'] === undefined) return false;
|
|
226
239
|
if (!('leadVerification' in value) || value['leadVerification'] === undefined) return false;
|
|
240
|
+
if (!('broker' in value) || value['broker'] === undefined) return false;
|
|
227
241
|
if (!('informationRequestCommunication' in value) || value['informationRequestCommunication'] === undefined) return false;
|
|
228
242
|
return true;
|
|
229
243
|
}
|
|
@@ -253,6 +267,7 @@ export function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
253
267
|
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
|
|
254
268
|
'marketplace': json['marketplace'],
|
|
255
269
|
'leadVerification': LeadVerificationSettingsDtoFromJSON(json['leadVerification']),
|
|
270
|
+
'broker': AccountSettingsBrokerDtoFromJSON(json['broker']),
|
|
256
271
|
'informationRequestCommunication': json['informationRequestCommunication'],
|
|
257
272
|
};
|
|
258
273
|
}
|
|
@@ -283,6 +298,7 @@ export function AccountSettingsDtoToJSONTyped(value?: AccountSettingsDto | null,
|
|
|
283
298
|
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
|
|
284
299
|
'marketplace': value['marketplace'],
|
|
285
300
|
'leadVerification': LeadVerificationSettingsDtoToJSON(value['leadVerification']),
|
|
301
|
+
'broker': AccountSettingsBrokerDtoToJSON(value['broker']),
|
|
286
302
|
'informationRequestCommunication': value['informationRequestCommunication'],
|
|
287
303
|
};
|
|
288
304
|
}
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AccountBrokerSettingsInput } from './AccountBrokerSettingsInput';
|
|
17
|
+
import {
|
|
18
|
+
AccountBrokerSettingsInputFromJSON,
|
|
19
|
+
AccountBrokerSettingsInputFromJSONTyped,
|
|
20
|
+
AccountBrokerSettingsInputToJSON,
|
|
21
|
+
AccountBrokerSettingsInputToJSONTyped,
|
|
22
|
+
} from './AccountBrokerSettingsInput';
|
|
16
23
|
import type { LockConfigurationInput } from './LockConfigurationInput';
|
|
17
24
|
import {
|
|
18
25
|
LockConfigurationInputFromJSON,
|
|
@@ -172,6 +179,12 @@ export interface AccountSettingsInput {
|
|
|
172
179
|
* @memberof AccountSettingsInput
|
|
173
180
|
*/
|
|
174
181
|
leadVerification?: LeadVerificationInput;
|
|
182
|
+
/**
|
|
183
|
+
* Brokerage settings: whether the account works as a broker.
|
|
184
|
+
* @type {AccountBrokerSettingsInput}
|
|
185
|
+
* @memberof AccountSettingsInput
|
|
186
|
+
*/
|
|
187
|
+
broker?: AccountBrokerSettingsInput;
|
|
175
188
|
/**
|
|
176
189
|
* When the buyer of an information request (a lead opened to ask for the price) may write and make offers: immediately, or only after the seller has written or made an offer. Applies to information requests opened after the change.
|
|
177
190
|
* @type {string}
|
|
@@ -237,6 +250,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
237
250
|
'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : LockConfigurationInputFromJSON(json['domainLockConfiguration']),
|
|
238
251
|
'leadOfferExpirationConfiguration': json['leadOfferExpirationConfiguration'] == null ? undefined : LockConfigurationInputFromJSON(json['leadOfferExpirationConfiguration']),
|
|
239
252
|
'leadVerification': json['leadVerification'] == null ? undefined : LeadVerificationInputFromJSON(json['leadVerification']),
|
|
253
|
+
'broker': json['broker'] == null ? undefined : AccountBrokerSettingsInputFromJSON(json['broker']),
|
|
240
254
|
'informationRequestCommunication': json['informationRequestCommunication'] == null ? undefined : json['informationRequestCommunication'],
|
|
241
255
|
};
|
|
242
256
|
}
|
|
@@ -268,6 +282,7 @@ export function AccountSettingsInputToJSONTyped(value?: AccountSettingsInput | n
|
|
|
268
282
|
'domainLockConfiguration': LockConfigurationInputToJSON(value['domainLockConfiguration']),
|
|
269
283
|
'leadOfferExpirationConfiguration': LockConfigurationInputToJSON(value['leadOfferExpirationConfiguration']),
|
|
270
284
|
'leadVerification': LeadVerificationInputToJSON(value['leadVerification']),
|
|
285
|
+
'broker': AccountBrokerSettingsInputToJSON(value['broker']),
|
|
271
286
|
'informationRequestCommunication': value['informationRequestCommunication'],
|
|
272
287
|
};
|
|
273
288
|
}
|