@randock/nameshift-api-client 0.0.53 → 0.0.55

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 (33) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +3 -3
  3. package/dist/apis/DomainsApi.d.ts +2 -1
  4. package/dist/apis/DomainsApi.js +8 -3
  5. package/dist/models/DomainDto.d.ts +7 -1
  6. package/dist/models/DomainDto.js +4 -0
  7. package/dist/models/DomainSalesInformationDto.d.ts +13 -6
  8. package/dist/models/DomainSalesInformationDto.js +10 -5
  9. package/dist/models/DomainSalesInformationDtoBuyNowPrice.d.ts +37 -0
  10. package/dist/models/DomainSalesInformationDtoBuyNowPrice.js +51 -0
  11. package/dist/models/DomainSalesInformationDtoMinOfferPrice.d.ts +37 -0
  12. package/dist/models/DomainSalesInformationDtoMinOfferPrice.js +51 -0
  13. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -1
  14. package/dist/models/IntersectionDomainDtoWithAccountDto.js +4 -0
  15. package/dist/models/IntersectionDomainDtoWithDomainUrlDto.d.ts +99 -0
  16. package/dist/models/IntersectionDomainDtoWithDomainUrlDto.js +92 -0
  17. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -1
  18. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
  19. package/dist/models/List200Response.d.ts +3 -3
  20. package/dist/models/List200Response.js +3 -3
  21. package/dist/models/index.d.ts +3 -0
  22. package/dist/models/index.js +3 -0
  23. package/package.json +1 -1
  24. package/src/apis/DomainsApi.ts +13 -1
  25. package/src/models/DomainDto.ts +10 -1
  26. package/src/models/DomainSalesInformationDto.ts +29 -14
  27. package/src/models/DomainSalesInformationDtoBuyNowPrice.ts +70 -0
  28. package/src/models/DomainSalesInformationDtoMinOfferPrice.ts +70 -0
  29. package/src/models/IntersectionDomainDtoWithAccountDto.ts +10 -1
  30. package/src/models/IntersectionDomainDtoWithDomainUrlDto.ts +168 -0
  31. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +10 -1
  32. package/src/models/List200Response.ts +9 -9
  33. package/src/models/index.ts +3 -0
@@ -31,6 +31,8 @@ src/models/DashboardStatsDto.ts
31
31
  src/models/DeleteDomainsInput.ts
32
32
  src/models/DomainDto.ts
33
33
  src/models/DomainSalesInformationDto.ts
34
+ src/models/DomainSalesInformationDtoBuyNowPrice.ts
35
+ src/models/DomainSalesInformationDtoMinOfferPrice.ts
34
36
  src/models/DomainSellerDto.ts
35
37
  src/models/DomainTransferAgentDto.ts
36
38
  src/models/DomainTransferDomainDto.ts
@@ -42,6 +44,7 @@ src/models/GetAllDomainTransfers200Response.ts
42
44
  src/models/HttpException.ts
43
45
  src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts
44
46
  src/models/IntersectionDomainDtoWithAccountDto.ts
47
+ src/models/IntersectionDomainDtoWithDomainUrlDto.ts
45
48
  src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
46
49
  src/models/IntersectionLeadDtoWithLeadDetailsDto.ts
47
50
  src/models/IntersectionLeadDtoWithListFieldsDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.53
1
+ ## @randock/nameshift-api-client@0.0.55
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.53 --save
39
+ npm install @randock/nameshift-api-client@0.0.55 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- a5c5b964309b745f1f2778dbc910fa161ce4cfd07931e4f3c79684fc029a1d15fee5e643666c901f147815bfd56436a2
47
+ cba6087b6c28e37ec14f55d14af27086de71f49565012765df5ef9cd7a05ce177cd0704f8c794bd2f204c6c2afe2bbed
@@ -37,6 +37,7 @@ export interface DomainsApiGetDomainTransferRequest {
37
37
  transferId: string;
38
38
  }
39
39
  export interface DomainsApiListRequest {
40
+ locale: string;
40
41
  filter?: object;
41
42
  page?: number;
42
43
  limit?: number;
@@ -117,7 +118,7 @@ export declare class DomainsApi extends runtime.BaseAPI {
117
118
  /**
118
119
  *
119
120
  */
120
- list(requestParameters?: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response>;
121
+ list(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response>;
121
122
  /**
122
123
  *
123
124
  */
@@ -480,7 +480,13 @@ var DomainsApi = /** @class */ (function (_super) {
480
480
  return __generator(this, function (_a) {
481
481
  switch (_a.label) {
482
482
  case 0:
483
+ if (requestParameters['locale'] == null) {
484
+ throw new runtime.RequiredError('locale', 'Required parameter "locale" was null or undefined when calling list().');
485
+ }
483
486
  queryParameters = {};
487
+ if (requestParameters['locale'] != null) {
488
+ queryParameters['locale'] = requestParameters['locale'];
489
+ }
484
490
  if (requestParameters['filter'] != null) {
485
491
  queryParameters['filter'] = requestParameters['filter'];
486
492
  }
@@ -519,10 +525,9 @@ var DomainsApi = /** @class */ (function (_super) {
519
525
  /**
520
526
  *
521
527
  */
522
- DomainsApi.prototype.list = function () {
523
- return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
528
+ DomainsApi.prototype.list = function (requestParameters, initOverrides) {
529
+ return __awaiter(this, void 0, void 0, function () {
524
530
  var response;
525
- if (requestParameters === void 0) { requestParameters = {}; }
526
531
  return __generator(this, function (_a) {
527
532
  switch (_a.label) {
528
533
  case 0: return [4 /*yield*/, this.listRaw(requestParameters, initOverrides)];
@@ -53,11 +53,17 @@ export interface DomainDto {
53
53
  */
54
54
  nameservers: boolean;
55
55
  /**
56
- * The domain name (example.com)
56
+ * The ASCII domain name (example.com, xn--maana-pta.com)
57
57
  * @type {string}
58
58
  * @memberof DomainDto
59
59
  */
60
60
  name: string;
61
+ /**
62
+ * The unicode domain name (example.com, mañana.com)
63
+ * @type {string}
64
+ * @memberof DomainDto
65
+ */
66
+ displayName: string;
61
67
  /**
62
68
  * /**
63
69
  * The domain's currency code (ISO 4217)
@@ -33,6 +33,8 @@ function instanceOfDomainDto(value) {
33
33
  return false;
34
34
  if (!('name' in value) || value['name'] === undefined)
35
35
  return false;
36
+ if (!('displayName' in value) || value['displayName'] === undefined)
37
+ return false;
36
38
  if (!('currencyCode' in value) || value['currencyCode'] === undefined)
37
39
  return false;
38
40
  if (!('buyNow' in value) || value['buyNow'] === undefined)
@@ -58,6 +60,7 @@ function DomainDtoFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'verified': json['verified'],
59
61
  'nameservers': json['nameservers'],
60
62
  'name': json['name'],
63
+ 'displayName': json['displayName'],
61
64
  'currencyCode': json['currencyCode'],
62
65
  'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
63
66
  'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
@@ -76,6 +79,7 @@ function DomainDtoToJSON(value) {
76
79
  'verified': value['verified'],
77
80
  'nameservers': value['nameservers'],
78
81
  'name': value['name'],
82
+ 'displayName': value['displayName'],
79
83
  'currencyCode': value['currencyCode'],
80
84
  'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
81
85
  'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
@@ -9,8 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { DomainSalesInformationDtoMinOfferPrice } from './DomainSalesInformationDtoMinOfferPrice';
12
13
  import type { DomainSellerDto } from './DomainSellerDto';
13
- import type { MoneyDto } from './MoneyDto';
14
+ import type { DomainSalesInformationDtoBuyNowPrice } from './DomainSalesInformationDtoBuyNowPrice';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -18,23 +19,29 @@ import type { MoneyDto } from './MoneyDto';
18
19
  */
19
20
  export interface DomainSalesInformationDto {
20
21
  /**
21
- * The domain name (example.com)
22
+ * The domain name (example.com, xn--maana-pta.com)
22
23
  * @type {string}
23
24
  * @memberof DomainSalesInformationDto
24
25
  */
25
26
  domain: string;
27
+ /**
28
+ * The domain display name (example.com, mañana.com)
29
+ * @type {string}
30
+ * @memberof DomainSalesInformationDto
31
+ */
32
+ domainDisplayName: string;
26
33
  /**
27
34
  *
28
- * @type {MoneyDto}
35
+ * @type {DomainSalesInformationDtoBuyNowPrice}
29
36
  * @memberof DomainSalesInformationDto
30
37
  */
31
- buyNowPrice: MoneyDto | null;
38
+ buyNowPrice: DomainSalesInformationDtoBuyNowPrice | null;
32
39
  /**
33
40
  *
34
- * @type {MoneyDto}
41
+ * @type {DomainSalesInformationDtoMinOfferPrice}
35
42
  * @memberof DomainSalesInformationDto
36
43
  */
37
- minOfferPrice: MoneyDto | null;
44
+ minOfferPrice: DomainSalesInformationDtoMinOfferPrice | null;
38
45
  /**
39
46
  * The domain seller information
40
47
  * @type {DomainSellerDto}
@@ -14,14 +14,17 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.DomainSalesInformationDtoToJSON = exports.DomainSalesInformationDtoFromJSONTyped = exports.DomainSalesInformationDtoFromJSON = exports.instanceOfDomainSalesInformationDto = void 0;
17
+ var DomainSalesInformationDtoMinOfferPrice_1 = require("./DomainSalesInformationDtoMinOfferPrice");
17
18
  var DomainSellerDto_1 = require("./DomainSellerDto");
18
- var MoneyDto_1 = require("./MoneyDto");
19
+ var DomainSalesInformationDtoBuyNowPrice_1 = require("./DomainSalesInformationDtoBuyNowPrice");
19
20
  /**
20
21
  * Check if a given object implements the DomainSalesInformationDto interface.
21
22
  */
22
23
  function instanceOfDomainSalesInformationDto(value) {
23
24
  if (!('domain' in value) || value['domain'] === undefined)
24
25
  return false;
26
+ if (!('domainDisplayName' in value) || value['domainDisplayName'] === undefined)
27
+ return false;
25
28
  if (!('buyNowPrice' in value) || value['buyNowPrice'] === undefined)
26
29
  return false;
27
30
  if (!('minOfferPrice' in value) || value['minOfferPrice'] === undefined)
@@ -41,8 +44,9 @@ function DomainSalesInformationDtoFromJSONTyped(json, ignoreDiscriminator) {
41
44
  }
42
45
  return {
43
46
  'domain': json['domain'],
44
- 'buyNowPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNowPrice']),
45
- 'minOfferPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOfferPrice']),
47
+ 'domainDisplayName': json['domainDisplayName'],
48
+ 'buyNowPrice': (0, DomainSalesInformationDtoBuyNowPrice_1.DomainSalesInformationDtoBuyNowPriceFromJSON)(json['buyNowPrice']),
49
+ 'minOfferPrice': (0, DomainSalesInformationDtoMinOfferPrice_1.DomainSalesInformationDtoMinOfferPriceFromJSON)(json['minOfferPrice']),
46
50
  'seller': (0, DomainSellerDto_1.DomainSellerDtoFromJSON)(json['seller']),
47
51
  };
48
52
  }
@@ -53,8 +57,9 @@ function DomainSalesInformationDtoToJSON(value) {
53
57
  }
54
58
  return {
55
59
  'domain': value['domain'],
56
- 'buyNowPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNowPrice']),
57
- 'minOfferPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOfferPrice']),
60
+ 'domainDisplayName': value['domainDisplayName'],
61
+ 'buyNowPrice': (0, DomainSalesInformationDtoBuyNowPrice_1.DomainSalesInformationDtoBuyNowPriceToJSON)(value['buyNowPrice']),
62
+ 'minOfferPrice': (0, DomainSalesInformationDtoMinOfferPrice_1.DomainSalesInformationDtoMinOfferPriceToJSON)(value['minOfferPrice']),
58
63
  'seller': (0, DomainSellerDto_1.DomainSellerDtoToJSON)(value['seller']),
59
64
  };
60
65
  }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
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
+ * Buy now price or null if buy now is not enabled
14
+ * @export
15
+ * @interface DomainSalesInformationDtoBuyNowPrice
16
+ */
17
+ export interface DomainSalesInformationDtoBuyNowPrice {
18
+ /**
19
+ * Monetary amount, represented as an integer without scale/decimals.
20
+ * @type {number}
21
+ * @memberof DomainSalesInformationDtoBuyNowPrice
22
+ */
23
+ amount: number;
24
+ /**
25
+ * Three letter ISO currency code
26
+ * @type {string}
27
+ * @memberof DomainSalesInformationDtoBuyNowPrice
28
+ */
29
+ currencyCode: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the DomainSalesInformationDtoBuyNowPrice interface.
33
+ */
34
+ export declare function instanceOfDomainSalesInformationDtoBuyNowPrice(value: object): value is DomainSalesInformationDtoBuyNowPrice;
35
+ export declare function DomainSalesInformationDtoBuyNowPriceFromJSON(json: any): DomainSalesInformationDtoBuyNowPrice;
36
+ export declare function DomainSalesInformationDtoBuyNowPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainSalesInformationDtoBuyNowPrice;
37
+ export declare function DomainSalesInformationDtoBuyNowPriceToJSON(value?: DomainSalesInformationDtoBuyNowPrice | null): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
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.DomainSalesInformationDtoBuyNowPriceToJSON = exports.DomainSalesInformationDtoBuyNowPriceFromJSONTyped = exports.DomainSalesInformationDtoBuyNowPriceFromJSON = exports.instanceOfDomainSalesInformationDtoBuyNowPrice = void 0;
17
+ /**
18
+ * Check if a given object implements the DomainSalesInformationDtoBuyNowPrice interface.
19
+ */
20
+ function instanceOfDomainSalesInformationDtoBuyNowPrice(value) {
21
+ if (!('amount' in value) || value['amount'] === undefined)
22
+ return false;
23
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ exports.instanceOfDomainSalesInformationDtoBuyNowPrice = instanceOfDomainSalesInformationDtoBuyNowPrice;
28
+ function DomainSalesInformationDtoBuyNowPriceFromJSON(json) {
29
+ return DomainSalesInformationDtoBuyNowPriceFromJSONTyped(json, false);
30
+ }
31
+ exports.DomainSalesInformationDtoBuyNowPriceFromJSON = DomainSalesInformationDtoBuyNowPriceFromJSON;
32
+ function DomainSalesInformationDtoBuyNowPriceFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'amount': json['amount'],
38
+ 'currencyCode': json['currencyCode'],
39
+ };
40
+ }
41
+ exports.DomainSalesInformationDtoBuyNowPriceFromJSONTyped = DomainSalesInformationDtoBuyNowPriceFromJSONTyped;
42
+ function DomainSalesInformationDtoBuyNowPriceToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'amount': value['amount'],
48
+ 'currencyCode': value['currencyCode'],
49
+ };
50
+ }
51
+ exports.DomainSalesInformationDtoBuyNowPriceToJSON = DomainSalesInformationDtoBuyNowPriceToJSON;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
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
+ * min offer price or null if offers are not enabled
14
+ * @export
15
+ * @interface DomainSalesInformationDtoMinOfferPrice
16
+ */
17
+ export interface DomainSalesInformationDtoMinOfferPrice {
18
+ /**
19
+ * Monetary amount, represented as an integer without scale/decimals.
20
+ * @type {number}
21
+ * @memberof DomainSalesInformationDtoMinOfferPrice
22
+ */
23
+ amount: number;
24
+ /**
25
+ * Three letter ISO currency code
26
+ * @type {string}
27
+ * @memberof DomainSalesInformationDtoMinOfferPrice
28
+ */
29
+ currencyCode: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the DomainSalesInformationDtoMinOfferPrice interface.
33
+ */
34
+ export declare function instanceOfDomainSalesInformationDtoMinOfferPrice(value: object): value is DomainSalesInformationDtoMinOfferPrice;
35
+ export declare function DomainSalesInformationDtoMinOfferPriceFromJSON(json: any): DomainSalesInformationDtoMinOfferPrice;
36
+ export declare function DomainSalesInformationDtoMinOfferPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainSalesInformationDtoMinOfferPrice;
37
+ export declare function DomainSalesInformationDtoMinOfferPriceToJSON(value?: DomainSalesInformationDtoMinOfferPrice | null): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
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.DomainSalesInformationDtoMinOfferPriceToJSON = exports.DomainSalesInformationDtoMinOfferPriceFromJSONTyped = exports.DomainSalesInformationDtoMinOfferPriceFromJSON = exports.instanceOfDomainSalesInformationDtoMinOfferPrice = void 0;
17
+ /**
18
+ * Check if a given object implements the DomainSalesInformationDtoMinOfferPrice interface.
19
+ */
20
+ function instanceOfDomainSalesInformationDtoMinOfferPrice(value) {
21
+ if (!('amount' in value) || value['amount'] === undefined)
22
+ return false;
23
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ exports.instanceOfDomainSalesInformationDtoMinOfferPrice = instanceOfDomainSalesInformationDtoMinOfferPrice;
28
+ function DomainSalesInformationDtoMinOfferPriceFromJSON(json) {
29
+ return DomainSalesInformationDtoMinOfferPriceFromJSONTyped(json, false);
30
+ }
31
+ exports.DomainSalesInformationDtoMinOfferPriceFromJSON = DomainSalesInformationDtoMinOfferPriceFromJSON;
32
+ function DomainSalesInformationDtoMinOfferPriceFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'amount': json['amount'],
38
+ 'currencyCode': json['currencyCode'],
39
+ };
40
+ }
41
+ exports.DomainSalesInformationDtoMinOfferPriceFromJSONTyped = DomainSalesInformationDtoMinOfferPriceFromJSONTyped;
42
+ function DomainSalesInformationDtoMinOfferPriceToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'amount': value['amount'],
48
+ 'currencyCode': value['currencyCode'],
49
+ };
50
+ }
51
+ exports.DomainSalesInformationDtoMinOfferPriceToJSON = DomainSalesInformationDtoMinOfferPriceToJSON;
@@ -54,11 +54,17 @@ export interface IntersectionDomainDtoWithAccountDto {
54
54
  */
55
55
  nameservers: boolean;
56
56
  /**
57
- * The domain name (example.com)
57
+ * The ASCII domain name (example.com, xn--maana-pta.com)
58
58
  * @type {string}
59
59
  * @memberof IntersectionDomainDtoWithAccountDto
60
60
  */
61
61
  name: string;
62
+ /**
63
+ * The unicode domain name (example.com, mañana.com)
64
+ * @type {string}
65
+ * @memberof IntersectionDomainDtoWithAccountDto
66
+ */
67
+ displayName: string;
62
68
  /**
63
69
  * /**
64
70
  * The domain's currency code (ISO 4217)
@@ -34,6 +34,8 @@ function instanceOfIntersectionDomainDtoWithAccountDto(value) {
34
34
  return false;
35
35
  if (!('name' in value) || value['name'] === undefined)
36
36
  return false;
37
+ if (!('displayName' in value) || value['displayName'] === undefined)
38
+ return false;
37
39
  if (!('currencyCode' in value) || value['currencyCode'] === undefined)
38
40
  return false;
39
41
  if (!('buyNow' in value) || value['buyNow'] === undefined)
@@ -61,6 +63,7 @@ function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscrimina
61
63
  'verified': json['verified'],
62
64
  'nameservers': json['nameservers'],
63
65
  'name': json['name'],
66
+ 'displayName': json['displayName'],
64
67
  'currencyCode': json['currencyCode'],
65
68
  'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
66
69
  'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
@@ -80,6 +83,7 @@ function IntersectionDomainDtoWithAccountDtoToJSON(value) {
80
83
  'verified': value['verified'],
81
84
  'nameservers': value['nameservers'],
82
85
  'name': value['name'],
86
+ 'displayName': value['displayName'],
83
87
  'currencyCode': value['currencyCode'],
84
88
  'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
85
89
  'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
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
+ import type { MoneyDto } from './MoneyDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface IntersectionDomainDtoWithDomainUrlDto
17
+ */
18
+ export interface IntersectionDomainDtoWithDomainUrlDto {
19
+ /**
20
+ * The uuid for this domain.
21
+ * @type {string}
22
+ * @memberof IntersectionDomainDtoWithDomainUrlDto
23
+ */
24
+ id: string;
25
+ /**
26
+ * The current owner for the domain
27
+ * @type {string}
28
+ * @memberof IntersectionDomainDtoWithDomainUrlDto
29
+ */
30
+ accountId: string;
31
+ /**
32
+ * The hijacker for the domain
33
+ * @type {string}
34
+ * @memberof IntersectionDomainDtoWithDomainUrlDto
35
+ */
36
+ hijackerId: string | null;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof IntersectionDomainDtoWithDomainUrlDto
41
+ */
42
+ url: string;
43
+ /**
44
+ * The TLD for this domain.
45
+ * @type {string}
46
+ * @memberof IntersectionDomainDtoWithDomainUrlDto
47
+ */
48
+ tld: string;
49
+ /**
50
+ * Whether this domain is verified by the owner (ns3, txt) or not.
51
+ * @type {boolean}
52
+ * @memberof IntersectionDomainDtoWithDomainUrlDto
53
+ */
54
+ verified: boolean;
55
+ /**
56
+ * Whether the nameservers (ns1,ns2) are set or not.
57
+ * @type {boolean}
58
+ * @memberof IntersectionDomainDtoWithDomainUrlDto
59
+ */
60
+ nameservers: boolean;
61
+ /**
62
+ * The ASCII domain name (example.com, xn--maana-pta.com)
63
+ * @type {string}
64
+ * @memberof IntersectionDomainDtoWithDomainUrlDto
65
+ */
66
+ name: string;
67
+ /**
68
+ * The unicode domain name (example.com, mañana.com)
69
+ * @type {string}
70
+ * @memberof IntersectionDomainDtoWithDomainUrlDto
71
+ */
72
+ displayName: string;
73
+ /**
74
+ * /**
75
+ * The domain's currency code (ISO 4217)
76
+ * @type {string}
77
+ * @memberof IntersectionDomainDtoWithDomainUrlDto
78
+ */
79
+ currencyCode: string;
80
+ /**
81
+ * The BIN
82
+ * @type {MoneyDto}
83
+ * @memberof IntersectionDomainDtoWithDomainUrlDto
84
+ */
85
+ buyNow: MoneyDto;
86
+ /**
87
+ * The minimum offer
88
+ * @type {MoneyDto}
89
+ * @memberof IntersectionDomainDtoWithDomainUrlDto
90
+ */
91
+ minOffer: MoneyDto;
92
+ }
93
+ /**
94
+ * Check if a given object implements the IntersectionDomainDtoWithDomainUrlDto interface.
95
+ */
96
+ export declare function instanceOfIntersectionDomainDtoWithDomainUrlDto(value: object): value is IntersectionDomainDtoWithDomainUrlDto;
97
+ export declare function IntersectionDomainDtoWithDomainUrlDtoFromJSON(json: any): IntersectionDomainDtoWithDomainUrlDto;
98
+ export declare function IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainDtoWithDomainUrlDto;
99
+ export declare function IntersectionDomainDtoWithDomainUrlDtoToJSON(value?: IntersectionDomainDtoWithDomainUrlDto | null): any;
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
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.IntersectionDomainDtoWithDomainUrlDtoToJSON = exports.IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped = exports.IntersectionDomainDtoWithDomainUrlDtoFromJSON = exports.instanceOfIntersectionDomainDtoWithDomainUrlDto = void 0;
17
+ var MoneyDto_1 = require("./MoneyDto");
18
+ /**
19
+ * Check if a given object implements the IntersectionDomainDtoWithDomainUrlDto interface.
20
+ */
21
+ function instanceOfIntersectionDomainDtoWithDomainUrlDto(value) {
22
+ if (!('id' in value) || value['id'] === undefined)
23
+ return false;
24
+ if (!('accountId' in value) || value['accountId'] === undefined)
25
+ return false;
26
+ if (!('hijackerId' in value) || value['hijackerId'] === undefined)
27
+ return false;
28
+ if (!('url' in value) || value['url'] === undefined)
29
+ return false;
30
+ if (!('tld' in value) || value['tld'] === undefined)
31
+ return false;
32
+ if (!('verified' in value) || value['verified'] === undefined)
33
+ return false;
34
+ if (!('nameservers' in value) || value['nameservers'] === undefined)
35
+ return false;
36
+ if (!('name' in value) || value['name'] === undefined)
37
+ return false;
38
+ if (!('displayName' in value) || value['displayName'] === undefined)
39
+ return false;
40
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
41
+ return false;
42
+ if (!('buyNow' in value) || value['buyNow'] === undefined)
43
+ return false;
44
+ if (!('minOffer' in value) || value['minOffer'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ exports.instanceOfIntersectionDomainDtoWithDomainUrlDto = instanceOfIntersectionDomainDtoWithDomainUrlDto;
49
+ function IntersectionDomainDtoWithDomainUrlDtoFromJSON(json) {
50
+ return IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped(json, false);
51
+ }
52
+ exports.IntersectionDomainDtoWithDomainUrlDtoFromJSON = IntersectionDomainDtoWithDomainUrlDtoFromJSON;
53
+ function IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped(json, ignoreDiscriminator) {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+ 'id': json['id'],
59
+ 'accountId': json['accountId'],
60
+ 'hijackerId': json['hijackerId'],
61
+ 'url': json['url'],
62
+ 'tld': json['tld'],
63
+ 'verified': json['verified'],
64
+ 'nameservers': json['nameservers'],
65
+ 'name': json['name'],
66
+ 'displayName': json['displayName'],
67
+ 'currencyCode': json['currencyCode'],
68
+ 'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
69
+ 'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
70
+ };
71
+ }
72
+ exports.IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped = IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped;
73
+ function IntersectionDomainDtoWithDomainUrlDtoToJSON(value) {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+ return {
78
+ 'id': value['id'],
79
+ 'accountId': value['accountId'],
80
+ 'hijackerId': value['hijackerId'],
81
+ 'url': value['url'],
82
+ 'tld': value['tld'],
83
+ 'verified': value['verified'],
84
+ 'nameservers': value['nameservers'],
85
+ 'name': value['name'],
86
+ 'displayName': value['displayName'],
87
+ 'currencyCode': value['currencyCode'],
88
+ 'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
89
+ 'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
90
+ };
91
+ }
92
+ exports.IntersectionDomainDtoWithDomainUrlDtoToJSON = IntersectionDomainDtoWithDomainUrlDtoToJSON;
@@ -54,11 +54,17 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
54
54
  */
55
55
  nameservers: boolean;
56
56
  /**
57
- * The domain name (example.com)
57
+ * The ASCII domain name (example.com, xn--maana-pta.com)
58
58
  * @type {string}
59
59
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
60
60
  */
61
61
  name: string;
62
+ /**
63
+ * The unicode domain name (example.com, mañana.com)
64
+ * @type {string}
65
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
66
+ */
67
+ displayName: string;
62
68
  /**
63
69
  * /**
64
70
  * The domain's currency code (ISO 4217)