@randock/nameshift-api-client 0.0.348 → 0.0.350

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 +6 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AuctionsPublicApi.d.ts +16 -1
  4. package/dist/apis/AuctionsPublicApi.js +57 -0
  5. package/dist/models/DomainSalesInformationDto.d.ts +6 -0
  6. package/dist/models/DomainSalesInformationDto.js +4 -0
  7. package/dist/models/List200Response4.d.ts +65 -0
  8. package/dist/models/List200Response4.js +74 -0
  9. package/dist/models/PublicAuctionListItemDto.d.ts +93 -0
  10. package/dist/models/PublicAuctionListItemDto.js +96 -0
  11. package/dist/models/PublicAuctionListItemDtoDomainInformation.d.ts +63 -0
  12. package/dist/models/PublicAuctionListItemDtoDomainInformation.js +72 -0
  13. package/dist/models/PublicAuctionListItemDtoDomainMozMetrics.d.ts +56 -0
  14. package/dist/models/PublicAuctionListItemDtoDomainMozMetrics.js +67 -0
  15. package/dist/models/PublicAuctionListItemDtoDomainSeo.d.ts +33 -0
  16. package/dist/models/PublicAuctionListItemDtoDomainSeo.js +52 -0
  17. package/dist/models/PublicDomainDto.d.ts +7 -0
  18. package/dist/models/PublicDomainDto.js +5 -0
  19. package/dist/models/PublicDomainDtoAuction.d.ts +39 -0
  20. package/dist/models/PublicDomainDtoAuction.js +56 -0
  21. package/dist/models/index.d.ts +6 -0
  22. package/dist/models/index.js +6 -0
  23. package/package.json +1 -1
  24. package/src/apis/AuctionsPublicApi.ts +63 -0
  25. package/src/models/DomainSalesInformationDto.ts +9 -0
  26. package/src/models/List200Response4.ts +126 -0
  27. package/src/models/PublicAuctionListItemDto.ts +167 -0
  28. package/src/models/PublicAuctionListItemDtoDomainInformation.ts +119 -0
  29. package/src/models/PublicAuctionListItemDtoDomainMozMetrics.ts +102 -0
  30. package/src/models/PublicAuctionListItemDtoDomainSeo.ts +74 -0
  31. package/src/models/PublicDomainDto.ts +16 -0
  32. package/src/models/PublicDomainDtoAuction.ts +83 -0
  33. package/src/models/index.ts +6 -0
@@ -0,0 +1,56 @@
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
+ *
14
+ * @export
15
+ * @interface PublicAuctionListItemDtoDomainMozMetrics
16
+ */
17
+ export interface PublicAuctionListItemDtoDomainMozMetrics {
18
+ /**
19
+ * Domain authority
20
+ * @type {number}
21
+ * @memberof PublicAuctionListItemDtoDomainMozMetrics
22
+ */
23
+ domainAuthority: number;
24
+ /**
25
+ * Page authority
26
+ * @type {number}
27
+ * @memberof PublicAuctionListItemDtoDomainMozMetrics
28
+ */
29
+ pageAuthority: number;
30
+ /**
31
+ * Backlinks count
32
+ * @type {number}
33
+ * @memberof PublicAuctionListItemDtoDomainMozMetrics
34
+ */
35
+ backlinks: number;
36
+ /**
37
+ * Spam score
38
+ * @type {number}
39
+ * @memberof PublicAuctionListItemDtoDomainMozMetrics
40
+ */
41
+ spamScore: number;
42
+ /**
43
+ * Root domains count
44
+ * @type {number}
45
+ * @memberof PublicAuctionListItemDtoDomainMozMetrics
46
+ */
47
+ rootDomains: number;
48
+ }
49
+ /**
50
+ * Check if a given object implements the PublicAuctionListItemDtoDomainMozMetrics interface.
51
+ */
52
+ export declare function instanceOfPublicAuctionListItemDtoDomainMozMetrics(value: object): value is PublicAuctionListItemDtoDomainMozMetrics;
53
+ export declare function PublicAuctionListItemDtoDomainMozMetricsFromJSON(json: any): PublicAuctionListItemDtoDomainMozMetrics;
54
+ export declare function PublicAuctionListItemDtoDomainMozMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicAuctionListItemDtoDomainMozMetrics;
55
+ export declare function PublicAuctionListItemDtoDomainMozMetricsToJSON(json: any): PublicAuctionListItemDtoDomainMozMetrics;
56
+ export declare function PublicAuctionListItemDtoDomainMozMetricsToJSONTyped(value?: PublicAuctionListItemDtoDomainMozMetrics | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.instanceOfPublicAuctionListItemDtoDomainMozMetrics = instanceOfPublicAuctionListItemDtoDomainMozMetrics;
17
+ exports.PublicAuctionListItemDtoDomainMozMetricsFromJSON = PublicAuctionListItemDtoDomainMozMetricsFromJSON;
18
+ exports.PublicAuctionListItemDtoDomainMozMetricsFromJSONTyped = PublicAuctionListItemDtoDomainMozMetricsFromJSONTyped;
19
+ exports.PublicAuctionListItemDtoDomainMozMetricsToJSON = PublicAuctionListItemDtoDomainMozMetricsToJSON;
20
+ exports.PublicAuctionListItemDtoDomainMozMetricsToJSONTyped = PublicAuctionListItemDtoDomainMozMetricsToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PublicAuctionListItemDtoDomainMozMetrics interface.
23
+ */
24
+ function instanceOfPublicAuctionListItemDtoDomainMozMetrics(value) {
25
+ if (!('domainAuthority' in value) || value['domainAuthority'] === undefined)
26
+ return false;
27
+ if (!('pageAuthority' in value) || value['pageAuthority'] === undefined)
28
+ return false;
29
+ if (!('backlinks' in value) || value['backlinks'] === undefined)
30
+ return false;
31
+ if (!('spamScore' in value) || value['spamScore'] === undefined)
32
+ return false;
33
+ if (!('rootDomains' in value) || value['rootDomains'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function PublicAuctionListItemDtoDomainMozMetricsFromJSON(json) {
38
+ return PublicAuctionListItemDtoDomainMozMetricsFromJSONTyped(json, false);
39
+ }
40
+ function PublicAuctionListItemDtoDomainMozMetricsFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'domainAuthority': json['domainAuthority'],
46
+ 'pageAuthority': json['pageAuthority'],
47
+ 'backlinks': json['backlinks'],
48
+ 'spamScore': json['spamScore'],
49
+ 'rootDomains': json['rootDomains'],
50
+ };
51
+ }
52
+ function PublicAuctionListItemDtoDomainMozMetricsToJSON(json) {
53
+ return PublicAuctionListItemDtoDomainMozMetricsToJSONTyped(json, false);
54
+ }
55
+ function PublicAuctionListItemDtoDomainMozMetricsToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'domainAuthority': value['domainAuthority'],
62
+ 'pageAuthority': value['pageAuthority'],
63
+ 'backlinks': value['backlinks'],
64
+ 'spamScore': value['spamScore'],
65
+ 'rootDomains': value['rootDomains'],
66
+ };
67
+ }
@@ -0,0 +1,33 @@
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 { PublicAuctionListItemDtoDomainMozMetrics } from './PublicAuctionListItemDtoDomainMozMetrics';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PublicAuctionListItemDtoDomainSeo
17
+ */
18
+ export interface PublicAuctionListItemDtoDomainSeo {
19
+ /**
20
+ * MOZ metrics
21
+ * @type {PublicAuctionListItemDtoDomainMozMetrics}
22
+ * @memberof PublicAuctionListItemDtoDomainSeo
23
+ */
24
+ moz: PublicAuctionListItemDtoDomainMozMetrics;
25
+ }
26
+ /**
27
+ * Check if a given object implements the PublicAuctionListItemDtoDomainSeo interface.
28
+ */
29
+ export declare function instanceOfPublicAuctionListItemDtoDomainSeo(value: object): value is PublicAuctionListItemDtoDomainSeo;
30
+ export declare function PublicAuctionListItemDtoDomainSeoFromJSON(json: any): PublicAuctionListItemDtoDomainSeo;
31
+ export declare function PublicAuctionListItemDtoDomainSeoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicAuctionListItemDtoDomainSeo;
32
+ export declare function PublicAuctionListItemDtoDomainSeoToJSON(json: any): PublicAuctionListItemDtoDomainSeo;
33
+ export declare function PublicAuctionListItemDtoDomainSeoToJSONTyped(value?: PublicAuctionListItemDtoDomainSeo | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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.instanceOfPublicAuctionListItemDtoDomainSeo = instanceOfPublicAuctionListItemDtoDomainSeo;
17
+ exports.PublicAuctionListItemDtoDomainSeoFromJSON = PublicAuctionListItemDtoDomainSeoFromJSON;
18
+ exports.PublicAuctionListItemDtoDomainSeoFromJSONTyped = PublicAuctionListItemDtoDomainSeoFromJSONTyped;
19
+ exports.PublicAuctionListItemDtoDomainSeoToJSON = PublicAuctionListItemDtoDomainSeoToJSON;
20
+ exports.PublicAuctionListItemDtoDomainSeoToJSONTyped = PublicAuctionListItemDtoDomainSeoToJSONTyped;
21
+ var PublicAuctionListItemDtoDomainMozMetrics_1 = require("./PublicAuctionListItemDtoDomainMozMetrics");
22
+ /**
23
+ * Check if a given object implements the PublicAuctionListItemDtoDomainSeo interface.
24
+ */
25
+ function instanceOfPublicAuctionListItemDtoDomainSeo(value) {
26
+ if (!('moz' in value) || value['moz'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function PublicAuctionListItemDtoDomainSeoFromJSON(json) {
31
+ return PublicAuctionListItemDtoDomainSeoFromJSONTyped(json, false);
32
+ }
33
+ function PublicAuctionListItemDtoDomainSeoFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'moz': (0, PublicAuctionListItemDtoDomainMozMetrics_1.PublicAuctionListItemDtoDomainMozMetricsFromJSON)(json['moz']),
39
+ };
40
+ }
41
+ function PublicAuctionListItemDtoDomainSeoToJSON(json) {
42
+ return PublicAuctionListItemDtoDomainSeoToJSONTyped(json, false);
43
+ }
44
+ function PublicAuctionListItemDtoDomainSeoToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'moz': (0, PublicAuctionListItemDtoDomainMozMetrics_1.PublicAuctionListItemDtoDomainMozMetricsToJSON)(value['moz']),
51
+ };
52
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { PublicDomainDtoSeo } from './PublicDomainDtoSeo';
13
+ import type { PublicDomainDtoAuction } from './PublicDomainDtoAuction';
13
14
  import type { MoneyDto } from './MoneyDto';
14
15
  /**
15
16
  *
@@ -41,6 +42,12 @@ export interface PublicDomainDto {
41
42
  * @memberof PublicDomainDto
42
43
  */
43
44
  seo: PublicDomainDtoSeo;
45
+ /**
46
+ * The auction data if the domain has an auction
47
+ * @type {PublicDomainDtoAuction}
48
+ * @memberof PublicDomainDto
49
+ */
50
+ auction: PublicDomainDtoAuction | null;
44
51
  /**
45
52
  * The TLD for this domain.
46
53
  * @type {string}
@@ -19,6 +19,7 @@ exports.PublicDomainDtoFromJSONTyped = PublicDomainDtoFromJSONTyped;
19
19
  exports.PublicDomainDtoToJSON = PublicDomainDtoToJSON;
20
20
  exports.PublicDomainDtoToJSONTyped = PublicDomainDtoToJSONTyped;
21
21
  var PublicDomainDtoSeo_1 = require("./PublicDomainDtoSeo");
22
+ var PublicDomainDtoAuction_1 = require("./PublicDomainDtoAuction");
22
23
  var MoneyDto_1 = require("./MoneyDto");
23
24
  /**
24
25
  * Check if a given object implements the PublicDomainDto interface.
@@ -32,6 +33,8 @@ function instanceOfPublicDomainDto(value) {
32
33
  return false;
33
34
  if (!('seo' in value) || value['seo'] === undefined)
34
35
  return false;
36
+ if (!('auction' in value) || value['auction'] === undefined)
37
+ return false;
35
38
  if (!('tld' in value) || value['tld'] === undefined)
36
39
  return false;
37
40
  if (!('name' in value) || value['name'] === undefined)
@@ -58,6 +61,7 @@ function PublicDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
58
61
  'seller': json['seller'],
59
62
  'url': json['url'],
60
63
  'seo': (0, PublicDomainDtoSeo_1.PublicDomainDtoSeoFromJSON)(json['seo']),
64
+ 'auction': (0, PublicDomainDtoAuction_1.PublicDomainDtoAuctionFromJSON)(json['auction']),
61
65
  'tld': json['tld'],
62
66
  'name': json['name'],
63
67
  'displayName': json['displayName'],
@@ -79,6 +83,7 @@ function PublicDomainDtoToJSONTyped(value, ignoreDiscriminator) {
79
83
  'seller': value['seller'],
80
84
  'url': value['url'],
81
85
  'seo': (0, PublicDomainDtoSeo_1.PublicDomainDtoSeoToJSON)(value['seo']),
86
+ 'auction': (0, PublicDomainDtoAuction_1.PublicDomainDtoAuctionToJSON)(value['auction']),
82
87
  'tld': value['tld'],
83
88
  'name': value['name'],
84
89
  'displayName': value['displayName'],
@@ -0,0 +1,39 @@
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 PublicDomainDtoAuction
17
+ */
18
+ export interface PublicDomainDtoAuction {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof PublicDomainDtoAuction
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {MoneyDto}
28
+ * @memberof PublicDomainDtoAuction
29
+ */
30
+ highestBid: MoneyDto | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PublicDomainDtoAuction interface.
34
+ */
35
+ export declare function instanceOfPublicDomainDtoAuction(value: object): value is PublicDomainDtoAuction;
36
+ export declare function PublicDomainDtoAuctionFromJSON(json: any): PublicDomainDtoAuction;
37
+ export declare function PublicDomainDtoAuctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicDomainDtoAuction;
38
+ export declare function PublicDomainDtoAuctionToJSON(json: any): PublicDomainDtoAuction;
39
+ export declare function PublicDomainDtoAuctionToJSONTyped(value?: PublicDomainDtoAuction | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfPublicDomainDtoAuction = instanceOfPublicDomainDtoAuction;
17
+ exports.PublicDomainDtoAuctionFromJSON = PublicDomainDtoAuctionFromJSON;
18
+ exports.PublicDomainDtoAuctionFromJSONTyped = PublicDomainDtoAuctionFromJSONTyped;
19
+ exports.PublicDomainDtoAuctionToJSON = PublicDomainDtoAuctionToJSON;
20
+ exports.PublicDomainDtoAuctionToJSONTyped = PublicDomainDtoAuctionToJSONTyped;
21
+ var MoneyDto_1 = require("./MoneyDto");
22
+ /**
23
+ * Check if a given object implements the PublicDomainDtoAuction interface.
24
+ */
25
+ function instanceOfPublicDomainDtoAuction(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('highestBid' in value) || value['highestBid'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function PublicDomainDtoAuctionFromJSON(json) {
33
+ return PublicDomainDtoAuctionFromJSONTyped(json, false);
34
+ }
35
+ function PublicDomainDtoAuctionFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'id': json['id'],
41
+ 'highestBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['highestBid']),
42
+ };
43
+ }
44
+ function PublicDomainDtoAuctionToJSON(json) {
45
+ return PublicDomainDtoAuctionToJSONTyped(json, false);
46
+ }
47
+ function PublicDomainDtoAuctionToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'id': value['id'],
54
+ 'highestBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['highestBid']),
55
+ };
56
+ }
@@ -198,6 +198,7 @@ export * from './List200Response';
198
198
  export * from './List200Response1';
199
199
  export * from './List200Response2';
200
200
  export * from './List200Response3';
201
+ export * from './List200Response4';
201
202
  export * from './ListAccountMetricsDto';
202
203
  export * from './ListAccountUserDto';
203
204
  export * from './ListAccounts200Response';
@@ -238,7 +239,12 @@ export * from './ParsedDomainDto';
238
239
  export * from './PartnerAuctionDto';
239
240
  export * from './PrivateAccountGetMeResponse';
240
241
  export * from './PublicAccountInformationDto';
242
+ export * from './PublicAuctionListItemDto';
243
+ export * from './PublicAuctionListItemDtoDomainInformation';
244
+ export * from './PublicAuctionListItemDtoDomainMozMetrics';
245
+ export * from './PublicAuctionListItemDtoDomainSeo';
241
246
  export * from './PublicDomainDto';
247
+ export * from './PublicDomainDtoAuction';
242
248
  export * from './PublicDomainDtoSeo';
243
249
  export * from './PublicDomainDtoSeoMoz';
244
250
  export * from './PublicLeadBuyerDto';
@@ -216,6 +216,7 @@ __exportStar(require("./List200Response"), exports);
216
216
  __exportStar(require("./List200Response1"), exports);
217
217
  __exportStar(require("./List200Response2"), exports);
218
218
  __exportStar(require("./List200Response3"), exports);
219
+ __exportStar(require("./List200Response4"), exports);
219
220
  __exportStar(require("./ListAccountMetricsDto"), exports);
220
221
  __exportStar(require("./ListAccountUserDto"), exports);
221
222
  __exportStar(require("./ListAccounts200Response"), exports);
@@ -256,7 +257,12 @@ __exportStar(require("./ParsedDomainDto"), exports);
256
257
  __exportStar(require("./PartnerAuctionDto"), exports);
257
258
  __exportStar(require("./PrivateAccountGetMeResponse"), exports);
258
259
  __exportStar(require("./PublicAccountInformationDto"), exports);
260
+ __exportStar(require("./PublicAuctionListItemDto"), exports);
261
+ __exportStar(require("./PublicAuctionListItemDtoDomainInformation"), exports);
262
+ __exportStar(require("./PublicAuctionListItemDtoDomainMozMetrics"), exports);
263
+ __exportStar(require("./PublicAuctionListItemDtoDomainSeo"), exports);
259
264
  __exportStar(require("./PublicDomainDto"), exports);
265
+ __exportStar(require("./PublicDomainDtoAuction"), exports);
260
266
  __exportStar(require("./PublicDomainDtoSeo"), exports);
261
267
  __exportStar(require("./PublicDomainDtoSeoMoz"), exports);
262
268
  __exportStar(require("./PublicLeadBuyerDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.348",
3
+ "version": "0.0.350",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -16,16 +16,33 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  AuctionDto,
19
+ List200Response4,
20
+ SortDto,
21
+ ValidationException,
19
22
  } from '../models/index';
20
23
  import {
21
24
  AuctionDtoFromJSON,
22
25
  AuctionDtoToJSON,
26
+ List200Response4FromJSON,
27
+ List200Response4ToJSON,
28
+ SortDtoFromJSON,
29
+ SortDtoToJSON,
30
+ ValidationExceptionFromJSON,
31
+ ValidationExceptionToJSON,
23
32
  } from '../models/index';
24
33
 
25
34
  export interface AuctionsPublicApiGetAuctionRequest {
26
35
  auctionId: string;
27
36
  }
28
37
 
38
+ export interface AuctionsPublicApiListRequest {
39
+ limit?: number;
40
+ sort?: Array<SortDto>;
41
+ filter?: string;
42
+ search?: string;
43
+ cursor?: string;
44
+ }
45
+
29
46
  /**
30
47
  *
31
48
  */
@@ -64,4 +81,50 @@ export class AuctionsPublicApi extends runtime.BaseAPI {
64
81
  return await response.value();
65
82
  }
66
83
 
84
+ /**
85
+ *
86
+ */
87
+ async listRaw(requestParameters: AuctionsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response4>> {
88
+ const queryParameters: any = {};
89
+
90
+ if (requestParameters['limit'] != null) {
91
+ queryParameters['limit'] = requestParameters['limit'];
92
+ }
93
+
94
+ if (requestParameters['sort'] != null) {
95
+ queryParameters['sort'] = requestParameters['sort'];
96
+ }
97
+
98
+ if (requestParameters['filter'] != null) {
99
+ queryParameters['filter'] = requestParameters['filter'];
100
+ }
101
+
102
+ if (requestParameters['search'] != null) {
103
+ queryParameters['search'] = requestParameters['search'];
104
+ }
105
+
106
+ if (requestParameters['cursor'] != null) {
107
+ queryParameters['cursor'] = requestParameters['cursor'];
108
+ }
109
+
110
+ const headerParameters: runtime.HTTPHeaders = {};
111
+
112
+ const response = await this.request({
113
+ path: `/auctions`,
114
+ method: 'GET',
115
+ headers: headerParameters,
116
+ query: queryParameters,
117
+ }, initOverrides);
118
+
119
+ return new runtime.JSONApiResponse(response, (jsonValue) => List200Response4FromJSON(jsonValue));
120
+ }
121
+
122
+ /**
123
+ *
124
+ */
125
+ async list(requestParameters: AuctionsPublicApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response4> {
126
+ const response = await this.listRaw(requestParameters, initOverrides);
127
+ return await response.value();
128
+ }
129
+
67
130
  }
@@ -62,6 +62,12 @@ import {
62
62
  * @interface DomainSalesInformationDto
63
63
  */
64
64
  export interface DomainSalesInformationDto {
65
+ /**
66
+ * The domain id
67
+ * @type {object}
68
+ * @memberof DomainSalesInformationDto
69
+ */
70
+ domainId: object;
65
71
  /**
66
72
  * The domain name (example.com, xn--maana-pta.com)
67
73
  * @type {string}
@@ -170,6 +176,7 @@ export interface DomainSalesInformationDto {
170
176
  * Check if a given object implements the DomainSalesInformationDto interface.
171
177
  */
172
178
  export function instanceOfDomainSalesInformationDto(value: object): value is DomainSalesInformationDto {
179
+ if (!('domainId' in value) || value['domainId'] === undefined) return false;
173
180
  if (!('domain' in value) || value['domain'] === undefined) return false;
174
181
  if (!('domainDisplayName' in value) || value['domainDisplayName'] === undefined) return false;
175
182
  if (!('buyNowPrice' in value) || value['buyNowPrice'] === undefined) return false;
@@ -200,6 +207,7 @@ export function DomainSalesInformationDtoFromJSONTyped(json: any, ignoreDiscrimi
200
207
  }
201
208
  return {
202
209
 
210
+ 'domainId': json['domainId'],
203
211
  'domain': json['domain'],
204
212
  'domainDisplayName': json['domainDisplayName'],
205
213
  'buyNowPrice': MoneyDtoFromJSON(json['buyNowPrice']),
@@ -231,6 +239,7 @@ export function DomainSalesInformationDtoToJSONTyped(value?: DomainSalesInformat
231
239
 
232
240
  return {
233
241
 
242
+ 'domainId': value['domainId'],
234
243
  'domain': value['domain'],
235
244
  'domainDisplayName': value['domainDisplayName'],
236
245
  'buyNowPrice': MoneyDtoToJSON(value['buyNowPrice']),
@@ -0,0 +1,126 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { CursorBasedPageInfo } from './CursorBasedPageInfo';
17
+ import {
18
+ CursorBasedPageInfoFromJSON,
19
+ CursorBasedPageInfoFromJSONTyped,
20
+ CursorBasedPageInfoToJSON,
21
+ CursorBasedPageInfoToJSONTyped,
22
+ } from './CursorBasedPageInfo';
23
+ import type { PublicAuctionListItemDto } from './PublicAuctionListItemDto';
24
+ import {
25
+ PublicAuctionListItemDtoFromJSON,
26
+ PublicAuctionListItemDtoFromJSONTyped,
27
+ PublicAuctionListItemDtoToJSON,
28
+ PublicAuctionListItemDtoToJSONTyped,
29
+ } from './PublicAuctionListItemDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface List200Response4
35
+ */
36
+ export interface List200Response4 {
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof List200Response4
41
+ */
42
+ limit: number;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof List200Response4
47
+ */
48
+ type: List200Response4TypeEnum;
49
+ /**
50
+ *
51
+ * @type {CursorBasedPageInfo}
52
+ * @memberof List200Response4
53
+ */
54
+ pagination: CursorBasedPageInfo;
55
+ /**
56
+ *
57
+ * @type {object}
58
+ * @memberof List200Response4
59
+ */
60
+ aggregations: object;
61
+ /**
62
+ *
63
+ * @type {Array<PublicAuctionListItemDto>}
64
+ * @memberof List200Response4
65
+ */
66
+ data?: Array<PublicAuctionListItemDto>;
67
+ }
68
+
69
+
70
+ /**
71
+ * @export
72
+ */
73
+ export const List200Response4TypeEnum = {
74
+ CURSOR: 'cursor'
75
+ } as const;
76
+ export type List200Response4TypeEnum = typeof List200Response4TypeEnum[keyof typeof List200Response4TypeEnum];
77
+
78
+
79
+ /**
80
+ * Check if a given object implements the List200Response4 interface.
81
+ */
82
+ export function instanceOfList200Response4(value: object): value is List200Response4 {
83
+ if (!('limit' in value) || value['limit'] === undefined) return false;
84
+ if (!('type' in value) || value['type'] === undefined) return false;
85
+ if (!('pagination' in value) || value['pagination'] === undefined) return false;
86
+ if (!('aggregations' in value) || value['aggregations'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function List200Response4FromJSON(json: any): List200Response4 {
91
+ return List200Response4FromJSONTyped(json, false);
92
+ }
93
+
94
+ export function List200Response4FromJSONTyped(json: any, ignoreDiscriminator: boolean): List200Response4 {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'limit': json['limit'],
101
+ 'type': json['type'],
102
+ 'pagination': CursorBasedPageInfoFromJSON(json['pagination']),
103
+ 'aggregations': json['aggregations'],
104
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(PublicAuctionListItemDtoFromJSON)),
105
+ };
106
+ }
107
+
108
+ export function List200Response4ToJSON(json: any): List200Response4 {
109
+ return List200Response4ToJSONTyped(json, false);
110
+ }
111
+
112
+ export function List200Response4ToJSONTyped(value?: List200Response4 | null, ignoreDiscriminator: boolean = false): any {
113
+ if (value == null) {
114
+ return value;
115
+ }
116
+
117
+ return {
118
+
119
+ 'limit': value['limit'],
120
+ 'type': value['type'],
121
+ 'pagination': CursorBasedPageInfoToJSON(value['pagination']),
122
+ 'aggregations': value['aggregations'],
123
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(PublicAuctionListItemDtoToJSON)),
124
+ };
125
+ }
126
+