@randock/nameshift-api-client 0.0.448 → 0.0.450

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 (162) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +3 -3
  3. package/dist/apis/APIKeysApi.d.ts +78 -0
  4. package/dist/apis/APIKeysApi.js +354 -0
  5. package/dist/apis/AccountsApi.d.ts +36 -36
  6. package/dist/apis/AccountsApi.js +360 -216
  7. package/dist/apis/AdminApi.d.ts +37 -1
  8. package/dist/apis/AdminApi.js +122 -1
  9. package/dist/apis/AuctionsApi.d.ts +4 -4
  10. package/dist/apis/AuctionsApi.js +40 -24
  11. package/dist/apis/BankAccountsApi.d.ts +10 -10
  12. package/dist/apis/BankAccountsApi.js +100 -60
  13. package/dist/apis/ChallengesApi.d.ts +6 -6
  14. package/dist/apis/ChallengesApi.js +60 -36
  15. package/dist/apis/DomainTransfersApi.d.ts +2 -2
  16. package/dist/apis/DomainTransfersApi.js +20 -12
  17. package/dist/apis/DomainsApi.d.ts +44 -44
  18. package/dist/apis/DomainsApi.js +440 -264
  19. package/dist/apis/EppApi.d.ts +2 -2
  20. package/dist/apis/EppApi.js +20 -12
  21. package/dist/apis/InvoicesApi.d.ts +6 -6
  22. package/dist/apis/InvoicesApi.js +60 -36
  23. package/dist/apis/LeadsApi.d.ts +38 -38
  24. package/dist/apis/LeadsApi.js +380 -228
  25. package/dist/apis/MarketplacesApi.d.ts +89 -0
  26. package/dist/apis/MarketplacesApi.js +332 -0
  27. package/dist/apis/NotificationsApi.d.ts +8 -8
  28. package/dist/apis/NotificationsApi.js +80 -48
  29. package/dist/apis/StatsApi.d.ts +14 -14
  30. package/dist/apis/StatsApi.js +140 -84
  31. package/dist/apis/SubscriptionsApi.d.ts +2 -2
  32. package/dist/apis/SubscriptionsApi.js +20 -12
  33. package/dist/apis/TasksApi.d.ts +6 -6
  34. package/dist/apis/TasksApi.js +60 -36
  35. package/dist/apis/UsersApi.d.ts +10 -10
  36. package/dist/apis/UsersApi.js +100 -60
  37. package/dist/apis/index.d.ts +2 -0
  38. package/dist/apis/index.js +2 -0
  39. package/dist/models/AccountMarketplaceDto.d.ts +56 -0
  40. package/dist/models/AccountMarketplaceDto.js +71 -0
  41. package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
  42. package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +1 -0
  43. package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
  44. package/dist/models/AccountNameshiftCommissionItemDto.js +1 -0
  45. package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
  46. package/dist/models/AccountNameshiftCommissionReasonDto.js +1 -0
  47. package/dist/models/AccountSettingsDto.d.ts +18 -0
  48. package/dist/models/AccountSettingsDto.js +16 -0
  49. package/dist/models/AccountSettingsInput.d.ts +18 -0
  50. package/dist/models/AccountSettingsInput.js +14 -0
  51. package/dist/models/AdminDomainListItemDto.d.ts +19 -0
  52. package/dist/models/AdminDomainListItemDto.js +17 -1
  53. package/dist/models/AdminMarketplaceDto.d.ts +86 -0
  54. package/dist/models/AdminMarketplaceDto.js +91 -0
  55. package/dist/models/ApiKeyDto.d.ts +107 -0
  56. package/dist/models/ApiKeyDto.js +114 -0
  57. package/dist/models/ApiKeyScopeDto.d.ts +83 -0
  58. package/dist/models/ApiKeyScopeDto.js +98 -0
  59. package/dist/models/CommissionDto.d.ts +1 -0
  60. package/dist/models/CommissionDto.js +1 -0
  61. package/dist/models/CommissionPayloadInput.d.ts +1 -0
  62. package/dist/models/CommissionPayloadInput.js +1 -0
  63. package/dist/models/CommissionReasonDto.d.ts +1 -0
  64. package/dist/models/CommissionReasonDto.js +1 -0
  65. package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
  66. package/dist/models/CommissionSimulationItemInput.js +1 -0
  67. package/dist/models/CreateApiKeyInput.d.ts +83 -0
  68. package/dist/models/CreateApiKeyInput.js +96 -0
  69. package/dist/models/CreateOrderInput.d.ts +6 -0
  70. package/dist/models/CreateOrderInput.js +2 -0
  71. package/dist/models/CreateSubscriptionInput.d.ts +6 -0
  72. package/dist/models/CreateSubscriptionInput.js +2 -0
  73. package/dist/models/CreatedApiKeyDto.d.ts +113 -0
  74. package/dist/models/CreatedApiKeyDto.js +118 -0
  75. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  76. package/dist/models/FeatureFlagListItemDto.js +2 -1
  77. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  78. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  79. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +18 -0
  80. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +16 -0
  81. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +18 -0
  82. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +16 -0
  83. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +18 -0
  84. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +16 -0
  85. package/dist/models/MarketplaceDto.d.ts +74 -0
  86. package/dist/models/MarketplaceDto.js +83 -0
  87. package/dist/models/OrderDto.d.ts +7 -1
  88. package/dist/models/OrderDto.js +4 -0
  89. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  90. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  91. package/dist/models/SetAccountMarketplaceInput.d.ts +32 -0
  92. package/dist/models/SetAccountMarketplaceInput.js +51 -0
  93. package/dist/models/SimulateCommissionInput.d.ts +1 -0
  94. package/dist/models/SimulateCommissionInput.js +1 -0
  95. package/dist/models/SubscriptionDto.d.ts +7 -1
  96. package/dist/models/SubscriptionDto.js +4 -0
  97. package/dist/models/UpdateApiKeyInput.d.ts +77 -0
  98. package/dist/models/UpdateApiKeyInput.js +90 -0
  99. package/dist/models/UpdateDomainInput.d.ts +18 -0
  100. package/dist/models/UpdateDomainInput.js +14 -0
  101. package/dist/models/UpdateMarketplaceInput.d.ts +44 -0
  102. package/dist/models/UpdateMarketplaceInput.js +53 -0
  103. package/dist/models/UpdateOrderInput.d.ts +6 -0
  104. package/dist/models/UpdateOrderInput.js +2 -0
  105. package/dist/models/UpdateSubscriptionInput.d.ts +6 -0
  106. package/dist/models/UpdateSubscriptionInput.js +2 -0
  107. package/dist/models/index.d.ts +10 -0
  108. package/dist/models/index.js +10 -0
  109. package/package.json +1 -1
  110. package/src/apis/APIKeysApi.ts +271 -0
  111. package/src/apis/AccountsApi.ts +108 -36
  112. package/src/apis/AdminApi.ts +112 -0
  113. package/src/apis/AuctionsApi.ts +12 -4
  114. package/src/apis/BankAccountsApi.ts +30 -10
  115. package/src/apis/ChallengesApi.ts +18 -6
  116. package/src/apis/DomainTransfersApi.ts +6 -2
  117. package/src/apis/DomainsApi.ts +132 -44
  118. package/src/apis/EppApi.ts +6 -2
  119. package/src/apis/InvoicesApi.ts +18 -6
  120. package/src/apis/LeadsApi.ts +114 -38
  121. package/src/apis/MarketplacesApi.ts +240 -0
  122. package/src/apis/NotificationsApi.ts +24 -8
  123. package/src/apis/StatsApi.ts +42 -14
  124. package/src/apis/SubscriptionsApi.ts +6 -2
  125. package/src/apis/TasksApi.ts +18 -6
  126. package/src/apis/UsersApi.ts +30 -10
  127. package/src/apis/index.ts +2 -0
  128. package/src/models/AccountMarketplaceDto.ts +99 -0
  129. package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +1 -0
  130. package/src/models/AccountNameshiftCommissionItemDto.ts +1 -0
  131. package/src/models/AccountNameshiftCommissionReasonDto.ts +1 -0
  132. package/src/models/AccountSettingsDto.ts +24 -0
  133. package/src/models/AccountSettingsInput.ts +23 -0
  134. package/src/models/AdminDomainListItemDto.ts +23 -0
  135. package/src/models/AdminMarketplaceDto.ts +144 -0
  136. package/src/models/ApiKeyDto.ts +162 -0
  137. package/src/models/ApiKeyScopeDto.ts +126 -0
  138. package/src/models/CommissionDto.ts +1 -0
  139. package/src/models/CommissionPayloadInput.ts +1 -0
  140. package/src/models/CommissionReasonDto.ts +1 -0
  141. package/src/models/CommissionSimulationItemInput.ts +1 -0
  142. package/src/models/CreateApiKeyInput.ts +125 -0
  143. package/src/models/CreateOrderInput.ts +8 -0
  144. package/src/models/CreateSubscriptionInput.ts +8 -0
  145. package/src/models/CreatedApiKeyDto.ts +171 -0
  146. package/src/models/FeatureFlagListItemDto.ts +2 -1
  147. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  148. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +24 -0
  149. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +24 -0
  150. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +24 -0
  151. package/src/models/MarketplaceDto.ts +126 -0
  152. package/src/models/OrderDto.ts +10 -1
  153. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  154. package/src/models/SetAccountMarketplaceInput.ts +66 -0
  155. package/src/models/SimulateCommissionInput.ts +1 -0
  156. package/src/models/SubscriptionDto.ts +10 -1
  157. package/src/models/UpdateApiKeyInput.ts +115 -0
  158. package/src/models/UpdateDomainInput.ts +23 -0
  159. package/src/models/UpdateMarketplaceInput.ts +81 -0
  160. package/src/models/UpdateOrderInput.ts +8 -0
  161. package/src/models/UpdateSubscriptionInput.ts +8 -0
  162. package/src/models/index.ts +10 -0
@@ -59,7 +59,7 @@ export interface UsersApiUpdateUserNotificationSettingsRequest {
59
59
  export class UsersApi extends runtime.BaseAPI {
60
60
 
61
61
  /**
62
- * Changes the seller user email after validating the OTP sent to the new address.
62
+ * Changes the seller user email after validating the OTP sent to the new address. **API key scope required:** `USER_EMAIL_WRITE`. Requests authenticated with a seller session do not need any scope.
63
63
  * Change user email with OTP
64
64
  */
65
65
  async changeUserEmailWithOtpRaw(requestParameters: UsersApiChangeUserEmailWithOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -76,6 +76,10 @@ export class UsersApi extends runtime.BaseAPI {
76
76
 
77
77
  headerParameters['Content-Type'] = 'application/json';
78
78
 
79
+ if (this.configuration && this.configuration.apiKey) {
80
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
81
+ }
82
+
79
83
  if (this.configuration && this.configuration.accessToken) {
80
84
  const token = this.configuration.accessToken;
81
85
  const tokenString = await token("bearer", []);
@@ -96,7 +100,7 @@ export class UsersApi extends runtime.BaseAPI {
96
100
  }
97
101
 
98
102
  /**
99
- * Changes the seller user email after validating the OTP sent to the new address.
103
+ * Changes the seller user email after validating the OTP sent to the new address. **API key scope required:** `USER_EMAIL_WRITE`. Requests authenticated with a seller session do not need any scope.
100
104
  * Change user email with OTP
101
105
  */
102
106
  async changeUserEmailWithOtp(requestParameters: UsersApiChangeUserEmailWithOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
@@ -104,7 +108,7 @@ export class UsersApi extends runtime.BaseAPI {
104
108
  }
105
109
 
106
110
  /**
107
- * Returns the notification preferences configured for the seller user.
111
+ * Returns the notification preferences configured for the seller user. **API key scope required:** `USERS_READ`. Requests authenticated with a seller session do not need any scope.
108
112
  * Get user notification settings
109
113
  */
110
114
  async getUserNotificationSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserNotificationSettingsDto>> {
@@ -112,6 +116,10 @@ export class UsersApi extends runtime.BaseAPI {
112
116
 
113
117
  const headerParameters: runtime.HTTPHeaders = {};
114
118
 
119
+ if (this.configuration && this.configuration.apiKey) {
120
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
121
+ }
122
+
115
123
  if (this.configuration && this.configuration.accessToken) {
116
124
  const token = this.configuration.accessToken;
117
125
  const tokenString = await token("bearer", []);
@@ -131,7 +139,7 @@ export class UsersApi extends runtime.BaseAPI {
131
139
  }
132
140
 
133
141
  /**
134
- * Returns the notification preferences configured for the seller user.
142
+ * Returns the notification preferences configured for the seller user. **API key scope required:** `USERS_READ`. Requests authenticated with a seller session do not need any scope.
135
143
  * Get user notification settings
136
144
  */
137
145
  async getUserNotificationSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserNotificationSettingsDto> {
@@ -140,7 +148,7 @@ export class UsersApi extends runtime.BaseAPI {
140
148
  }
141
149
 
142
150
  /**
143
- * Sends a one-time password to the new email address to verify ownership before changing the account email.
151
+ * Sends a one-time password to the new email address to verify ownership before changing the account email. **API key scope required:** `USER_EMAIL_WRITE`. Requests authenticated with a seller session do not need any scope.
144
152
  * Request email change OTP
145
153
  */
146
154
  async requestUserEmailChangeOtpRaw(requestParameters: UsersApiRequestUserEmailChangeOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -157,6 +165,10 @@ export class UsersApi extends runtime.BaseAPI {
157
165
 
158
166
  headerParameters['Content-Type'] = 'application/json';
159
167
 
168
+ if (this.configuration && this.configuration.apiKey) {
169
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
170
+ }
171
+
160
172
  if (this.configuration && this.configuration.accessToken) {
161
173
  const token = this.configuration.accessToken;
162
174
  const tokenString = await token("bearer", []);
@@ -177,7 +189,7 @@ export class UsersApi extends runtime.BaseAPI {
177
189
  }
178
190
 
179
191
  /**
180
- * Sends a one-time password to the new email address to verify ownership before changing the account email.
192
+ * Sends a one-time password to the new email address to verify ownership before changing the account email. **API key scope required:** `USER_EMAIL_WRITE`. Requests authenticated with a seller session do not need any scope.
181
193
  * Request email change OTP
182
194
  */
183
195
  async requestUserEmailChangeOtp(requestParameters: UsersApiRequestUserEmailChangeOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
@@ -185,7 +197,7 @@ export class UsersApi extends runtime.BaseAPI {
185
197
  }
186
198
 
187
199
  /**
188
- * Persists the seller user locale used for notifications and UI content.
200
+ * Persists the seller user locale used for notifications and UI content. **API key scope required:** `USERS_WRITE`. Requests authenticated with a seller session do not need any scope.
189
201
  * Store user locale preference
190
202
  */
191
203
  async setLocaleRaw(requestParameters: UsersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -202,6 +214,10 @@ export class UsersApi extends runtime.BaseAPI {
202
214
 
203
215
  headerParameters['Content-Type'] = 'application/json';
204
216
 
217
+ if (this.configuration && this.configuration.apiKey) {
218
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
219
+ }
220
+
205
221
  if (this.configuration && this.configuration.accessToken) {
206
222
  const token = this.configuration.accessToken;
207
223
  const tokenString = await token("bearer", []);
@@ -222,7 +238,7 @@ export class UsersApi extends runtime.BaseAPI {
222
238
  }
223
239
 
224
240
  /**
225
- * Persists the seller user locale used for notifications and UI content.
241
+ * Persists the seller user locale used for notifications and UI content. **API key scope required:** `USERS_WRITE`. Requests authenticated with a seller session do not need any scope.
226
242
  * Store user locale preference
227
243
  */
228
244
  async setLocale(requestParameters: UsersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
@@ -230,7 +246,7 @@ export class UsersApi extends runtime.BaseAPI {
230
246
  }
231
247
 
232
248
  /**
233
- * Updates one or more notification preferences for the seller user.
249
+ * Updates one or more notification preferences for the seller user. **API key scope required:** `USERS_WRITE`. Requests authenticated with a seller session do not need any scope.
234
250
  * Update user notification settings
235
251
  */
236
252
  async updateUserNotificationSettingsRaw(requestParameters: UsersApiUpdateUserNotificationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -247,6 +263,10 @@ export class UsersApi extends runtime.BaseAPI {
247
263
 
248
264
  headerParameters['Content-Type'] = 'application/json';
249
265
 
266
+ if (this.configuration && this.configuration.apiKey) {
267
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
268
+ }
269
+
250
270
  if (this.configuration && this.configuration.accessToken) {
251
271
  const token = this.configuration.accessToken;
252
272
  const tokenString = await token("bearer", []);
@@ -267,7 +287,7 @@ export class UsersApi extends runtime.BaseAPI {
267
287
  }
268
288
 
269
289
  /**
270
- * Updates one or more notification preferences for the seller user.
290
+ * Updates one or more notification preferences for the seller user. **API key scope required:** `USERS_WRITE`. Requests authenticated with a seller session do not need any scope.
271
291
  * Update user notification settings
272
292
  */
273
293
  async updateUserNotificationSettings(requestParameters: UsersApiUpdateUserNotificationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
package/src/apis/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './APIKeysApi';
3
4
  export * from './AccountsApi';
4
5
  export * from './AccountsPublicApi';
5
6
  export * from './AddressPublicApi';
@@ -19,6 +20,7 @@ export * from './LeadsApi';
19
20
  export * from './LeadsPublicApi';
20
21
  export * from './MarketApi';
21
22
  export * from './MarketingApi';
23
+ export * from './MarketplacesApi';
22
24
  export * from './NotificationsApi';
23
25
  export * from './OrdersPublicApi';
24
26
  export * from './PartnerApi';
@@ -0,0 +1,99 @@
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 AccountMarketplaceDto
20
+ */
21
+ export interface AccountMarketplaceDto {
22
+ /**
23
+ * The marketplace this link is for.
24
+ * @type {string}
25
+ * @memberof AccountMarketplaceDto
26
+ */
27
+ code: AccountMarketplaceDtoCodeEnum;
28
+ /**
29
+ * Display name of the marketplace.
30
+ * @type {string}
31
+ * @memberof AccountMarketplaceDto
32
+ */
33
+ name: string;
34
+ /**
35
+ * The value this marketplace issued the account. Published for every domain of the account, whichever marketplace each domain is routed to, so the account stays verified everywhere.
36
+ * @type {string}
37
+ * @memberof AccountMarketplaceDto
38
+ */
39
+ verificationCode: string | null;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const AccountMarketplaceDtoCodeEnum = {
47
+ NAMESHIFT: 'nameshift',
48
+ SEDO: 'sedo',
49
+ AFTERNIC: 'afternic',
50
+ ATOM: 'atom',
51
+ SPACESHIP: 'spaceship',
52
+ NAMECLUB: 'nameclub'
53
+ } as const;
54
+ export type AccountMarketplaceDtoCodeEnum = typeof AccountMarketplaceDtoCodeEnum[keyof typeof AccountMarketplaceDtoCodeEnum];
55
+
56
+
57
+ /**
58
+ * Check if a given object implements the AccountMarketplaceDto interface.
59
+ */
60
+ export function instanceOfAccountMarketplaceDto(value: object): value is AccountMarketplaceDto {
61
+ if (!('code' in value) || value['code'] === undefined) return false;
62
+ if (!('name' in value) || value['name'] === undefined) return false;
63
+ if (!('verificationCode' in value) || value['verificationCode'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function AccountMarketplaceDtoFromJSON(json: any): AccountMarketplaceDto {
68
+ return AccountMarketplaceDtoFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function AccountMarketplaceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountMarketplaceDto {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'code': json['code'],
78
+ 'name': json['name'],
79
+ 'verificationCode': json['verificationCode'],
80
+ };
81
+ }
82
+
83
+ export function AccountMarketplaceDtoToJSON(json: any): AccountMarketplaceDto {
84
+ return AccountMarketplaceDtoToJSONTyped(json, false);
85
+ }
86
+
87
+ export function AccountMarketplaceDtoToJSONTyped(value?: AccountMarketplaceDto | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'code': value['code'],
95
+ 'name': value['name'],
96
+ 'verificationCode': value['verificationCode'],
97
+ };
98
+ }
99
+
@@ -60,6 +60,7 @@ export interface AccountNameshiftCommissionBySubtypeDto {
60
60
  export const AccountNameshiftCommissionBySubtypeDtoSubtypeEnum = {
61
61
  POINTING: 'pointing',
62
62
  NOT_POINTING: 'not_pointing',
63
+ ROUTED: 'routed',
63
64
  MANUAL_LEAD: 'manual_lead',
64
65
  AUCTION: 'auction'
65
66
  } as const;
@@ -84,6 +84,7 @@ export interface AccountNameshiftCommissionItemDto {
84
84
  export const AccountNameshiftCommissionItemDtoSubtypeEnum = {
85
85
  POINTING: 'pointing',
86
86
  NOT_POINTING: 'not_pointing',
87
+ ROUTED: 'routed',
87
88
  MANUAL_LEAD: 'manual_lead',
88
89
  AUCTION: 'auction'
89
90
  } as const;
@@ -130,6 +130,7 @@ export type AccountNameshiftCommissionReasonDtoTypeEnum = typeof AccountNameshif
130
130
  export const AccountNameshiftCommissionReasonDtoSubtypeEnum = {
131
131
  POINTING: 'pointing',
132
132
  NOT_POINTING: 'not_pointing',
133
+ ROUTED: 'routed',
133
134
  MANUAL_LEAD: 'manual_lead',
134
135
  AUCTION: 'auction'
135
136
  } as const;
@@ -154,8 +154,29 @@ export interface AccountSettingsDto {
154
154
  * @memberof AccountSettingsDto
155
155
  */
156
156
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
157
+ /**
158
+ * Default marketplace the account's domains resolve to on our nameservers. Null serves our own landing page. Individual domains may override it.
159
+ * @type {string}
160
+ * @memberof AccountSettingsDto
161
+ */
162
+ marketplace: AccountSettingsDtoMarketplaceEnum | null;
157
163
  }
158
164
 
165
+
166
+ /**
167
+ * @export
168
+ */
169
+ export const AccountSettingsDtoMarketplaceEnum = {
170
+ NAMESHIFT: 'nameshift',
171
+ SEDO: 'sedo',
172
+ AFTERNIC: 'afternic',
173
+ ATOM: 'atom',
174
+ SPACESHIP: 'spaceship',
175
+ NAMECLUB: 'nameclub'
176
+ } as const;
177
+ export type AccountSettingsDtoMarketplaceEnum = typeof AccountSettingsDtoMarketplaceEnum[keyof typeof AccountSettingsDtoMarketplaceEnum];
178
+
179
+
159
180
  /**
160
181
  * Check if a given object implements the AccountSettingsDto interface.
161
182
  */
@@ -173,6 +194,7 @@ export function instanceOfAccountSettingsDto(value: object): value is AccountSet
173
194
  if (!('transferCostPaymentMaxPercentage' in value) || value['transferCostPaymentMaxPercentage'] === undefined) return false;
174
195
  if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined) return false;
175
196
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
197
+ if (!('marketplace' in value) || value['marketplace'] === undefined) return false;
176
198
  return true;
177
199
  }
178
200
 
@@ -199,6 +221,7 @@ export function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator:
199
221
  'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'],
200
222
  'domainLockConfiguration': DomainLockConfigurationDtoFromJSON(json['domainLockConfiguration']),
201
223
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
224
+ 'marketplace': json['marketplace'],
202
225
  };
203
226
  }
204
227
 
@@ -226,6 +249,7 @@ export function AccountSettingsDtoToJSONTyped(value?: AccountSettingsDto | null,
226
249
  'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
227
250
  'domainLockConfiguration': DomainLockConfigurationDtoToJSON(value['domainLockConfiguration']),
228
251
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
252
+ 'marketplace': value['marketplace'],
229
253
  };
230
254
  }
231
255
 
@@ -87,6 +87,12 @@ export interface AccountSettingsInput {
87
87
  * @memberof AccountSettingsInput
88
88
  */
89
89
  sidnIdcode?: string | null;
90
+ /**
91
+ * Default marketplace the account's domains resolve to on our nameservers. Null or "nameshift" serves our own landing page. Individual domains may override this.
92
+ * @type {string}
93
+ * @memberof AccountSettingsInput
94
+ */
95
+ marketplace?: AccountSettingsInputMarketplaceEnum | null;
90
96
  /**
91
97
  * Default landing page settings for the account
92
98
  * @type {LandingPageInput}
@@ -155,6 +161,21 @@ export interface AccountSettingsInput {
155
161
  leadOfferExpirationConfiguration?: LockConfigurationInput;
156
162
  }
157
163
 
164
+
165
+ /**
166
+ * @export
167
+ */
168
+ export const AccountSettingsInputMarketplaceEnum = {
169
+ NAMESHIFT: 'nameshift',
170
+ SEDO: 'sedo',
171
+ AFTERNIC: 'afternic',
172
+ ATOM: 'atom',
173
+ SPACESHIP: 'spaceship',
174
+ NAMECLUB: 'nameclub'
175
+ } as const;
176
+ export type AccountSettingsInputMarketplaceEnum = typeof AccountSettingsInputMarketplaceEnum[keyof typeof AccountSettingsInputMarketplaceEnum];
177
+
178
+
158
179
  /**
159
180
  * Check if a given object implements the AccountSettingsInput interface.
160
181
  */
@@ -175,6 +196,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
175
196
  'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : MoneyDtoFromJSON(json['defaultStartingOffer']),
176
197
  'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
177
198
  'sidnIdcode': json['sidnIdcode'] == null ? undefined : json['sidnIdcode'],
199
+ 'marketplace': json['marketplace'] == null ? undefined : json['marketplace'],
178
200
  'landingPage': json['landingPage'] == null ? undefined : LandingPageInputFromJSON(json['landingPage']),
179
201
  'leaseToOwn': json['leaseToOwn'] == null ? undefined : LeaseToOwnConfigurationInputFromJSON(json['leaseToOwn']),
180
202
  'description': json['description'] == null ? undefined : json['description'],
@@ -203,6 +225,7 @@ export function AccountSettingsInputToJSONTyped(value?: AccountSettingsInput | n
203
225
  'defaultStartingOffer': MoneyDtoToJSON(value['defaultStartingOffer']),
204
226
  'defaultCurrencyCode': value['defaultCurrencyCode'],
205
227
  'sidnIdcode': value['sidnIdcode'],
228
+ 'marketplace': value['marketplace'],
206
229
  'landingPage': LandingPageInputToJSON(value['landingPage']),
207
230
  'leaseToOwn': LeaseToOwnConfigurationInputToJSON(value['leaseToOwn']),
208
231
  'description': value['description'],
@@ -249,6 +249,12 @@ export interface AdminDomainListItemDto {
249
249
  * @memberof AdminDomainListItemDto
250
250
  */
251
251
  showcased: boolean;
252
+ /**
253
+ * Marketplace this domain resolves to on our nameservers, overriding the account default. Null means the account default applies; "nameshift" means the domain opts out of it and stays on our own landing page.
254
+ * @type {string}
255
+ * @memberof AdminDomainListItemDto
256
+ */
257
+ marketplace: AdminDomainListItemDtoMarketplaceEnum | null;
252
258
  /**
253
259
  * Account that owns the domain.
254
260
  * @type {AccountDto}
@@ -264,6 +270,19 @@ export interface AdminDomainListItemDto {
264
270
  }
265
271
 
266
272
 
273
+ /**
274
+ * @export
275
+ */
276
+ export const AdminDomainListItemDtoMarketplaceEnum = {
277
+ NAMESHIFT: 'nameshift',
278
+ SEDO: 'sedo',
279
+ AFTERNIC: 'afternic',
280
+ ATOM: 'atom',
281
+ SPACESHIP: 'spaceship',
282
+ NAMECLUB: 'nameclub'
283
+ } as const;
284
+ export type AdminDomainListItemDtoMarketplaceEnum = typeof AdminDomainListItemDtoMarketplaceEnum[keyof typeof AdminDomainListItemDtoMarketplaceEnum];
285
+
267
286
  /**
268
287
  * @export
269
288
  */
@@ -272,6 +291,7 @@ export const AdminDomainListItemDtoPointsToOurServerReasonEnum = {
272
291
  VALID_A_RECORDS: 'valid_a_records',
273
292
  NO_A_RECORDS: 'no_a_records',
274
293
  INVALID_A_RECORDS: 'invalid_a_records',
294
+ ROUTED_TO_MARKETPLACE: 'routed_to_marketplace',
275
295
  NX_DOMAIN: 'nx_domain',
276
296
  DNS_LOOKUP_ERROR: 'dns_lookup_error'
277
297
  } as const;
@@ -312,6 +332,7 @@ export function instanceOfAdminDomainListItemDto(value: object): value is AdminD
312
332
  if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
313
333
  if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
314
334
  if (!('showcased' in value) || value['showcased'] === undefined) return false;
335
+ if (!('marketplace' in value) || value['marketplace'] === undefined) return false;
315
336
  if (!('account' in value) || value['account'] === undefined) return false;
316
337
  if (!('pointsToOurServerReason' in value) || value['pointsToOurServerReason'] === undefined) return false;
317
338
  return true;
@@ -357,6 +378,7 @@ export function AdminDomainListItemDtoFromJSONTyped(json: any, ignoreDiscriminat
357
378
  'isLocked': json['isLocked'],
358
379
  'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
359
380
  'showcased': json['showcased'],
381
+ 'marketplace': json['marketplace'],
360
382
  'account': AccountDtoFromJSON(json['account']),
361
383
  'pointsToOurServerReason': json['pointsToOurServerReason'],
362
384
  };
@@ -403,6 +425,7 @@ export function AdminDomainListItemDtoToJSONTyped(value?: AdminDomainListItemDto
403
425
  'isLocked': value['isLocked'],
404
426
  'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
405
427
  'showcased': value['showcased'],
428
+ 'marketplace': value['marketplace'],
406
429
  'account': AccountDtoToJSON(value['account']),
407
430
  'pointsToOurServerReason': value['pointsToOurServerReason'],
408
431
  };
@@ -0,0 +1,144 @@
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 AdminMarketplaceDto
20
+ */
21
+ export interface AdminMarketplaceDto {
22
+ /**
23
+ * Stable code used to select this marketplace.
24
+ * @type {string}
25
+ * @memberof AdminMarketplaceDto
26
+ */
27
+ code: AdminMarketplaceDtoCodeEnum;
28
+ /**
29
+ * Display name of the marketplace.
30
+ * @type {string}
31
+ * @memberof AdminMarketplaceDto
32
+ */
33
+ name: string;
34
+ /**
35
+ * Whether domains may currently be routed to this marketplace. A marketplace without nameservers cannot be routed to.
36
+ * @type {boolean}
37
+ * @memberof AdminMarketplaceDto
38
+ */
39
+ routable: boolean;
40
+ /**
41
+ * Record type the verification code is published as.
42
+ * @type {string}
43
+ * @memberof AdminMarketplaceDto
44
+ */
45
+ verificationRecordType: string;
46
+ /**
47
+ * Record name the verification code is published at, relative to the domain.
48
+ * @type {string}
49
+ * @memberof AdminMarketplaceDto
50
+ */
51
+ verificationRecordName: string;
52
+ /**
53
+ * An example of the value this marketplace issues, shown so a seller recognises it.
54
+ * @type {string}
55
+ * @memberof AdminMarketplaceDto
56
+ */
57
+ verificationExample: string | null;
58
+ /**
59
+ * Authoritative nameservers queried when resolving a domain routed here.
60
+ * @type {Array<string>}
61
+ * @memberof AdminMarketplaceDto
62
+ */
63
+ nameservers: Array<string>;
64
+ /**
65
+ * Whether the marketplace is enabled.
66
+ * @type {boolean}
67
+ * @memberof AdminMarketplaceDto
68
+ */
69
+ enabled: boolean;
70
+ }
71
+
72
+
73
+ /**
74
+ * @export
75
+ */
76
+ export const AdminMarketplaceDtoCodeEnum = {
77
+ NAMESHIFT: 'nameshift',
78
+ SEDO: 'sedo',
79
+ AFTERNIC: 'afternic',
80
+ ATOM: 'atom',
81
+ SPACESHIP: 'spaceship',
82
+ NAMECLUB: 'nameclub'
83
+ } as const;
84
+ export type AdminMarketplaceDtoCodeEnum = typeof AdminMarketplaceDtoCodeEnum[keyof typeof AdminMarketplaceDtoCodeEnum];
85
+
86
+
87
+ /**
88
+ * Check if a given object implements the AdminMarketplaceDto interface.
89
+ */
90
+ export function instanceOfAdminMarketplaceDto(value: object): value is AdminMarketplaceDto {
91
+ if (!('code' in value) || value['code'] === undefined) return false;
92
+ if (!('name' in value) || value['name'] === undefined) return false;
93
+ if (!('routable' in value) || value['routable'] === undefined) return false;
94
+ if (!('verificationRecordType' in value) || value['verificationRecordType'] === undefined) return false;
95
+ if (!('verificationRecordName' in value) || value['verificationRecordName'] === undefined) return false;
96
+ if (!('verificationExample' in value) || value['verificationExample'] === undefined) return false;
97
+ if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
98
+ if (!('enabled' in value) || value['enabled'] === undefined) return false;
99
+ return true;
100
+ }
101
+
102
+ export function AdminMarketplaceDtoFromJSON(json: any): AdminMarketplaceDto {
103
+ return AdminMarketplaceDtoFromJSONTyped(json, false);
104
+ }
105
+
106
+ export function AdminMarketplaceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminMarketplaceDto {
107
+ if (json == null) {
108
+ return json;
109
+ }
110
+ return {
111
+
112
+ 'code': json['code'],
113
+ 'name': json['name'],
114
+ 'routable': json['routable'],
115
+ 'verificationRecordType': json['verificationRecordType'],
116
+ 'verificationRecordName': json['verificationRecordName'],
117
+ 'verificationExample': json['verificationExample'],
118
+ 'nameservers': json['nameservers'],
119
+ 'enabled': json['enabled'],
120
+ };
121
+ }
122
+
123
+ export function AdminMarketplaceDtoToJSON(json: any): AdminMarketplaceDto {
124
+ return AdminMarketplaceDtoToJSONTyped(json, false);
125
+ }
126
+
127
+ export function AdminMarketplaceDtoToJSONTyped(value?: AdminMarketplaceDto | null, ignoreDiscriminator: boolean = false): any {
128
+ if (value == null) {
129
+ return value;
130
+ }
131
+
132
+ return {
133
+
134
+ 'code': value['code'],
135
+ 'name': value['name'],
136
+ 'routable': value['routable'],
137
+ 'verificationRecordType': value['verificationRecordType'],
138
+ 'verificationRecordName': value['verificationRecordName'],
139
+ 'verificationExample': value['verificationExample'],
140
+ 'nameservers': value['nameservers'],
141
+ 'enabled': value['enabled'],
142
+ };
143
+ }
144
+