@randock/nameshift-api-client 0.0.200 → 0.0.202

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.
@@ -52,6 +52,7 @@ src/models/BuyerDto.ts
52
52
  src/models/BuyerLeadListItemDomainDto.ts
53
53
  src/models/BuyerLeadListItemDto.ts
54
54
  src/models/BuyerSecurityUserDto.ts
55
+ src/models/BuyerSessionDto.ts
55
56
  src/models/BuyerSubscriptionListItemDto.ts
56
57
  src/models/BuyerSubscriptionListItemDtoDomainInformation.ts
57
58
  src/models/ChangeOrderStatusInput.ts
@@ -108,7 +109,7 @@ src/models/HttpException.ts
108
109
  src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts
109
110
  src/models/IntersectionDomainDtoWithAccountDto.ts
110
111
  src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
111
- src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts
112
+ src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto.ts
112
113
  src/models/IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto.ts
113
114
  src/models/IntersectionLeadDtoWithListFieldsDto.ts
114
115
  src/models/IntersectionTaskListTaskDto.ts
@@ -141,6 +142,7 @@ src/models/LoginDto.ts
141
142
  src/models/LoginInput.ts
142
143
  src/models/MoneyDto.ts
143
144
  src/models/MoneyInput.ts
145
+ src/models/MozMetrics.ts
144
146
  src/models/NotFoundException.ts
145
147
  src/models/ObjectId.ts
146
148
  src/models/OrderCompanyInfoDto.ts
@@ -173,6 +175,7 @@ src/models/SellerSecurityUserAccountDto.ts
173
175
  src/models/SellerSecurityUserDto.ts
174
176
  src/models/SellerSubscriptionListItemDto.ts
175
177
  src/models/SellerSubscriptionListItemDtoDomainInformation.ts
178
+ src/models/Seo.ts
176
179
  src/models/SetDomainTransferConfirmationInput.ts
177
180
  src/models/SetNewPasswordInput.ts
178
181
  src/models/StoreBuyerLocaleInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.200
1
+ ## @randock/nameshift-api-client@0.0.202
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.200 --save
39
+ npm install @randock/nameshift-api-client@0.0.202 --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
- 0c8e77a81c9238e79be6074bd4f27e923ef51907af01da8a00670f58c988181194325028dd6d3a3fadeb16054f9eb66b
47
+ 07be8487dc3cd76997bbcb1aab1bbaefc3f52a1d8dff4d250c8358bd48b7a693b1bcd870b459072848fa74bc1e87bc1d
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BuyerDomainTransferAuthCodeDto, BuyerSecurityUserDto, CreateBuyerLeadMessageInput, GetAllInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
13
+ import type { BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BuyerDomainTransferAuthCodeDto, BuyerSessionDto, CreateBuyerLeadMessageInput, GetAllInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
14
14
  export interface BuyersApiAcceptBuyerLeadOfferRequest {
15
15
  leadId: string;
16
16
  }
@@ -112,11 +112,11 @@ export declare class BuyersApi extends runtime.BaseAPI {
112
112
  /**
113
113
  *
114
114
  */
115
- buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerSecurityUserDto>>;
115
+ buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerSessionDto>>;
116
116
  /**
117
117
  *
118
118
  */
119
- buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerSecurityUserDto>;
119
+ buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerSessionDto>;
120
120
  /**
121
121
  *
122
122
  */
@@ -263,7 +263,7 @@ var BuyersApi = /** @class */ (function (_super) {
263
263
  }, initOverrides)];
264
264
  case 3:
265
265
  response = _a.sent();
266
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerSecurityUserDtoFromJSON)(jsonValue); })];
266
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerSessionDtoFromJSON)(jsonValue); })];
267
267
  }
268
268
  });
269
269
  });
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { IntersectionDomainSalesInformationDtoWithDomainStatsDto, List200Response3 } from '../models/index';
13
+ import type { IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto, List200Response3 } from '../models/index';
14
14
  export interface DomainsPublicApiGetDomainSalesInformationRequest {
15
15
  domainName: string;
16
16
  includeStats?: boolean;
@@ -30,11 +30,11 @@ export declare class DomainsPublicApi extends runtime.BaseAPI {
30
30
  /**
31
31
  *
32
32
  */
33
- getDomainSalesInformationRaw(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionDomainSalesInformationDtoWithDomainStatsDto>>;
33
+ getDomainSalesInformationRaw(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto>>;
34
34
  /**
35
35
  *
36
36
  */
37
- getDomainSalesInformation(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionDomainSalesInformationDtoWithDomainStatsDto>;
37
+ getDomainSalesInformation(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto>;
38
38
  /**
39
39
  *
40
40
  */
@@ -106,7 +106,7 @@ var DomainsPublicApi = /** @class */ (function (_super) {
106
106
  }, initOverrides)];
107
107
  case 1:
108
108
  response = _a.sent();
109
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON)(jsonValue); })];
109
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoFromJSON)(jsonValue); })];
110
110
  }
111
111
  });
112
112
  });
@@ -0,0 +1,76 @@
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 BuyerSessionDto
16
+ */
17
+ export interface BuyerSessionDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BuyerSessionDto
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof BuyerSessionDto
28
+ */
29
+ email: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof BuyerSessionDto
34
+ */
35
+ intercomHash: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof BuyerSessionDto
40
+ */
41
+ locale: string;
42
+ /**
43
+ *
44
+ * @type {Array<string>}
45
+ * @memberof BuyerSessionDto
46
+ */
47
+ roles: Array<string>;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof BuyerSessionDto
52
+ */
53
+ type: BuyerSessionDtoTypeEnum;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof BuyerSessionDto
58
+ */
59
+ hasSubscriptions: boolean;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const BuyerSessionDtoTypeEnum: {
65
+ readonly BUYER: "buyer";
66
+ readonly SELLER: "seller";
67
+ };
68
+ export type BuyerSessionDtoTypeEnum = typeof BuyerSessionDtoTypeEnum[keyof typeof BuyerSessionDtoTypeEnum];
69
+ /**
70
+ * Check if a given object implements the BuyerSessionDto interface.
71
+ */
72
+ export declare function instanceOfBuyerSessionDto(value: object): value is BuyerSessionDto;
73
+ export declare function BuyerSessionDtoFromJSON(json: any): BuyerSessionDto;
74
+ export declare function BuyerSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerSessionDto;
75
+ export declare function BuyerSessionDtoToJSON(json: any): BuyerSessionDto;
76
+ export declare function BuyerSessionDtoToJSONTyped(value?: BuyerSessionDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,83 @@
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.BuyerSessionDtoTypeEnum = void 0;
17
+ exports.instanceOfBuyerSessionDto = instanceOfBuyerSessionDto;
18
+ exports.BuyerSessionDtoFromJSON = BuyerSessionDtoFromJSON;
19
+ exports.BuyerSessionDtoFromJSONTyped = BuyerSessionDtoFromJSONTyped;
20
+ exports.BuyerSessionDtoToJSON = BuyerSessionDtoToJSON;
21
+ exports.BuyerSessionDtoToJSONTyped = BuyerSessionDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.BuyerSessionDtoTypeEnum = {
26
+ BUYER: 'buyer',
27
+ SELLER: 'seller'
28
+ };
29
+ /**
30
+ * Check if a given object implements the BuyerSessionDto interface.
31
+ */
32
+ function instanceOfBuyerSessionDto(value) {
33
+ if (!('id' in value) || value['id'] === undefined)
34
+ return false;
35
+ if (!('email' in value) || value['email'] === undefined)
36
+ return false;
37
+ if (!('intercomHash' in value) || value['intercomHash'] === undefined)
38
+ return false;
39
+ if (!('locale' in value) || value['locale'] === undefined)
40
+ return false;
41
+ if (!('roles' in value) || value['roles'] === undefined)
42
+ return false;
43
+ if (!('type' in value) || value['type'] === undefined)
44
+ return false;
45
+ if (!('hasSubscriptions' in value) || value['hasSubscriptions'] === undefined)
46
+ return false;
47
+ return true;
48
+ }
49
+ function BuyerSessionDtoFromJSON(json) {
50
+ return BuyerSessionDtoFromJSONTyped(json, false);
51
+ }
52
+ function BuyerSessionDtoFromJSONTyped(json, ignoreDiscriminator) {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+ 'id': json['id'],
58
+ 'email': json['email'],
59
+ 'intercomHash': json['intercomHash'],
60
+ 'locale': json['locale'],
61
+ 'roles': json['roles'],
62
+ 'type': json['type'],
63
+ 'hasSubscriptions': json['hasSubscriptions'],
64
+ };
65
+ }
66
+ function BuyerSessionDtoToJSON(json) {
67
+ return BuyerSessionDtoToJSONTyped(json, false);
68
+ }
69
+ function BuyerSessionDtoToJSONTyped(value, ignoreDiscriminator) {
70
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'id': value['id'],
76
+ 'email': value['email'],
77
+ 'intercomHash': value['intercomHash'],
78
+ 'locale': value['locale'],
79
+ 'roles': value['roles'],
80
+ 'type': value['type'],
81
+ 'hasSubscriptions': value['hasSubscriptions'],
82
+ };
83
+ }
@@ -13,72 +13,79 @@ import type { DomainSellerDto } from './DomainSellerDto';
13
13
  import type { DomainStats } from './DomainStats';
14
14
  import type { MoneyDto } from './MoneyDto';
15
15
  import type { DomainSalesInformationLeaseToOwnConfigurationDto } from './DomainSalesInformationLeaseToOwnConfigurationDto';
16
+ import type { Seo } from './Seo';
16
17
  /**
17
18
  *
18
19
  * @export
19
- * @interface IntersectionDomainSalesInformationDtoWithDomainStatsDto
20
+ * @interface IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
20
21
  */
21
- export interface IntersectionDomainSalesInformationDtoWithDomainStatsDto {
22
+ export interface IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto {
22
23
  /**
23
24
  *
24
25
  * @type {DomainStats}
25
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
26
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
26
27
  */
27
28
  stats: DomainStats | null;
29
+ /**
30
+ *
31
+ * @type {Seo}
32
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
33
+ */
34
+ seo: Seo | null;
28
35
  /**
29
36
  * The domain name (example.com, xn--maana-pta.com)
30
37
  * @type {string}
31
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
38
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
32
39
  */
33
40
  domain: string;
34
41
  /**
35
42
  * The domain display name (example.com, mañana.com)
36
43
  * @type {string}
37
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
44
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
38
45
  */
39
46
  domainDisplayName: string;
40
47
  /**
41
48
  * Buy now price or null if buy now is not enabled
42
49
  * @type {MoneyDto}
43
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
50
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
44
51
  */
45
52
  buyNowPrice: MoneyDto | null;
46
53
  /**
47
54
  * Lease to own configuration or null if it is not enabled
48
55
  * @type {DomainSalesInformationLeaseToOwnConfigurationDto}
49
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
56
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
50
57
  */
51
58
  leaseToOwn: DomainSalesInformationLeaseToOwnConfigurationDto | null;
52
59
  /**
53
60
  * min offer price or null if offers are not enabled
54
61
  * @type {MoneyDto}
55
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
62
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
56
63
  */
57
64
  minOfferPrice: MoneyDto | null;
58
65
  /**
59
66
  * The domain seller information
60
67
  * @type {DomainSellerDto}
61
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
68
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
62
69
  */
63
70
  seller: DomainSellerDto | null;
64
71
  /**
65
72
  * The domain "sold" status
66
73
  * @type {boolean}
67
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
74
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
68
75
  */
69
76
  sold: boolean;
70
77
  /**
71
78
  * The domain "isPurchaseable" status
72
79
  * @type {boolean}
73
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
80
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
74
81
  */
75
82
  isPurchaseable: boolean;
76
83
  }
77
84
  /**
78
- * Check if a given object implements the IntersectionDomainSalesInformationDtoWithDomainStatsDto interface.
85
+ * Check if a given object implements the IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto interface.
79
86
  */
80
- export declare function instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDto(value: object): value is IntersectionDomainSalesInformationDtoWithDomainStatsDto;
81
- export declare function IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON(json: any): IntersectionDomainSalesInformationDtoWithDomainStatsDto;
82
- export declare function IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainSalesInformationDtoWithDomainStatsDto;
83
- export declare function IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON(json: any): IntersectionDomainSalesInformationDtoWithDomainStatsDto;
84
- export declare function IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSONTyped(value?: IntersectionDomainSalesInformationDtoWithDomainStatsDto | null, ignoreDiscriminator?: boolean): any;
87
+ export declare function instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto(value: object): value is IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto;
88
+ export declare function IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoFromJSON(json: any): IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto;
89
+ export declare function IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto;
90
+ export declare function IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoToJSON(json: any): IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto;
91
+ export declare function IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoToJSONTyped(value?: IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto | null, ignoreDiscriminator?: boolean): any;
@@ -13,21 +13,24 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDto = instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDto;
17
- exports.IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON = IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON;
18
- exports.IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONTyped = IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONTyped;
19
- exports.IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON = IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON;
20
- exports.IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSONTyped = IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSONTyped;
16
+ exports.instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto = instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto;
17
+ exports.IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoFromJSON = IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoFromJSON;
18
+ exports.IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoFromJSONTyped = IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoFromJSONTyped;
19
+ exports.IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoToJSON = IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoToJSON;
20
+ exports.IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoToJSONTyped = IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoToJSONTyped;
21
21
  var DomainSellerDto_1 = require("./DomainSellerDto");
22
22
  var DomainStats_1 = require("./DomainStats");
23
23
  var MoneyDto_1 = require("./MoneyDto");
24
24
  var DomainSalesInformationLeaseToOwnConfigurationDto_1 = require("./DomainSalesInformationLeaseToOwnConfigurationDto");
25
+ var Seo_1 = require("./Seo");
25
26
  /**
26
- * Check if a given object implements the IntersectionDomainSalesInformationDtoWithDomainStatsDto interface.
27
+ * Check if a given object implements the IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto interface.
27
28
  */
28
- function instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDto(value) {
29
+ function instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto(value) {
29
30
  if (!('stats' in value) || value['stats'] === undefined)
30
31
  return false;
32
+ if (!('seo' in value) || value['seo'] === undefined)
33
+ return false;
31
34
  if (!('domain' in value) || value['domain'] === undefined)
32
35
  return false;
33
36
  if (!('domainDisplayName' in value) || value['domainDisplayName'] === undefined)
@@ -46,15 +49,16 @@ function instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDto(value
46
49
  return false;
47
50
  return true;
48
51
  }
49
- function IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON(json) {
50
- return IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONTyped(json, false);
52
+ function IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoFromJSON(json) {
53
+ return IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoFromJSONTyped(json, false);
51
54
  }
52
- function IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
55
+ function IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoFromJSONTyped(json, ignoreDiscriminator) {
53
56
  if (json == null) {
54
57
  return json;
55
58
  }
56
59
  return {
57
60
  'stats': (0, DomainStats_1.DomainStatsFromJSON)(json['stats']),
61
+ 'seo': (0, Seo_1.SeoFromJSON)(json['seo']),
58
62
  'domain': json['domain'],
59
63
  'domainDisplayName': json['domainDisplayName'],
60
64
  'buyNowPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNowPrice']),
@@ -65,16 +69,17 @@ function IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONTyped(js
65
69
  'isPurchaseable': json['isPurchaseable'],
66
70
  };
67
71
  }
68
- function IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON(json) {
69
- return IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSONTyped(json, false);
72
+ function IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoToJSON(json) {
73
+ return IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoToJSONTyped(json, false);
70
74
  }
71
- function IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSONTyped(value, ignoreDiscriminator) {
75
+ function IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoToJSONTyped(value, ignoreDiscriminator) {
72
76
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
73
77
  if (value == null) {
74
78
  return value;
75
79
  }
76
80
  return {
77
81
  'stats': (0, DomainStats_1.DomainStatsToJSON)(value['stats']),
82
+ 'seo': (0, Seo_1.SeoToJSON)(value['seo']),
78
83
  'domain': value['domain'],
79
84
  'domainDisplayName': value['domainDisplayName'],
80
85
  'buyNowPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNowPrice']),
@@ -0,0 +1,38 @@
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 MozMetrics
16
+ */
17
+ export interface MozMetrics {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof MozMetrics
22
+ */
23
+ domainAuthority: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof MozMetrics
28
+ */
29
+ backlinks: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the MozMetrics interface.
33
+ */
34
+ export declare function instanceOfMozMetrics(value: object): value is MozMetrics;
35
+ export declare function MozMetricsFromJSON(json: any): MozMetrics;
36
+ export declare function MozMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MozMetrics;
37
+ export declare function MozMetricsToJSON(json: any): MozMetrics;
38
+ export declare function MozMetricsToJSONTyped(value?: MozMetrics | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfMozMetrics = instanceOfMozMetrics;
17
+ exports.MozMetricsFromJSON = MozMetricsFromJSON;
18
+ exports.MozMetricsFromJSONTyped = MozMetricsFromJSONTyped;
19
+ exports.MozMetricsToJSON = MozMetricsToJSON;
20
+ exports.MozMetricsToJSONTyped = MozMetricsToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MozMetrics interface.
23
+ */
24
+ function instanceOfMozMetrics(value) {
25
+ if (!('domainAuthority' in value) || value['domainAuthority'] === undefined)
26
+ return false;
27
+ if (!('backlinks' in value) || value['backlinks'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function MozMetricsFromJSON(json) {
32
+ return MozMetricsFromJSONTyped(json, false);
33
+ }
34
+ function MozMetricsFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'domainAuthority': json['domainAuthority'],
40
+ 'backlinks': json['backlinks'],
41
+ };
42
+ }
43
+ function MozMetricsToJSON(json) {
44
+ return MozMetricsToJSONTyped(json, false);
45
+ }
46
+ function MozMetricsToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'domainAuthority': value['domainAuthority'],
53
+ 'backlinks': value['backlinks'],
54
+ };
55
+ }
@@ -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 { MozMetrics } from './MozMetrics';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Seo
17
+ */
18
+ export interface Seo {
19
+ /**
20
+ *
21
+ * @type {MozMetrics}
22
+ * @memberof Seo
23
+ */
24
+ moz: MozMetrics | null;
25
+ }
26
+ /**
27
+ * Check if a given object implements the Seo interface.
28
+ */
29
+ export declare function instanceOfSeo(value: object): value is Seo;
30
+ export declare function SeoFromJSON(json: any): Seo;
31
+ export declare function SeoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Seo;
32
+ export declare function SeoToJSON(json: any): Seo;
33
+ export declare function SeoToJSONTyped(value?: Seo | 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.instanceOfSeo = instanceOfSeo;
17
+ exports.SeoFromJSON = SeoFromJSON;
18
+ exports.SeoFromJSONTyped = SeoFromJSONTyped;
19
+ exports.SeoToJSON = SeoToJSON;
20
+ exports.SeoToJSONTyped = SeoToJSONTyped;
21
+ var MozMetrics_1 = require("./MozMetrics");
22
+ /**
23
+ * Check if a given object implements the Seo interface.
24
+ */
25
+ function instanceOfSeo(value) {
26
+ if (!('moz' in value) || value['moz'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function SeoFromJSON(json) {
31
+ return SeoFromJSONTyped(json, false);
32
+ }
33
+ function SeoFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'moz': (0, MozMetrics_1.MozMetricsFromJSON)(json['moz']),
39
+ };
40
+ }
41
+ function SeoToJSON(json) {
42
+ return SeoToJSONTyped(json, false);
43
+ }
44
+ function SeoToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'moz': (0, MozMetrics_1.MozMetricsToJSON)(value['moz']),
51
+ };
52
+ }
@@ -27,6 +27,7 @@ export * from './BuyerDto';
27
27
  export * from './BuyerLeadListItemDomainDto';
28
28
  export * from './BuyerLeadListItemDto';
29
29
  export * from './BuyerSecurityUserDto';
30
+ export * from './BuyerSessionDto';
30
31
  export * from './BuyerSubscriptionListItemDto';
31
32
  export * from './BuyerSubscriptionListItemDtoDomainInformation';
32
33
  export * from './ChangeOrderStatusInput';
@@ -83,7 +84,7 @@ export * from './HttpException';
83
84
  export * from './IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto';
84
85
  export * from './IntersectionDomainDtoWithAccountDto';
85
86
  export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
86
- export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDto';
87
+ export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto';
87
88
  export * from './IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto';
88
89
  export * from './IntersectionLeadDtoWithListFieldsDto';
89
90
  export * from './IntersectionTaskListTaskDto';
@@ -116,6 +117,7 @@ export * from './LoginDto';
116
117
  export * from './LoginInput';
117
118
  export * from './MoneyDto';
118
119
  export * from './MoneyInput';
120
+ export * from './MozMetrics';
119
121
  export * from './NotFoundException';
120
122
  export * from './ObjectId';
121
123
  export * from './OrderCompanyInfoDto';
@@ -148,6 +150,7 @@ export * from './SellerSecurityUserAccountDto';
148
150
  export * from './SellerSecurityUserDto';
149
151
  export * from './SellerSubscriptionListItemDto';
150
152
  export * from './SellerSubscriptionListItemDtoDomainInformation';
153
+ export * from './Seo';
151
154
  export * from './SetDomainTransferConfirmationInput';
152
155
  export * from './SetNewPasswordInput';
153
156
  export * from './StoreBuyerLocaleInput';
@@ -45,6 +45,7 @@ __exportStar(require("./BuyerDto"), exports);
45
45
  __exportStar(require("./BuyerLeadListItemDomainDto"), exports);
46
46
  __exportStar(require("./BuyerLeadListItemDto"), exports);
47
47
  __exportStar(require("./BuyerSecurityUserDto"), exports);
48
+ __exportStar(require("./BuyerSessionDto"), exports);
48
49
  __exportStar(require("./BuyerSubscriptionListItemDto"), exports);
49
50
  __exportStar(require("./BuyerSubscriptionListItemDtoDomainInformation"), exports);
50
51
  __exportStar(require("./ChangeOrderStatusInput"), exports);
@@ -101,7 +102,7 @@ __exportStar(require("./HttpException"), exports);
101
102
  __exportStar(require("./IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto"), exports);
102
103
  __exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
103
104
  __exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
104
- __exportStar(require("./IntersectionDomainSalesInformationDtoWithDomainStatsDto"), exports);
105
+ __exportStar(require("./IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto"), exports);
105
106
  __exportStar(require("./IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto"), exports);
106
107
  __exportStar(require("./IntersectionLeadDtoWithListFieldsDto"), exports);
107
108
  __exportStar(require("./IntersectionTaskListTaskDto"), exports);
@@ -134,6 +135,7 @@ __exportStar(require("./LoginDto"), exports);
134
135
  __exportStar(require("./LoginInput"), exports);
135
136
  __exportStar(require("./MoneyDto"), exports);
136
137
  __exportStar(require("./MoneyInput"), exports);
138
+ __exportStar(require("./MozMetrics"), exports);
137
139
  __exportStar(require("./NotFoundException"), exports);
138
140
  __exportStar(require("./ObjectId"), exports);
139
141
  __exportStar(require("./OrderCompanyInfoDto"), exports);
@@ -166,6 +168,7 @@ __exportStar(require("./SellerSecurityUserAccountDto"), exports);
166
168
  __exportStar(require("./SellerSecurityUserDto"), exports);
167
169
  __exportStar(require("./SellerSubscriptionListItemDto"), exports);
168
170
  __exportStar(require("./SellerSubscriptionListItemDtoDomainInformation"), exports);
171
+ __exportStar(require("./Seo"), exports);
169
172
  __exportStar(require("./SetDomainTransferConfirmationInput"), exports);
170
173
  __exportStar(require("./SetNewPasswordInput"), exports);
171
174
  __exportStar(require("./StoreBuyerLocaleInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.200",
3
+ "version": "0.0.202",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -20,7 +20,7 @@ import type {
20
20
  BatchReadBuyerLeadMessageInput,
21
21
  BatchVerifyBuyerLeadsInput,
22
22
  BuyerDomainTransferAuthCodeDto,
23
- BuyerSecurityUserDto,
23
+ BuyerSessionDto,
24
24
  CreateBuyerLeadMessageInput,
25
25
  GetAllInvoices200Response,
26
26
  GetBuyerLeads200Response,
@@ -47,8 +47,8 @@ import {
47
47
  BatchVerifyBuyerLeadsInputToJSON,
48
48
  BuyerDomainTransferAuthCodeDtoFromJSON,
49
49
  BuyerDomainTransferAuthCodeDtoToJSON,
50
- BuyerSecurityUserDtoFromJSON,
51
- BuyerSecurityUserDtoToJSON,
50
+ BuyerSessionDtoFromJSON,
51
+ BuyerSessionDtoToJSON,
52
52
  CreateBuyerLeadMessageInputFromJSON,
53
53
  CreateBuyerLeadMessageInputToJSON,
54
54
  GetAllInvoices200ResponseFromJSON,
@@ -308,7 +308,7 @@ export class BuyersApi extends runtime.BaseAPI {
308
308
  /**
309
309
  *
310
310
  */
311
- async buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerSecurityUserDto>> {
311
+ async buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerSessionDto>> {
312
312
  const queryParameters: any = {};
313
313
 
314
314
  const headerParameters: runtime.HTTPHeaders = {};
@@ -328,13 +328,13 @@ export class BuyersApi extends runtime.BaseAPI {
328
328
  query: queryParameters,
329
329
  }, initOverrides);
330
330
 
331
- return new runtime.JSONApiResponse(response, (jsonValue) => BuyerSecurityUserDtoFromJSON(jsonValue));
331
+ return new runtime.JSONApiResponse(response, (jsonValue) => BuyerSessionDtoFromJSON(jsonValue));
332
332
  }
333
333
 
334
334
  /**
335
335
  *
336
336
  */
337
- async buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerSecurityUserDto> {
337
+ async buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerSessionDto> {
338
338
  const response = await this.buyerMeRaw(initOverrides);
339
339
  return await response.value();
340
340
  }
@@ -15,15 +15,15 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- IntersectionDomainSalesInformationDtoWithDomainStatsDto,
18
+ IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto,
19
19
  List200Response3,
20
20
  NotFoundException,
21
21
  ThrottlerException,
22
22
  ValidationException,
23
23
  } from '../models/index';
24
24
  import {
25
- IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON,
26
- IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON,
25
+ IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoFromJSON,
26
+ IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoToJSON,
27
27
  List200Response3FromJSON,
28
28
  List200Response3ToJSON,
29
29
  NotFoundExceptionFromJSON,
@@ -56,7 +56,7 @@ export class DomainsPublicApi extends runtime.BaseAPI {
56
56
  /**
57
57
  *
58
58
  */
59
- async getDomainSalesInformationRaw(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionDomainSalesInformationDtoWithDomainStatsDto>> {
59
+ async getDomainSalesInformationRaw(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto>> {
60
60
  if (requestParameters['domainName'] == null) {
61
61
  throw new runtime.RequiredError(
62
62
  'domainName',
@@ -87,13 +87,13 @@ export class DomainsPublicApi extends runtime.BaseAPI {
87
87
  query: queryParameters,
88
88
  }, initOverrides);
89
89
 
90
- return new runtime.JSONApiResponse(response, (jsonValue) => IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON(jsonValue));
90
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoFromJSON(jsonValue));
91
91
  }
92
92
 
93
93
  /**
94
94
  *
95
95
  */
96
- async getDomainSalesInformation(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionDomainSalesInformationDtoWithDomainStatsDto> {
96
+ async getDomainSalesInformation(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto> {
97
97
  const response = await this.getDomainSalesInformationRaw(requestParameters, initOverrides);
98
98
  return await response.value();
99
99
  }
@@ -0,0 +1,131 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface BuyerSessionDto
20
+ */
21
+ export interface BuyerSessionDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof BuyerSessionDto
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof BuyerSessionDto
32
+ */
33
+ email: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof BuyerSessionDto
38
+ */
39
+ intercomHash: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof BuyerSessionDto
44
+ */
45
+ locale: string;
46
+ /**
47
+ *
48
+ * @type {Array<string>}
49
+ * @memberof BuyerSessionDto
50
+ */
51
+ roles: Array<string>;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof BuyerSessionDto
56
+ */
57
+ type: BuyerSessionDtoTypeEnum;
58
+ /**
59
+ *
60
+ * @type {boolean}
61
+ * @memberof BuyerSessionDto
62
+ */
63
+ hasSubscriptions: boolean;
64
+ }
65
+
66
+
67
+ /**
68
+ * @export
69
+ */
70
+ export const BuyerSessionDtoTypeEnum = {
71
+ BUYER: 'buyer',
72
+ SELLER: 'seller'
73
+ } as const;
74
+ export type BuyerSessionDtoTypeEnum = typeof BuyerSessionDtoTypeEnum[keyof typeof BuyerSessionDtoTypeEnum];
75
+
76
+
77
+ /**
78
+ * Check if a given object implements the BuyerSessionDto interface.
79
+ */
80
+ export function instanceOfBuyerSessionDto(value: object): value is BuyerSessionDto {
81
+ if (!('id' in value) || value['id'] === undefined) return false;
82
+ if (!('email' in value) || value['email'] === undefined) return false;
83
+ if (!('intercomHash' in value) || value['intercomHash'] === undefined) return false;
84
+ if (!('locale' in value) || value['locale'] === undefined) return false;
85
+ if (!('roles' in value) || value['roles'] === undefined) return false;
86
+ if (!('type' in value) || value['type'] === undefined) return false;
87
+ if (!('hasSubscriptions' in value) || value['hasSubscriptions'] === undefined) return false;
88
+ return true;
89
+ }
90
+
91
+ export function BuyerSessionDtoFromJSON(json: any): BuyerSessionDto {
92
+ return BuyerSessionDtoFromJSONTyped(json, false);
93
+ }
94
+
95
+ export function BuyerSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerSessionDto {
96
+ if (json == null) {
97
+ return json;
98
+ }
99
+ return {
100
+
101
+ 'id': json['id'],
102
+ 'email': json['email'],
103
+ 'intercomHash': json['intercomHash'],
104
+ 'locale': json['locale'],
105
+ 'roles': json['roles'],
106
+ 'type': json['type'],
107
+ 'hasSubscriptions': json['hasSubscriptions'],
108
+ };
109
+ }
110
+
111
+ export function BuyerSessionDtoToJSON(json: any): BuyerSessionDto {
112
+ return BuyerSessionDtoToJSONTyped(json, false);
113
+ }
114
+
115
+ export function BuyerSessionDtoToJSONTyped(value?: BuyerSessionDto | null, ignoreDiscriminator: boolean = false): any {
116
+ if (value == null) {
117
+ return value;
118
+ }
119
+
120
+ return {
121
+
122
+ 'id': value['id'],
123
+ 'email': value['email'],
124
+ 'intercomHash': value['intercomHash'],
125
+ 'locale': value['locale'],
126
+ 'roles': value['roles'],
127
+ 'type': value['type'],
128
+ 'hasSubscriptions': value['hasSubscriptions'],
129
+ };
130
+ }
131
+
@@ -41,74 +41,88 @@ import {
41
41
  DomainSalesInformationLeaseToOwnConfigurationDtoToJSON,
42
42
  DomainSalesInformationLeaseToOwnConfigurationDtoToJSONTyped,
43
43
  } from './DomainSalesInformationLeaseToOwnConfigurationDto';
44
+ import type { Seo } from './Seo';
45
+ import {
46
+ SeoFromJSON,
47
+ SeoFromJSONTyped,
48
+ SeoToJSON,
49
+ SeoToJSONTyped,
50
+ } from './Seo';
44
51
 
45
52
  /**
46
53
  *
47
54
  * @export
48
- * @interface IntersectionDomainSalesInformationDtoWithDomainStatsDto
55
+ * @interface IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
49
56
  */
50
- export interface IntersectionDomainSalesInformationDtoWithDomainStatsDto {
57
+ export interface IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto {
51
58
  /**
52
59
  *
53
60
  * @type {DomainStats}
54
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
61
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
55
62
  */
56
63
  stats: DomainStats | null;
64
+ /**
65
+ *
66
+ * @type {Seo}
67
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
68
+ */
69
+ seo: Seo | null;
57
70
  /**
58
71
  * The domain name (example.com, xn--maana-pta.com)
59
72
  * @type {string}
60
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
73
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
61
74
  */
62
75
  domain: string;
63
76
  /**
64
77
  * The domain display name (example.com, mañana.com)
65
78
  * @type {string}
66
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
79
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
67
80
  */
68
81
  domainDisplayName: string;
69
82
  /**
70
83
  * Buy now price or null if buy now is not enabled
71
84
  * @type {MoneyDto}
72
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
85
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
73
86
  */
74
87
  buyNowPrice: MoneyDto | null;
75
88
  /**
76
89
  * Lease to own configuration or null if it is not enabled
77
90
  * @type {DomainSalesInformationLeaseToOwnConfigurationDto}
78
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
91
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
79
92
  */
80
93
  leaseToOwn: DomainSalesInformationLeaseToOwnConfigurationDto | null;
81
94
  /**
82
95
  * min offer price or null if offers are not enabled
83
96
  * @type {MoneyDto}
84
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
97
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
85
98
  */
86
99
  minOfferPrice: MoneyDto | null;
87
100
  /**
88
101
  * The domain seller information
89
102
  * @type {DomainSellerDto}
90
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
103
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
91
104
  */
92
105
  seller: DomainSellerDto | null;
93
106
  /**
94
107
  * The domain "sold" status
95
108
  * @type {boolean}
96
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
109
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
97
110
  */
98
111
  sold: boolean;
99
112
  /**
100
113
  * The domain "isPurchaseable" status
101
114
  * @type {boolean}
102
- * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
115
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto
103
116
  */
104
117
  isPurchaseable: boolean;
105
118
  }
106
119
 
107
120
  /**
108
- * Check if a given object implements the IntersectionDomainSalesInformationDtoWithDomainStatsDto interface.
121
+ * Check if a given object implements the IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto interface.
109
122
  */
110
- export function instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDto(value: object): value is IntersectionDomainSalesInformationDtoWithDomainStatsDto {
123
+ export function instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto(value: object): value is IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto {
111
124
  if (!('stats' in value) || value['stats'] === undefined) return false;
125
+ if (!('seo' in value) || value['seo'] === undefined) return false;
112
126
  if (!('domain' in value) || value['domain'] === undefined) return false;
113
127
  if (!('domainDisplayName' in value) || value['domainDisplayName'] === undefined) return false;
114
128
  if (!('buyNowPrice' in value) || value['buyNowPrice'] === undefined) return false;
@@ -120,17 +134,18 @@ export function instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDt
120
134
  return true;
121
135
  }
122
136
 
123
- export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON(json: any): IntersectionDomainSalesInformationDtoWithDomainStatsDto {
124
- return IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONTyped(json, false);
137
+ export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoFromJSON(json: any): IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto {
138
+ return IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoFromJSONTyped(json, false);
125
139
  }
126
140
 
127
- export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainSalesInformationDtoWithDomainStatsDto {
141
+ export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto {
128
142
  if (json == null) {
129
143
  return json;
130
144
  }
131
145
  return {
132
146
 
133
147
  'stats': DomainStatsFromJSON(json['stats']),
148
+ 'seo': SeoFromJSON(json['seo']),
134
149
  'domain': json['domain'],
135
150
  'domainDisplayName': json['domainDisplayName'],
136
151
  'buyNowPrice': MoneyDtoFromJSON(json['buyNowPrice']),
@@ -142,11 +157,11 @@ export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONT
142
157
  };
143
158
  }
144
159
 
145
- export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON(json: any): IntersectionDomainSalesInformationDtoWithDomainStatsDto {
146
- return IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSONTyped(json, false);
160
+ export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoToJSON(json: any): IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto {
161
+ return IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoToJSONTyped(json, false);
147
162
  }
148
163
 
149
- export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSONTyped(value?: IntersectionDomainSalesInformationDtoWithDomainStatsDto | null, ignoreDiscriminator: boolean = false): any {
164
+ export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDtoToJSONTyped(value?: IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto | null, ignoreDiscriminator: boolean = false): any {
150
165
  if (value == null) {
151
166
  return value;
152
167
  }
@@ -154,6 +169,7 @@ export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSONTyp
154
169
  return {
155
170
 
156
171
  'stats': DomainStatsToJSON(value['stats']),
172
+ 'seo': SeoToJSON(value['seo']),
157
173
  'domain': value['domain'],
158
174
  'domainDisplayName': value['domainDisplayName'],
159
175
  'buyNowPrice': MoneyDtoToJSON(value['buyNowPrice']),
@@ -0,0 +1,75 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface MozMetrics
20
+ */
21
+ export interface MozMetrics {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof MozMetrics
26
+ */
27
+ domainAuthority: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof MozMetrics
32
+ */
33
+ backlinks: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the MozMetrics interface.
38
+ */
39
+ export function instanceOfMozMetrics(value: object): value is MozMetrics {
40
+ if (!('domainAuthority' in value) || value['domainAuthority'] === undefined) return false;
41
+ if (!('backlinks' in value) || value['backlinks'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function MozMetricsFromJSON(json: any): MozMetrics {
46
+ return MozMetricsFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function MozMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MozMetrics {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'domainAuthority': json['domainAuthority'],
56
+ 'backlinks': json['backlinks'],
57
+ };
58
+ }
59
+
60
+ export function MozMetricsToJSON(json: any): MozMetrics {
61
+ return MozMetricsToJSONTyped(json, false);
62
+ }
63
+
64
+ export function MozMetricsToJSONTyped(value?: MozMetrics | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'domainAuthority': value['domainAuthority'],
72
+ 'backlinks': value['backlinks'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,74 @@
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 { MozMetrics } from './MozMetrics';
17
+ import {
18
+ MozMetricsFromJSON,
19
+ MozMetricsFromJSONTyped,
20
+ MozMetricsToJSON,
21
+ MozMetricsToJSONTyped,
22
+ } from './MozMetrics';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface Seo
28
+ */
29
+ export interface Seo {
30
+ /**
31
+ *
32
+ * @type {MozMetrics}
33
+ * @memberof Seo
34
+ */
35
+ moz: MozMetrics | null;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the Seo interface.
40
+ */
41
+ export function instanceOfSeo(value: object): value is Seo {
42
+ if (!('moz' in value) || value['moz'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function SeoFromJSON(json: any): Seo {
47
+ return SeoFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function SeoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Seo {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'moz': MozMetricsFromJSON(json['moz']),
57
+ };
58
+ }
59
+
60
+ export function SeoToJSON(json: any): Seo {
61
+ return SeoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SeoToJSONTyped(value?: Seo | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'moz': MozMetricsToJSON(value['moz']),
72
+ };
73
+ }
74
+
@@ -29,6 +29,7 @@ export * from './BuyerDto';
29
29
  export * from './BuyerLeadListItemDomainDto';
30
30
  export * from './BuyerLeadListItemDto';
31
31
  export * from './BuyerSecurityUserDto';
32
+ export * from './BuyerSessionDto';
32
33
  export * from './BuyerSubscriptionListItemDto';
33
34
  export * from './BuyerSubscriptionListItemDtoDomainInformation';
34
35
  export * from './ChangeOrderStatusInput';
@@ -85,7 +86,7 @@ export * from './HttpException';
85
86
  export * from './IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto';
86
87
  export * from './IntersectionDomainDtoWithAccountDto';
87
88
  export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
88
- export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDto';
89
+ export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto';
89
90
  export * from './IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto';
90
91
  export * from './IntersectionLeadDtoWithListFieldsDto';
91
92
  export * from './IntersectionTaskListTaskDto';
@@ -118,6 +119,7 @@ export * from './LoginDto';
118
119
  export * from './LoginInput';
119
120
  export * from './MoneyDto';
120
121
  export * from './MoneyInput';
122
+ export * from './MozMetrics';
121
123
  export * from './NotFoundException';
122
124
  export * from './ObjectId';
123
125
  export * from './OrderCompanyInfoDto';
@@ -150,6 +152,7 @@ export * from './SellerSecurityUserAccountDto';
150
152
  export * from './SellerSecurityUserDto';
151
153
  export * from './SellerSubscriptionListItemDto';
152
154
  export * from './SellerSubscriptionListItemDtoDomainInformation';
155
+ export * from './Seo';
153
156
  export * from './SetDomainTransferConfirmationInput';
154
157
  export * from './SetNewPasswordInput';
155
158
  export * from './StoreBuyerLocaleInput';