@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,404 @@
|
|
|
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 { BrokeredLeadCommissionDto } from './BrokeredLeadCommissionDto';
|
|
17
|
+
import {
|
|
18
|
+
BrokeredLeadCommissionDtoFromJSON,
|
|
19
|
+
BrokeredLeadCommissionDtoFromJSONTyped,
|
|
20
|
+
BrokeredLeadCommissionDtoToJSON,
|
|
21
|
+
BrokeredLeadCommissionDtoToJSONTyped,
|
|
22
|
+
} from './BrokeredLeadCommissionDto';
|
|
23
|
+
import type { MoneyDto } from './MoneyDto';
|
|
24
|
+
import {
|
|
25
|
+
MoneyDtoFromJSON,
|
|
26
|
+
MoneyDtoFromJSONTyped,
|
|
27
|
+
MoneyDtoToJSON,
|
|
28
|
+
MoneyDtoToJSONTyped,
|
|
29
|
+
} from './MoneyDto';
|
|
30
|
+
import type { MoneyDecimalDto } from './MoneyDecimalDto';
|
|
31
|
+
import {
|
|
32
|
+
MoneyDecimalDtoFromJSON,
|
|
33
|
+
MoneyDecimalDtoFromJSONTyped,
|
|
34
|
+
MoneyDecimalDtoToJSON,
|
|
35
|
+
MoneyDecimalDtoToJSONTyped,
|
|
36
|
+
} from './MoneyDecimalDto';
|
|
37
|
+
import type { BrokeredLeadBuyerContactDto } from './BrokeredLeadBuyerContactDto';
|
|
38
|
+
import {
|
|
39
|
+
BrokeredLeadBuyerContactDtoFromJSON,
|
|
40
|
+
BrokeredLeadBuyerContactDtoFromJSONTyped,
|
|
41
|
+
BrokeredLeadBuyerContactDtoToJSON,
|
|
42
|
+
BrokeredLeadBuyerContactDtoToJSONTyped,
|
|
43
|
+
} from './BrokeredLeadBuyerContactDto';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface AdminBrokeredLeadDto
|
|
49
|
+
*/
|
|
50
|
+
export interface AdminBrokeredLeadDto {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof AdminBrokeredLeadDto
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof AdminBrokeredLeadDto
|
|
61
|
+
*/
|
|
62
|
+
domainName: string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof AdminBrokeredLeadDto
|
|
67
|
+
*/
|
|
68
|
+
status: AdminBrokeredLeadDtoStatusEnum;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {MoneyDto}
|
|
72
|
+
* @memberof AdminBrokeredLeadDto
|
|
73
|
+
*/
|
|
74
|
+
askingPrice: MoneyDto;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {BrokeredLeadCommissionDto}
|
|
78
|
+
* @memberof AdminBrokeredLeadDto
|
|
79
|
+
*/
|
|
80
|
+
commission: BrokeredLeadCommissionDto;
|
|
81
|
+
/**
|
|
82
|
+
* Nameshift platform fee charged to the broker, as a percentage of the sale price.
|
|
83
|
+
* @type {number}
|
|
84
|
+
* @memberof AdminBrokeredLeadDto
|
|
85
|
+
*/
|
|
86
|
+
nameshiftCommissionPercentage: number;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {MoneyDecimalDto}
|
|
90
|
+
* @memberof AdminBrokeredLeadDto
|
|
91
|
+
*/
|
|
92
|
+
nameshiftFee: MoneyDecimalDto;
|
|
93
|
+
/**
|
|
94
|
+
* What the broker is paid: the commission less the fee.
|
|
95
|
+
* @type {MoneyDecimalDto}
|
|
96
|
+
* @memberof AdminBrokeredLeadDto
|
|
97
|
+
*/
|
|
98
|
+
netPayout: MoneyDecimalDto;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {BrokeredLeadBuyerContactDto}
|
|
102
|
+
* @memberof AdminBrokeredLeadDto
|
|
103
|
+
*/
|
|
104
|
+
buyer: BrokeredLeadBuyerContactDto;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof AdminBrokeredLeadDto
|
|
109
|
+
*/
|
|
110
|
+
sellerEmail: string | null;
|
|
111
|
+
/**
|
|
112
|
+
* Whether the deal waits in a seller account: the one that verified the domain, or the one that took up the link.
|
|
113
|
+
* @type {boolean}
|
|
114
|
+
* @memberof AdminBrokeredLeadDto
|
|
115
|
+
*/
|
|
116
|
+
sellerLinked: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* The link for a seller who has not taken up the deal yet, while it is valid: a new seller signs up through it, one with an account takes it up.
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof AdminBrokeredLeadDto
|
|
121
|
+
*/
|
|
122
|
+
sellerSignupUrl: string | null;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {Date}
|
|
126
|
+
* @memberof AdminBrokeredLeadDto
|
|
127
|
+
*/
|
|
128
|
+
sellerSignupUrlExpiresAt: Date | null;
|
|
129
|
+
/**
|
|
130
|
+
* Where a seller with an account reviews the deal.
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof AdminBrokeredLeadDto
|
|
133
|
+
*/
|
|
134
|
+
sellerReviewUrl: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* Where the buyer pays, once the deal is ready for payment.
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof AdminBrokeredLeadDto
|
|
139
|
+
*/
|
|
140
|
+
paymentUrl: string | null;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {Date}
|
|
144
|
+
* @memberof AdminBrokeredLeadDto
|
|
145
|
+
*/
|
|
146
|
+
sellerNotifiedAt: Date | null;
|
|
147
|
+
/**
|
|
148
|
+
* When the seller can be emailed again.
|
|
149
|
+
* @type {Date}
|
|
150
|
+
* @memberof AdminBrokeredLeadDto
|
|
151
|
+
*/
|
|
152
|
+
nextSellerNotificationAt: Date | null;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @type {boolean}
|
|
156
|
+
* @memberof AdminBrokeredLeadDto
|
|
157
|
+
*/
|
|
158
|
+
canNotifySeller: boolean;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {Date}
|
|
162
|
+
* @memberof AdminBrokeredLeadDto
|
|
163
|
+
*/
|
|
164
|
+
buyerNotifiedAt: Date | null;
|
|
165
|
+
/**
|
|
166
|
+
* When the buyer can be emailed again.
|
|
167
|
+
* @type {Date}
|
|
168
|
+
* @memberof AdminBrokeredLeadDto
|
|
169
|
+
*/
|
|
170
|
+
nextBuyerNotificationAt: Date | null;
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @type {boolean}
|
|
174
|
+
* @memberof AdminBrokeredLeadDto
|
|
175
|
+
*/
|
|
176
|
+
canNotifyBuyer: boolean;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @type {string}
|
|
180
|
+
* @memberof AdminBrokeredLeadDto
|
|
181
|
+
*/
|
|
182
|
+
declineReason: string | null;
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @type {Date}
|
|
186
|
+
* @memberof AdminBrokeredLeadDto
|
|
187
|
+
*/
|
|
188
|
+
createdAt: Date;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @type {Date}
|
|
192
|
+
* @memberof AdminBrokeredLeadDto
|
|
193
|
+
*/
|
|
194
|
+
updatedAt: Date;
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @type {string}
|
|
198
|
+
* @memberof AdminBrokeredLeadDto
|
|
199
|
+
*/
|
|
200
|
+
internalStatus: AdminBrokeredLeadDtoInternalStatusEnum;
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @type {string}
|
|
204
|
+
* @memberof AdminBrokeredLeadDto
|
|
205
|
+
*/
|
|
206
|
+
brokerAccountId: string;
|
|
207
|
+
/**
|
|
208
|
+
* Null once the broker deleted their account.
|
|
209
|
+
* @type {string}
|
|
210
|
+
* @memberof AdminBrokeredLeadDto
|
|
211
|
+
*/
|
|
212
|
+
brokerName: string | null;
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @type {string}
|
|
216
|
+
* @memberof AdminBrokeredLeadDto
|
|
217
|
+
*/
|
|
218
|
+
sellerAccountId: string | null;
|
|
219
|
+
/**
|
|
220
|
+
*
|
|
221
|
+
* @type {string}
|
|
222
|
+
* @memberof AdminBrokeredLeadDto
|
|
223
|
+
*/
|
|
224
|
+
sellerName: string | null;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @type {string}
|
|
228
|
+
* @memberof AdminBrokeredLeadDto
|
|
229
|
+
*/
|
|
230
|
+
leadId: string | null;
|
|
231
|
+
/**
|
|
232
|
+
* Where the platform fee percentage comes from.
|
|
233
|
+
* @type {object}
|
|
234
|
+
* @memberof AdminBrokeredLeadDto
|
|
235
|
+
*/
|
|
236
|
+
nameshiftCommissionReason: object | null;
|
|
237
|
+
/**
|
|
238
|
+
* Whether the platform fee can still be overridden.
|
|
239
|
+
* @type {boolean}
|
|
240
|
+
* @memberof AdminBrokeredLeadDto
|
|
241
|
+
*/
|
|
242
|
+
nameshiftCommissionOverridable: boolean;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* @export
|
|
248
|
+
*/
|
|
249
|
+
export const AdminBrokeredLeadDtoStatusEnum = {
|
|
250
|
+
PENDING_SELLER: 'pending_seller',
|
|
251
|
+
PENDING_SELLER_VERIFICATION: 'pending_seller_verification',
|
|
252
|
+
AWAITING_PAYMENT: 'awaiting_payment',
|
|
253
|
+
PAYMENT_EXPIRED: 'payment_expired',
|
|
254
|
+
TRANSFER_IN_PROGRESS: 'transfer_in_progress',
|
|
255
|
+
COMPLETED: 'completed',
|
|
256
|
+
CLOSED: 'closed',
|
|
257
|
+
DECLINED: 'declined',
|
|
258
|
+
CANCELLED: 'cancelled'
|
|
259
|
+
} as const;
|
|
260
|
+
export type AdminBrokeredLeadDtoStatusEnum = typeof AdminBrokeredLeadDtoStatusEnum[keyof typeof AdminBrokeredLeadDtoStatusEnum];
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @export
|
|
264
|
+
*/
|
|
265
|
+
export const AdminBrokeredLeadDtoInternalStatusEnum = {
|
|
266
|
+
PENDING_SELLER: 'pending_seller',
|
|
267
|
+
PENDING_SELLER_VERIFICATION: 'pending_seller_verification',
|
|
268
|
+
APPROVED: 'approved',
|
|
269
|
+
DECLINED: 'declined',
|
|
270
|
+
CANCELLED: 'cancelled'
|
|
271
|
+
} as const;
|
|
272
|
+
export type AdminBrokeredLeadDtoInternalStatusEnum = typeof AdminBrokeredLeadDtoInternalStatusEnum[keyof typeof AdminBrokeredLeadDtoInternalStatusEnum];
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Check if a given object implements the AdminBrokeredLeadDto interface.
|
|
277
|
+
*/
|
|
278
|
+
export function instanceOfAdminBrokeredLeadDto(value: object): value is AdminBrokeredLeadDto {
|
|
279
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
280
|
+
if (!('domainName' in value) || value['domainName'] === undefined) return false;
|
|
281
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
282
|
+
if (!('askingPrice' in value) || value['askingPrice'] === undefined) return false;
|
|
283
|
+
if (!('commission' in value) || value['commission'] === undefined) return false;
|
|
284
|
+
if (!('nameshiftCommissionPercentage' in value) || value['nameshiftCommissionPercentage'] === undefined) return false;
|
|
285
|
+
if (!('nameshiftFee' in value) || value['nameshiftFee'] === undefined) return false;
|
|
286
|
+
if (!('netPayout' in value) || value['netPayout'] === undefined) return false;
|
|
287
|
+
if (!('buyer' in value) || value['buyer'] === undefined) return false;
|
|
288
|
+
if (!('sellerEmail' in value) || value['sellerEmail'] === undefined) return false;
|
|
289
|
+
if (!('sellerLinked' in value) || value['sellerLinked'] === undefined) return false;
|
|
290
|
+
if (!('sellerSignupUrl' in value) || value['sellerSignupUrl'] === undefined) return false;
|
|
291
|
+
if (!('sellerSignupUrlExpiresAt' in value) || value['sellerSignupUrlExpiresAt'] === undefined) return false;
|
|
292
|
+
if (!('sellerReviewUrl' in value) || value['sellerReviewUrl'] === undefined) return false;
|
|
293
|
+
if (!('paymentUrl' in value) || value['paymentUrl'] === undefined) return false;
|
|
294
|
+
if (!('sellerNotifiedAt' in value) || value['sellerNotifiedAt'] === undefined) return false;
|
|
295
|
+
if (!('nextSellerNotificationAt' in value) || value['nextSellerNotificationAt'] === undefined) return false;
|
|
296
|
+
if (!('canNotifySeller' in value) || value['canNotifySeller'] === undefined) return false;
|
|
297
|
+
if (!('buyerNotifiedAt' in value) || value['buyerNotifiedAt'] === undefined) return false;
|
|
298
|
+
if (!('nextBuyerNotificationAt' in value) || value['nextBuyerNotificationAt'] === undefined) return false;
|
|
299
|
+
if (!('canNotifyBuyer' in value) || value['canNotifyBuyer'] === undefined) return false;
|
|
300
|
+
if (!('declineReason' in value) || value['declineReason'] === undefined) return false;
|
|
301
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
302
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
303
|
+
if (!('internalStatus' in value) || value['internalStatus'] === undefined) return false;
|
|
304
|
+
if (!('brokerAccountId' in value) || value['brokerAccountId'] === undefined) return false;
|
|
305
|
+
if (!('brokerName' in value) || value['brokerName'] === undefined) return false;
|
|
306
|
+
if (!('sellerAccountId' in value) || value['sellerAccountId'] === undefined) return false;
|
|
307
|
+
if (!('sellerName' in value) || value['sellerName'] === undefined) return false;
|
|
308
|
+
if (!('leadId' in value) || value['leadId'] === undefined) return false;
|
|
309
|
+
if (!('nameshiftCommissionReason' in value) || value['nameshiftCommissionReason'] === undefined) return false;
|
|
310
|
+
if (!('nameshiftCommissionOverridable' in value) || value['nameshiftCommissionOverridable'] === undefined) return false;
|
|
311
|
+
return true;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export function AdminBrokeredLeadDtoFromJSON(json: any): AdminBrokeredLeadDto {
|
|
315
|
+
return AdminBrokeredLeadDtoFromJSONTyped(json, false);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export function AdminBrokeredLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBrokeredLeadDto {
|
|
319
|
+
if (json == null) {
|
|
320
|
+
return json;
|
|
321
|
+
}
|
|
322
|
+
return {
|
|
323
|
+
|
|
324
|
+
'id': json['id'],
|
|
325
|
+
'domainName': json['domainName'],
|
|
326
|
+
'status': json['status'],
|
|
327
|
+
'askingPrice': MoneyDtoFromJSON(json['askingPrice']),
|
|
328
|
+
'commission': BrokeredLeadCommissionDtoFromJSON(json['commission']),
|
|
329
|
+
'nameshiftCommissionPercentage': json['nameshiftCommissionPercentage'],
|
|
330
|
+
'nameshiftFee': MoneyDecimalDtoFromJSON(json['nameshiftFee']),
|
|
331
|
+
'netPayout': MoneyDecimalDtoFromJSON(json['netPayout']),
|
|
332
|
+
'buyer': BrokeredLeadBuyerContactDtoFromJSON(json['buyer']),
|
|
333
|
+
'sellerEmail': json['sellerEmail'],
|
|
334
|
+
'sellerLinked': json['sellerLinked'],
|
|
335
|
+
'sellerSignupUrl': json['sellerSignupUrl'],
|
|
336
|
+
'sellerSignupUrlExpiresAt': (json['sellerSignupUrlExpiresAt'] == null ? null : new Date(json['sellerSignupUrlExpiresAt'])),
|
|
337
|
+
'sellerReviewUrl': json['sellerReviewUrl'],
|
|
338
|
+
'paymentUrl': json['paymentUrl'],
|
|
339
|
+
'sellerNotifiedAt': (json['sellerNotifiedAt'] == null ? null : new Date(json['sellerNotifiedAt'])),
|
|
340
|
+
'nextSellerNotificationAt': (json['nextSellerNotificationAt'] == null ? null : new Date(json['nextSellerNotificationAt'])),
|
|
341
|
+
'canNotifySeller': json['canNotifySeller'],
|
|
342
|
+
'buyerNotifiedAt': (json['buyerNotifiedAt'] == null ? null : new Date(json['buyerNotifiedAt'])),
|
|
343
|
+
'nextBuyerNotificationAt': (json['nextBuyerNotificationAt'] == null ? null : new Date(json['nextBuyerNotificationAt'])),
|
|
344
|
+
'canNotifyBuyer': json['canNotifyBuyer'],
|
|
345
|
+
'declineReason': json['declineReason'],
|
|
346
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
347
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
348
|
+
'internalStatus': json['internalStatus'],
|
|
349
|
+
'brokerAccountId': json['brokerAccountId'],
|
|
350
|
+
'brokerName': json['brokerName'],
|
|
351
|
+
'sellerAccountId': json['sellerAccountId'],
|
|
352
|
+
'sellerName': json['sellerName'],
|
|
353
|
+
'leadId': json['leadId'],
|
|
354
|
+
'nameshiftCommissionReason': json['nameshiftCommissionReason'],
|
|
355
|
+
'nameshiftCommissionOverridable': json['nameshiftCommissionOverridable'],
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export function AdminBrokeredLeadDtoToJSON(json: any): AdminBrokeredLeadDto {
|
|
360
|
+
return AdminBrokeredLeadDtoToJSONTyped(json, false);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export function AdminBrokeredLeadDtoToJSONTyped(value?: AdminBrokeredLeadDto | null, ignoreDiscriminator: boolean = false): any {
|
|
364
|
+
if (value == null) {
|
|
365
|
+
return value;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
return {
|
|
369
|
+
|
|
370
|
+
'id': value['id'],
|
|
371
|
+
'domainName': value['domainName'],
|
|
372
|
+
'status': value['status'],
|
|
373
|
+
'askingPrice': MoneyDtoToJSON(value['askingPrice']),
|
|
374
|
+
'commission': BrokeredLeadCommissionDtoToJSON(value['commission']),
|
|
375
|
+
'nameshiftCommissionPercentage': value['nameshiftCommissionPercentage'],
|
|
376
|
+
'nameshiftFee': MoneyDecimalDtoToJSON(value['nameshiftFee']),
|
|
377
|
+
'netPayout': MoneyDecimalDtoToJSON(value['netPayout']),
|
|
378
|
+
'buyer': BrokeredLeadBuyerContactDtoToJSON(value['buyer']),
|
|
379
|
+
'sellerEmail': value['sellerEmail'],
|
|
380
|
+
'sellerLinked': value['sellerLinked'],
|
|
381
|
+
'sellerSignupUrl': value['sellerSignupUrl'],
|
|
382
|
+
'sellerSignupUrlExpiresAt': (value['sellerSignupUrlExpiresAt'] == null ? null : (value['sellerSignupUrlExpiresAt'] as any).toISOString()),
|
|
383
|
+
'sellerReviewUrl': value['sellerReviewUrl'],
|
|
384
|
+
'paymentUrl': value['paymentUrl'],
|
|
385
|
+
'sellerNotifiedAt': (value['sellerNotifiedAt'] == null ? null : (value['sellerNotifiedAt'] as any).toISOString()),
|
|
386
|
+
'nextSellerNotificationAt': (value['nextSellerNotificationAt'] == null ? null : (value['nextSellerNotificationAt'] as any).toISOString()),
|
|
387
|
+
'canNotifySeller': value['canNotifySeller'],
|
|
388
|
+
'buyerNotifiedAt': (value['buyerNotifiedAt'] == null ? null : (value['buyerNotifiedAt'] as any).toISOString()),
|
|
389
|
+
'nextBuyerNotificationAt': (value['nextBuyerNotificationAt'] == null ? null : (value['nextBuyerNotificationAt'] as any).toISOString()),
|
|
390
|
+
'canNotifyBuyer': value['canNotifyBuyer'],
|
|
391
|
+
'declineReason': value['declineReason'],
|
|
392
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
393
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
394
|
+
'internalStatus': value['internalStatus'],
|
|
395
|
+
'brokerAccountId': value['brokerAccountId'],
|
|
396
|
+
'brokerName': value['brokerName'],
|
|
397
|
+
'sellerAccountId': value['sellerAccountId'],
|
|
398
|
+
'sellerName': value['sellerName'],
|
|
399
|
+
'leadId': value['leadId'],
|
|
400
|
+
'nameshiftCommissionReason': value['nameshiftCommissionReason'],
|
|
401
|
+
'nameshiftCommissionOverridable': value['nameshiftCommissionOverridable'],
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
|
|
@@ -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 { AdminBrokeredLeadDto } from './AdminBrokeredLeadDto';
|
|
24
|
+
import {
|
|
25
|
+
AdminBrokeredLeadDtoFromJSON,
|
|
26
|
+
AdminBrokeredLeadDtoFromJSONTyped,
|
|
27
|
+
AdminBrokeredLeadDtoToJSON,
|
|
28
|
+
AdminBrokeredLeadDtoToJSONTyped,
|
|
29
|
+
} from './AdminBrokeredLeadDto';
|
|
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 AdminListBrokeredLeads200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface AdminListBrokeredLeads200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<AdminBrokeredLeadDto>}
|
|
47
|
+
* @memberof AdminListBrokeredLeads200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<AdminBrokeredLeadDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof AdminListBrokeredLeads200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof AdminListBrokeredLeads200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the AdminListBrokeredLeads200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfAdminListBrokeredLeads200Response(value: object): value is AdminListBrokeredLeads200Response {
|
|
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 AdminListBrokeredLeads200ResponseFromJSON(json: any): AdminListBrokeredLeads200Response {
|
|
75
|
+
return AdminListBrokeredLeads200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function AdminListBrokeredLeads200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminListBrokeredLeads200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(AdminBrokeredLeadDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function AdminListBrokeredLeads200ResponseToJSON(json: any): AdminListBrokeredLeads200Response {
|
|
91
|
+
return AdminListBrokeredLeads200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function AdminListBrokeredLeads200ResponseToJSONTyped(value?: AdminListBrokeredLeads200Response | 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(AdminBrokeredLeadDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
package/src/models/ApiKeyDto.ts
CHANGED
|
@@ -81,6 +81,8 @@ export const ApiKeyDtoScopeEnum = {
|
|
|
81
81
|
TRANSFERS_WRITE: 'TRANSFERS_WRITE',
|
|
82
82
|
LEADS_READ: 'LEADS_READ',
|
|
83
83
|
LEADS_WRITE: 'LEADS_WRITE',
|
|
84
|
+
BROKERED_LEADS_READ: 'BROKERED_LEADS_READ',
|
|
85
|
+
BROKERED_LEADS_WRITE: 'BROKERED_LEADS_WRITE',
|
|
84
86
|
AUCTIONS_READ: 'AUCTIONS_READ',
|
|
85
87
|
AUCTIONS_WRITE: 'AUCTIONS_WRITE',
|
|
86
88
|
STATS_READ: 'STATS_READ',
|
|
@@ -57,6 +57,8 @@ export const ApiKeyScopeDtoScopeEnum = {
|
|
|
57
57
|
TRANSFERS_WRITE: 'TRANSFERS_WRITE',
|
|
58
58
|
LEADS_READ: 'LEADS_READ',
|
|
59
59
|
LEADS_WRITE: 'LEADS_WRITE',
|
|
60
|
+
BROKERED_LEADS_READ: 'BROKERED_LEADS_READ',
|
|
61
|
+
BROKERED_LEADS_WRITE: 'BROKERED_LEADS_WRITE',
|
|
60
62
|
AUCTIONS_READ: 'AUCTIONS_READ',
|
|
61
63
|
AUCTIONS_WRITE: 'AUCTIONS_WRITE',
|
|
62
64
|
STATS_READ: 'STATS_READ',
|