@randock/nameshift-api-client 0.0.453 → 0.0.455

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.
@@ -13,12 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.IntersectionDomainDtoWithSeoMetricsDtoMarketplaceEnum = void 0;
17
- exports.instanceOfIntersectionDomainDtoWithSeoMetricsDto = instanceOfIntersectionDomainDtoWithSeoMetricsDto;
18
- exports.IntersectionDomainDtoWithSeoMetricsDtoFromJSON = IntersectionDomainDtoWithSeoMetricsDtoFromJSON;
19
- exports.IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped = IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped;
20
- exports.IntersectionDomainDtoWithSeoMetricsDtoToJSON = IntersectionDomainDtoWithSeoMetricsDtoToJSON;
21
- exports.IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped = IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped;
16
+ exports.IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoRoutedToEnum = exports.IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoMarketplaceEnum = void 0;
17
+ exports.instanceOfIntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto = instanceOfIntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto;
18
+ exports.IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoFromJSON = IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoFromJSON;
19
+ exports.IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoFromJSONTyped = IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoFromJSONTyped;
20
+ exports.IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoToJSON = IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoToJSON;
21
+ exports.IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoToJSONTyped = IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoToJSONTyped;
22
22
  var MoneyDto_1 = require("./MoneyDto");
23
23
  var RentConfigurationDto_1 = require("./RentConfigurationDto");
24
24
  var DomainAuctionDto_1 = require("./DomainAuctionDto");
@@ -29,7 +29,7 @@ var DomainLeadPriceNegotiatorAiAgentConfigurationDto_1 = require("./DomainLeadPr
29
29
  /**
30
30
  * @export
31
31
  */
32
- exports.IntersectionDomainDtoWithSeoMetricsDtoMarketplaceEnum = {
32
+ exports.IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoMarketplaceEnum = {
33
33
  NAMESHIFT: 'nameshift',
34
34
  SEDO: 'sedo',
35
35
  AFTERNIC: 'afternic',
@@ -38,9 +38,20 @@ exports.IntersectionDomainDtoWithSeoMetricsDtoMarketplaceEnum = {
38
38
  NAMECLUB: 'nameclub'
39
39
  };
40
40
  /**
41
- * Check if a given object implements the IntersectionDomainDtoWithSeoMetricsDto interface.
41
+ * @export
42
42
  */
43
- function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value) {
43
+ exports.IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoRoutedToEnum = {
44
+ NAMESHIFT: 'nameshift',
45
+ SEDO: 'sedo',
46
+ AFTERNIC: 'afternic',
47
+ ATOM: 'atom',
48
+ SPACESHIP: 'spaceship',
49
+ NAMECLUB: 'nameclub'
50
+ };
51
+ /**
52
+ * Check if a given object implements the IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto interface.
53
+ */
54
+ function instanceOfIntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto(value) {
44
55
  if (!('id' in value) || value['id'] === undefined)
45
56
  return false;
46
57
  if (!('accountId' in value) || value['accountId'] === undefined)
@@ -105,12 +116,14 @@ function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value) {
105
116
  return false;
106
117
  if (!('seoMetrics' in value) || value['seoMetrics'] === undefined)
107
118
  return false;
119
+ if (!('routedTo' in value) || value['routedTo'] === undefined)
120
+ return false;
108
121
  return true;
109
122
  }
110
- function IntersectionDomainDtoWithSeoMetricsDtoFromJSON(json) {
111
- return IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json, false);
123
+ function IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoFromJSON(json) {
124
+ return IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoFromJSONTyped(json, false);
112
125
  }
113
- function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json, ignoreDiscriminator) {
126
+ function IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoFromJSONTyped(json, ignoreDiscriminator) {
114
127
  if (json == null) {
115
128
  return json;
116
129
  }
@@ -147,12 +160,13 @@ function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json, ignoreDiscrim
147
160
  'showcased': json['showcased'],
148
161
  'marketplace': json['marketplace'],
149
162
  'seoMetrics': (0, SeoMetricsDto_1.SeoMetricsDtoFromJSON)(json['seoMetrics']),
163
+ 'routedTo': json['routedTo'],
150
164
  };
151
165
  }
152
- function IntersectionDomainDtoWithSeoMetricsDtoToJSON(json) {
153
- return IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(json, false);
166
+ function IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoToJSON(json) {
167
+ return IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoToJSONTyped(json, false);
154
168
  }
155
- function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value, ignoreDiscriminator) {
169
+ function IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoToJSONTyped(value, ignoreDiscriminator) {
156
170
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
157
171
  if (value == null) {
158
172
  return value;
@@ -190,5 +204,6 @@ function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value, ignoreDiscrimi
190
204
  'showcased': value['showcased'],
191
205
  'marketplace': value['marketplace'],
192
206
  'seoMetrics': (0, SeoMetricsDto_1.SeoMetricsDtoToJSON)(value['seoMetrics']),
207
+ 'routedTo': value['routedTo'],
193
208
  };
194
209
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { PaginateResponseLinks } from './PaginateResponseLinks';
13
- import type { IntersectionDomainDtoWithSeoMetricsDto } from './IntersectionDomainDtoWithSeoMetricsDto';
13
+ import type { IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto } from './IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto';
14
14
  import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
15
  /**
16
16
  *
@@ -20,10 +20,10 @@ import type { PaginateResponseMeta } from './PaginateResponseMeta';
20
20
  export interface List200Response2 {
21
21
  /**
22
22
  *
23
- * @type {Array<IntersectionDomainDtoWithSeoMetricsDto>}
23
+ * @type {Array<IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto>}
24
24
  * @memberof List200Response2
25
25
  */
26
- data: Array<IntersectionDomainDtoWithSeoMetricsDto>;
26
+ data: Array<IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto>;
27
27
  /**
28
28
  *
29
29
  * @type {PaginateResponseMeta}
@@ -19,7 +19,7 @@ exports.List200Response2FromJSONTyped = List200Response2FromJSONTyped;
19
19
  exports.List200Response2ToJSON = List200Response2ToJSON;
20
20
  exports.List200Response2ToJSONTyped = List200Response2ToJSONTyped;
21
21
  var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
22
- var IntersectionDomainDtoWithSeoMetricsDto_1 = require("./IntersectionDomainDtoWithSeoMetricsDto");
22
+ var IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto_1 = require("./IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto");
23
23
  var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
24
24
  /**
25
25
  * Check if a given object implements the List200Response2 interface.
@@ -41,7 +41,7 @@ function List200Response2FromJSONTyped(json, ignoreDiscriminator) {
41
41
  return json;
42
42
  }
43
43
  return {
44
- 'data': (json['data'].map(IntersectionDomainDtoWithSeoMetricsDto_1.IntersectionDomainDtoWithSeoMetricsDtoFromJSON)),
44
+ 'data': (json['data'].map(IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto_1.IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoFromJSON)),
45
45
  'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
46
46
  'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
47
47
  };
@@ -55,7 +55,7 @@ function List200Response2ToJSONTyped(value, ignoreDiscriminator) {
55
55
  return value;
56
56
  }
57
57
  return {
58
- 'data': (value['data'].map(IntersectionDomainDtoWithSeoMetricsDto_1.IntersectionDomainDtoWithSeoMetricsDtoToJSON)),
58
+ 'data': (value['data'].map(IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto_1.IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDtoToJSON)),
59
59
  'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
60
60
  'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
61
61
  };
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Nameshift
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TranslateDomainSearchInput
16
+ */
17
+ export interface TranslateDomainSearchInput {
18
+ /**
19
+ * What the seller is looking for, in their own words. A single word is handled client-side as a name search and should not reach this endpoint.
20
+ * @type {string}
21
+ * @memberof TranslateDomainSearchInput
22
+ */
23
+ query: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the TranslateDomainSearchInput interface.
27
+ */
28
+ export declare function instanceOfTranslateDomainSearchInput(value: object): value is TranslateDomainSearchInput;
29
+ export declare function TranslateDomainSearchInputFromJSON(json: any): TranslateDomainSearchInput;
30
+ export declare function TranslateDomainSearchInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranslateDomainSearchInput;
31
+ export declare function TranslateDomainSearchInputToJSON(json: any): TranslateDomainSearchInput;
32
+ export declare function TranslateDomainSearchInputToJSONTyped(value?: TranslateDomainSearchInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfTranslateDomainSearchInput = instanceOfTranslateDomainSearchInput;
17
+ exports.TranslateDomainSearchInputFromJSON = TranslateDomainSearchInputFromJSON;
18
+ exports.TranslateDomainSearchInputFromJSONTyped = TranslateDomainSearchInputFromJSONTyped;
19
+ exports.TranslateDomainSearchInputToJSON = TranslateDomainSearchInputToJSON;
20
+ exports.TranslateDomainSearchInputToJSONTyped = TranslateDomainSearchInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the TranslateDomainSearchInput interface.
23
+ */
24
+ function instanceOfTranslateDomainSearchInput(value) {
25
+ if (!('query' in value) || value['query'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function TranslateDomainSearchInputFromJSON(json) {
30
+ return TranslateDomainSearchInputFromJSONTyped(json, false);
31
+ }
32
+ function TranslateDomainSearchInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'query': json['query'],
38
+ };
39
+ }
40
+ function TranslateDomainSearchInputToJSON(json) {
41
+ return TranslateDomainSearchInputToJSONTyped(json, false);
42
+ }
43
+ function TranslateDomainSearchInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'query': value['query'],
50
+ };
51
+ }
@@ -195,6 +195,7 @@ export * from './DomainSalesInformationDto';
195
195
  export * from './DomainSalesInformationDtoLandingPageDesign';
196
196
  export * from './DomainSalesInformationLeaseToOwnConfigurationDto';
197
197
  export * from './DomainSalesInformationRentConfigurationDto';
198
+ export * from './DomainSearchTranslationDto';
198
199
  export * from './DomainSellerDto';
199
200
  export * from './DomainStatsDto';
200
201
  export * from './DomainTldsDto';
@@ -256,7 +257,7 @@ export * from './HttpException';
256
257
  export * from './IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto';
257
258
  export * from './IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto';
258
259
  export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
259
- export * from './IntersectionDomainDtoWithSeoMetricsDto';
260
+ export * from './IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto';
260
261
  export * from './IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto';
261
262
  export * from './IntersectionTaskListTaskDto';
262
263
  export * from './IntersectionTaskListTaskDtoData';
@@ -474,6 +475,7 @@ export * from './TimeTableConfigurationDto';
474
475
  export * from './TimeTableConfigurationInput';
475
476
  export * from './TopAffiliateSellerDto';
476
477
  export * from './TopSellerAccountDto';
478
+ export * from './TranslateDomainSearchInput';
477
479
  export * from './UkBankAccountDetails';
478
480
  export * from './UpdateAccountBillingInformationInput';
479
481
  export * from './UpdateAccountChallengeRewardBalanceInput';
@@ -213,6 +213,7 @@ __exportStar(require("./DomainSalesInformationDto"), exports);
213
213
  __exportStar(require("./DomainSalesInformationDtoLandingPageDesign"), exports);
214
214
  __exportStar(require("./DomainSalesInformationLeaseToOwnConfigurationDto"), exports);
215
215
  __exportStar(require("./DomainSalesInformationRentConfigurationDto"), exports);
216
+ __exportStar(require("./DomainSearchTranslationDto"), exports);
216
217
  __exportStar(require("./DomainSellerDto"), exports);
217
218
  __exportStar(require("./DomainStatsDto"), exports);
218
219
  __exportStar(require("./DomainTldsDto"), exports);
@@ -274,7 +275,7 @@ __exportStar(require("./HttpException"), exports);
274
275
  __exportStar(require("./IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto"), exports);
275
276
  __exportStar(require("./IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto"), exports);
276
277
  __exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
277
- __exportStar(require("./IntersectionDomainDtoWithSeoMetricsDto"), exports);
278
+ __exportStar(require("./IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto"), exports);
278
279
  __exportStar(require("./IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto"), exports);
279
280
  __exportStar(require("./IntersectionTaskListTaskDto"), exports);
280
281
  __exportStar(require("./IntersectionTaskListTaskDtoData"), exports);
@@ -492,6 +493,7 @@ __exportStar(require("./TimeTableConfigurationDto"), exports);
492
493
  __exportStar(require("./TimeTableConfigurationInput"), exports);
493
494
  __exportStar(require("./TopAffiliateSellerDto"), exports);
494
495
  __exportStar(require("./TopSellerAccountDto"), exports);
496
+ __exportStar(require("./TranslateDomainSearchInput"), exports);
495
497
  __exportStar(require("./UkBankAccountDetails"), exports);
496
498
  __exportStar(require("./UpdateAccountBillingInformationInput"), exports);
497
499
  __exportStar(require("./UpdateAccountChallengeRewardBalanceInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.453",
3
+ "version": "0.0.455",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -23,6 +23,7 @@ import type {
23
23
  DeleteDomainsInput,
24
24
  DomainExchangeRateDto,
25
25
  DomainFiltersDto,
26
+ DomainSearchTranslationDto,
26
27
  DomainUrlDto,
27
28
  DomainVerificationStatusDto,
28
29
  GetAllDomainTransfers200Response,
@@ -32,6 +33,7 @@ import type {
32
33
  SellerDomainAffiliateCommissionDto,
33
34
  SellerDomainTransferDto,
34
35
  StartAuctionInput,
36
+ TranslateDomainSearchInput,
35
37
  UpdateDomainInput,
36
38
  UpdateDomainTransferAuthCodeInput,
37
39
  UpdateDomainTransferIpsTagInput,
@@ -54,6 +56,8 @@ import {
54
56
  DomainExchangeRateDtoToJSON,
55
57
  DomainFiltersDtoFromJSON,
56
58
  DomainFiltersDtoToJSON,
59
+ DomainSearchTranslationDtoFromJSON,
60
+ DomainSearchTranslationDtoToJSON,
57
61
  DomainUrlDtoFromJSON,
58
62
  DomainUrlDtoToJSON,
59
63
  DomainVerificationStatusDtoFromJSON,
@@ -72,6 +76,8 @@ import {
72
76
  SellerDomainTransferDtoToJSON,
73
77
  StartAuctionInputFromJSON,
74
78
  StartAuctionInputToJSON,
79
+ TranslateDomainSearchInputFromJSON,
80
+ TranslateDomainSearchInputToJSON,
75
81
  UpdateDomainInputFromJSON,
76
82
  UpdateDomainInputToJSON,
77
83
  UpdateDomainTransferAuthCodeInputFromJSON,
@@ -150,6 +156,7 @@ export interface DomainsApiGetDomainUrlRequest {
150
156
  }
151
157
 
152
158
  export interface DomainsApiListRequest {
159
+ searchFilter?: string;
153
160
  filter?: { [key: string]: string; };
154
161
  page?: number;
155
162
  limit?: number;
@@ -168,6 +175,10 @@ export interface DomainsApiStartAuctionRequest {
168
175
  startAuctionInput: StartAuctionInput;
169
176
  }
170
177
 
178
+ export interface DomainsApiTranslateSearchRequest {
179
+ translateDomainSearchInput: TranslateDomainSearchInput;
180
+ }
181
+
171
182
  export interface DomainsApiUpdateRequest {
172
183
  domainId: string;
173
184
  updateDomainInput: UpdateDomainInput;
@@ -1039,6 +1050,10 @@ export class DomainsApi extends runtime.BaseAPI {
1039
1050
  async listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response2>> {
1040
1051
  const queryParameters: any = {};
1041
1052
 
1053
+ if (requestParameters['searchFilter'] != null) {
1054
+ queryParameters['searchFilter'] = requestParameters['searchFilter'];
1055
+ }
1056
+
1042
1057
  if (requestParameters['filter'] != null) {
1043
1058
  queryParameters['filter'] = requestParameters['filter'];
1044
1059
  }
@@ -1172,6 +1187,56 @@ export class DomainsApi extends runtime.BaseAPI {
1172
1187
  await this.startAuctionRaw(requestParameters, initOverrides);
1173
1188
  }
1174
1189
 
1190
+ /**
1191
+ * Turns a sentence into a filter over the account\'s own domains, with a plain-language summary of what it means. Single-word queries are name searches and should be handled client-side rather than sent here. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
1192
+ * Translate a natural-language domain search into a filter
1193
+ */
1194
+ async translateSearchRaw(requestParameters: DomainsApiTranslateSearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainSearchTranslationDto>> {
1195
+ if (requestParameters['translateDomainSearchInput'] == null) {
1196
+ throw new runtime.RequiredError(
1197
+ 'translateDomainSearchInput',
1198
+ 'Required parameter "translateDomainSearchInput" was null or undefined when calling translateSearch().'
1199
+ );
1200
+ }
1201
+
1202
+ const queryParameters: any = {};
1203
+
1204
+ const headerParameters: runtime.HTTPHeaders = {};
1205
+
1206
+ headerParameters['Content-Type'] = 'application/json';
1207
+
1208
+ if (this.configuration && this.configuration.apiKey) {
1209
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
1210
+ }
1211
+
1212
+ if (this.configuration && this.configuration.accessToken) {
1213
+ const token = this.configuration.accessToken;
1214
+ const tokenString = await token("bearer", []);
1215
+
1216
+ if (tokenString) {
1217
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1218
+ }
1219
+ }
1220
+ const response = await this.request({
1221
+ path: `/private/domains/search/translate`,
1222
+ method: 'POST',
1223
+ headers: headerParameters,
1224
+ query: queryParameters,
1225
+ body: TranslateDomainSearchInputToJSON(requestParameters['translateDomainSearchInput']),
1226
+ }, initOverrides);
1227
+
1228
+ return new runtime.JSONApiResponse(response, (jsonValue) => DomainSearchTranslationDtoFromJSON(jsonValue));
1229
+ }
1230
+
1231
+ /**
1232
+ * Turns a sentence into a filter over the account\'s own domains, with a plain-language summary of what it means. Single-word queries are name searches and should be handled client-side rather than sent here. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
1233
+ * Translate a natural-language domain search into a filter
1234
+ */
1235
+ async translateSearch(requestParameters: DomainsApiTranslateSearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainSearchTranslationDto> {
1236
+ const response = await this.translateSearchRaw(requestParameters, initOverrides);
1237
+ return await response.value();
1238
+ }
1239
+
1175
1240
  /**
1176
1241
  * Updates pricing, landing page, and other settings for a single domain. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
1177
1242
  * Update domain
@@ -0,0 +1,93 @@
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 DomainSearchTranslationDto
20
+ */
21
+ export interface DomainSearchTranslationDto {
22
+ /**
23
+ * False when the request could not be expressed as a filter. The filter is empty in that case and must not be applied — show the summary instead.
24
+ * @type {boolean}
25
+ * @memberof DomainSearchTranslationDto
26
+ */
27
+ understood: boolean;
28
+ /**
29
+ * Opaque filter to send back on the domain list request. Its shape is an implementation detail and may change; clients should pass it through unmodified rather than reading it.
30
+ * @type {{ [key: string]: any; }}
31
+ * @memberof DomainSearchTranslationDto
32
+ */
33
+ filter: { [key: string]: any; };
34
+ /**
35
+ * One sentence describing what is being shown, for display above the results.
36
+ * @type {string}
37
+ * @memberof DomainSearchTranslationDto
38
+ */
39
+ summary: string;
40
+ /**
41
+ * Parts of the request that could not be expressed as a filter. Empty when everything was.
42
+ * @type {Array<string>}
43
+ * @memberof DomainSearchTranslationDto
44
+ */
45
+ unresolved: Array<string>;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the DomainSearchTranslationDto interface.
50
+ */
51
+ export function instanceOfDomainSearchTranslationDto(value: object): value is DomainSearchTranslationDto {
52
+ if (!('understood' in value) || value['understood'] === undefined) return false;
53
+ if (!('filter' in value) || value['filter'] === undefined) return false;
54
+ if (!('summary' in value) || value['summary'] === undefined) return false;
55
+ if (!('unresolved' in value) || value['unresolved'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function DomainSearchTranslationDtoFromJSON(json: any): DomainSearchTranslationDto {
60
+ return DomainSearchTranslationDtoFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function DomainSearchTranslationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainSearchTranslationDto {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'understood': json['understood'],
70
+ 'filter': json['filter'],
71
+ 'summary': json['summary'],
72
+ 'unresolved': json['unresolved'],
73
+ };
74
+ }
75
+
76
+ export function DomainSearchTranslationDtoToJSON(json: any): DomainSearchTranslationDto {
77
+ return DomainSearchTranslationDtoToJSONTyped(json, false);
78
+ }
79
+
80
+ export function DomainSearchTranslationDtoToJSONTyped(value?: DomainSearchTranslationDto | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'understood': value['understood'],
88
+ 'filter': value['filter'],
89
+ 'summary': value['summary'],
90
+ 'unresolved': value['unresolved'],
91
+ };
92
+ }
93
+