@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.
Files changed (176) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +36 -1
  4. package/dist/apis/AdminApi.js +136 -0
  5. package/dist/apis/BrokeredLeadsApi.d.ts +195 -0
  6. package/dist/apis/BrokeredLeadsApi.js +912 -0
  7. package/dist/apis/BrokeredLeadsPublicApi.d.ts +31 -0
  8. package/dist/apis/BrokeredLeadsPublicApi.js +126 -0
  9. package/dist/apis/index.d.ts +2 -0
  10. package/dist/apis/index.js +2 -0
  11. package/dist/models/AccountBrokerSettingsInput.d.ts +38 -0
  12. package/dist/models/AccountBrokerSettingsInput.js +51 -0
  13. package/dist/models/AccountDto.d.ts +12 -0
  14. package/dist/models/AccountDto.js +8 -0
  15. package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
  16. package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +2 -1
  17. package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
  18. package/dist/models/AccountNameshiftCommissionItemDto.js +2 -1
  19. package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
  20. package/dist/models/AccountNameshiftCommissionReasonDto.js +2 -1
  21. package/dist/models/AccountNotificationDto.d.ts +1 -0
  22. package/dist/models/AccountNotificationDto.js +2 -1
  23. package/dist/models/AccountSettingsBrokerDto.d.ts +38 -0
  24. package/dist/models/AccountSettingsBrokerDto.js +55 -0
  25. package/dist/models/AccountSettingsDto.d.ts +7 -0
  26. package/dist/models/AccountSettingsDto.js +5 -0
  27. package/dist/models/AccountSettingsInput.d.ts +7 -0
  28. package/dist/models/AccountSettingsInput.js +3 -0
  29. package/dist/models/AdminBrokeredLeadDto.d.ts +248 -0
  30. package/dist/models/AdminBrokeredLeadDto.js +204 -0
  31. package/dist/models/AdminListBrokeredLeads200Response.d.ts +47 -0
  32. package/dist/models/AdminListBrokeredLeads200Response.js +62 -0
  33. package/dist/models/ApiKeyDto.d.ts +2 -0
  34. package/dist/models/ApiKeyDto.js +2 -0
  35. package/dist/models/ApiKeyScopeDto.d.ts +2 -0
  36. package/dist/models/ApiKeyScopeDto.js +2 -0
  37. package/dist/models/BrokerBrokeredLeadDto.d.ts +189 -0
  38. package/dist/models/BrokerBrokeredLeadDto.js +162 -0
  39. package/dist/models/BrokerCommissionInput.d.ts +52 -0
  40. package/dist/models/BrokerCommissionInput.js +63 -0
  41. package/dist/models/BrokeredLeadBreakdownDto.d.ts +58 -0
  42. package/dist/models/BrokeredLeadBreakdownDto.js +69 -0
  43. package/dist/models/BrokeredLeadBuyerContactDto.d.ts +50 -0
  44. package/dist/models/BrokeredLeadBuyerContactDto.js +63 -0
  45. package/dist/models/BrokeredLeadBuyerInput.d.ts +50 -0
  46. package/dist/models/BrokeredLeadBuyerInput.js +63 -0
  47. package/dist/models/BrokeredLeadCommissionDto.d.ts +71 -0
  48. package/dist/models/BrokeredLeadCommissionDto.js +80 -0
  49. package/dist/models/BrokeredLeadInvitationDto.d.ts +57 -0
  50. package/dist/models/BrokeredLeadInvitationDto.js +68 -0
  51. package/dist/models/BuyerInvoiceDto.d.ts +6 -0
  52. package/dist/models/BuyerInvoiceDto.js +4 -0
  53. package/dist/models/BuyerNotificationDto.d.ts +6 -0
  54. package/dist/models/BuyerNotificationDto.js +7 -1
  55. package/dist/models/BuyerNotificationListItemDto.d.ts +6 -0
  56. package/dist/models/BuyerNotificationListItemDto.js +7 -1
  57. package/dist/models/CommissionDto.d.ts +1 -0
  58. package/dist/models/CommissionDto.js +2 -1
  59. package/dist/models/CommissionPayloadInput.d.ts +1 -0
  60. package/dist/models/CommissionPayloadInput.js +2 -1
  61. package/dist/models/CommissionReasonDto.d.ts +1 -0
  62. package/dist/models/CommissionReasonDto.js +2 -1
  63. package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
  64. package/dist/models/CommissionSimulationItemInput.js +2 -1
  65. package/dist/models/CreateApiKeyInput.d.ts +2 -0
  66. package/dist/models/CreateApiKeyInput.js +2 -0
  67. package/dist/models/CreateBrokeredLeadInput.d.ts +59 -0
  68. package/dist/models/CreateBrokeredLeadInput.js +68 -0
  69. package/dist/models/CreatedApiKeyDto.d.ts +2 -0
  70. package/dist/models/CreatedApiKeyDto.js +2 -0
  71. package/dist/models/CustomerSuccessListAccountDto.d.ts +6 -0
  72. package/dist/models/CustomerSuccessListAccountDto.js +4 -0
  73. package/dist/models/CustomerSuccessListAccountMetricsDto.d.ts +6 -0
  74. package/dist/models/CustomerSuccessListAccountMetricsDto.js +4 -0
  75. package/dist/models/DeclineBrokeredLeadInput.d.ts +32 -0
  76. package/dist/models/DeclineBrokeredLeadInput.js +49 -0
  77. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  78. package/dist/models/FeatureFlagListItemDto.js +1 -0
  79. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +13 -0
  80. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +9 -0
  81. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +1 -1
  82. package/dist/models/InvoiceDto.d.ts +6 -0
  83. package/dist/models/InvoiceDto.js +4 -0
  84. package/dist/models/LeadBrokeredDealDto.d.ts +39 -0
  85. package/dist/models/LeadBrokeredDealDto.js +56 -0
  86. package/dist/models/ListAccountMetricsDto.d.ts +6 -0
  87. package/dist/models/ListAccountMetricsDto.js +4 -0
  88. package/dist/models/ListBrokerLeads200Response.d.ts +47 -0
  89. package/dist/models/ListBrokerLeads200Response.js +62 -0
  90. package/dist/models/ListLeadsResultItem.d.ts +7 -0
  91. package/dist/models/ListLeadsResultItem.js +5 -0
  92. package/dist/models/ManualLeadDetails.d.ts +7 -0
  93. package/dist/models/ManualLeadDetails.js +5 -0
  94. package/dist/models/OverrideBrokeredLeadNameshiftCommissionInput.d.ts +38 -0
  95. package/dist/models/OverrideBrokeredLeadNameshiftCommissionInput.js +55 -0
  96. package/dist/models/PrivateAccountGetMeResponse.d.ts +19 -0
  97. package/dist/models/PrivateAccountGetMeResponse.js +13 -0
  98. package/dist/models/RegisterAccountInput.d.ts +6 -0
  99. package/dist/models/RegisterAccountInput.js +2 -0
  100. package/dist/models/SellerBrokeredLeadDto.d.ts +114 -0
  101. package/dist/models/SellerBrokeredLeadDto.js +111 -0
  102. package/dist/models/SellerBrokeredLeadVerificationDto.d.ts +44 -0
  103. package/dist/models/SellerBrokeredLeadVerificationDto.js +59 -0
  104. package/dist/models/SellerInvoiceDto.d.ts +6 -0
  105. package/dist/models/SellerInvoiceDto.js +4 -0
  106. package/dist/models/SimulateCommissionInput.d.ts +1 -0
  107. package/dist/models/SimulateCommissionInput.js +2 -1
  108. package/dist/models/UpdateApiKeyInput.d.ts +2 -0
  109. package/dist/models/UpdateApiKeyInput.js +2 -0
  110. package/dist/models/UserNotificationDto.d.ts +6 -0
  111. package/dist/models/UserNotificationDto.js +7 -1
  112. package/dist/models/UserNotificationListItemDto.d.ts +6 -0
  113. package/dist/models/UserNotificationListItemDto.js +7 -1
  114. package/dist/models/WithSettingsInner.d.ts +11 -4
  115. package/dist/models/WithSettingsInner.js +9 -4
  116. package/dist/models/index.d.ts +18 -0
  117. package/dist/models/index.js +18 -0
  118. package/package.json +1 -1
  119. package/src/apis/AdminApi.ts +145 -0
  120. package/src/apis/BrokeredLeadsApi.ts +740 -0
  121. package/src/apis/BrokeredLeadsPublicApi.ts +69 -0
  122. package/src/apis/index.ts +2 -0
  123. package/src/models/AccountBrokerSettingsInput.ts +73 -0
  124. package/src/models/AccountDto.ts +18 -0
  125. package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +2 -1
  126. package/src/models/AccountNameshiftCommissionItemDto.ts +2 -1
  127. package/src/models/AccountNameshiftCommissionReasonDto.ts +2 -1
  128. package/src/models/AccountNotificationDto.ts +2 -1
  129. package/src/models/AccountSettingsBrokerDto.ts +75 -0
  130. package/src/models/AccountSettingsDto.ts +16 -0
  131. package/src/models/AccountSettingsInput.ts +15 -0
  132. package/src/models/AdminBrokeredLeadDto.ts +404 -0
  133. package/src/models/AdminListBrokeredLeads200Response.ts +106 -0
  134. package/src/models/ApiKeyDto.ts +2 -0
  135. package/src/models/ApiKeyScopeDto.ts +2 -0
  136. package/src/models/BrokerBrokeredLeadDto.ts +320 -0
  137. package/src/models/BrokerCommissionInput.ts +93 -0
  138. package/src/models/BrokeredLeadBreakdownDto.ts +117 -0
  139. package/src/models/BrokeredLeadBuyerContactDto.ts +93 -0
  140. package/src/models/BrokeredLeadBuyerInput.ts +93 -0
  141. package/src/models/BrokeredLeadCommissionDto.ts +130 -0
  142. package/src/models/BrokeredLeadInvitationDto.ts +110 -0
  143. package/src/models/BuyerInvoiceDto.ts +9 -0
  144. package/src/models/BuyerNotificationDto.ts +7 -1
  145. package/src/models/BuyerNotificationListItemDto.ts +7 -1
  146. package/src/models/CommissionDto.ts +2 -1
  147. package/src/models/CommissionPayloadInput.ts +2 -1
  148. package/src/models/CommissionReasonDto.ts +2 -1
  149. package/src/models/CommissionSimulationItemInput.ts +2 -1
  150. package/src/models/CreateApiKeyInput.ts +2 -0
  151. package/src/models/CreateBrokeredLeadInput.ts +123 -0
  152. package/src/models/CreatedApiKeyDto.ts +2 -0
  153. package/src/models/CustomerSuccessListAccountDto.ts +9 -0
  154. package/src/models/CustomerSuccessListAccountMetricsDto.ts +9 -0
  155. package/src/models/DeclineBrokeredLeadInput.ts +65 -0
  156. package/src/models/FeatureFlagListItemDto.ts +1 -0
  157. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +19 -0
  158. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +1 -1
  159. package/src/models/InvoiceDto.ts +9 -0
  160. package/src/models/LeadBrokeredDealDto.ts +83 -0
  161. package/src/models/ListAccountMetricsDto.ts +9 -0
  162. package/src/models/ListBrokerLeads200Response.ts +106 -0
  163. package/src/models/ListLeadsResultItem.ts +16 -0
  164. package/src/models/ManualLeadDetails.ts +16 -0
  165. package/src/models/OverrideBrokeredLeadNameshiftCommissionInput.ts +75 -0
  166. package/src/models/PrivateAccountGetMeResponse.ts +28 -0
  167. package/src/models/RegisterAccountInput.ts +8 -0
  168. package/src/models/SellerBrokeredLeadDto.ts +215 -0
  169. package/src/models/SellerBrokeredLeadVerificationDto.ts +84 -0
  170. package/src/models/SellerInvoiceDto.ts +9 -0
  171. package/src/models/SimulateCommissionInput.ts +2 -1
  172. package/src/models/UpdateApiKeyInput.ts +2 -0
  173. package/src/models/UserNotificationDto.ts +7 -1
  174. package/src/models/UserNotificationListItemDto.ts +7 -1
  175. package/src/models/WithSettingsInner.ts +44 -28
  176. 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
+
@@ -115,6 +115,18 @@ 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;
124
+ /**
125
+ * Whether the account can see the onboarding.
126
+ * @type {boolean}
127
+ * @memberof AccountDto
128
+ */
129
+ canSeeOnboarding: boolean;
118
130
  }
119
131
 
120
132
  /**
@@ -131,6 +143,8 @@ export function instanceOfAccountDto(value: object): value is AccountDto {
131
143
  if (!('leaseToOwnKickbackPercentage' in value) || value['leaseToOwnKickbackPercentage'] === undefined) return false;
132
144
  if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined) return false;
133
145
  if (!('canSell' in value) || value['canSell'] === undefined) return false;
146
+ if (!('canBroker' in value) || value['canBroker'] === undefined) return false;
147
+ if (!('canSeeOnboarding' in value) || value['canSeeOnboarding'] === undefined) return false;
134
148
  return true;
135
149
  }
136
150
 
@@ -154,6 +168,8 @@ export function AccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
154
168
  'leaseToOwnKickbackPercentage': json['leaseToOwnKickbackPercentage'],
155
169
  'challengeRewardBalance': ChallengeRewardBalanceDtoFromJSON(json['challengeRewardBalance']),
156
170
  'canSell': json['canSell'],
171
+ 'canBroker': json['canBroker'],
172
+ 'canSeeOnboarding': json['canSeeOnboarding'],
157
173
  };
158
174
  }
159
175
 
@@ -178,6 +194,8 @@ export function AccountDtoToJSONTyped(value?: AccountDto | null, ignoreDiscrimin
178
194
  'leaseToOwnKickbackPercentage': value['leaseToOwnKickbackPercentage'],
179
195
  'challengeRewardBalance': ChallengeRewardBalanceDtoToJSON(value['challengeRewardBalance']),
180
196
  'canSell': value['canSell'],
197
+ 'canBroker': value['canBroker'],
198
+ 'canSeeOnboarding': value['canSeeOnboarding'],
181
199
  };
182
200
  }
183
201
 
@@ -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
  }