@randock/nameshift-api-client 0.0.24 → 0.0.26

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 +2 -0
  2. package/README.md +3 -3
  3. package/dist/apis/DomainsPublicApi.d.ts +13 -1
  4. package/dist/apis/DomainsPublicApi.js +49 -0
  5. package/dist/models/AccountSettingsInput.d.ts +6 -0
  6. package/dist/models/AccountSettingsInput.js +2 -0
  7. package/dist/models/BuyDomainInput.d.ts +85 -0
  8. package/dist/models/BuyDomainInput.js +83 -0
  9. package/dist/models/DomainDto.d.ts +7 -0
  10. package/dist/models/DomainDto.js +4 -0
  11. package/dist/models/DomainSellerDto.d.ts +7 -0
  12. package/dist/models/DomainSellerDto.js +5 -0
  13. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
  14. package/dist/models/IntersectionDomainDtoWithAccountDto.js +4 -0
  15. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
  16. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
  17. package/dist/models/RelatedSellerDomain.d.ts +44 -0
  18. package/dist/models/RelatedSellerDomain.js +56 -0
  19. package/dist/models/WithSettingsInner.d.ts +6 -0
  20. package/dist/models/WithSettingsInner.js +4 -0
  21. package/dist/models/index.d.ts +2 -0
  22. package/dist/models/index.js +2 -0
  23. package/package.json +1 -1
  24. package/src/apis/DomainsPublicApi.ts +57 -0
  25. package/src/models/AccountSettingsInput.ts +8 -0
  26. package/src/models/BuyDomainInput.ts +142 -0
  27. package/src/models/DomainDto.ts +10 -0
  28. package/src/models/DomainSellerDto.ts +16 -0
  29. package/src/models/IntersectionDomainDtoWithAccountDto.ts +10 -0
  30. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +10 -0
  31. package/src/models/RelatedSellerDomain.ts +86 -0
  32. package/src/models/WithSettingsInner.ts +9 -0
  33. package/src/models/index.ts +2 -0
@@ -20,6 +20,7 @@ src/models/AccountFinancialInput.ts
20
20
  src/models/AccountSettingsInput.ts
21
21
  src/models/BatchUpdate404Response.ts
22
22
  src/models/BatchUpdateDomainsInput.ts
23
+ src/models/BuyDomainInput.ts
23
24
  src/models/CreateLeadInput.ts
24
25
  src/models/CreateLeadMessageInput.ts
25
26
  src/models/DashboardStatsDto.ts
@@ -58,6 +59,7 @@ src/models/PaginateResponse.ts
58
59
  src/models/PaginateResponseLinks.ts
59
60
  src/models/PaginateResponseMeta.ts
60
61
  src/models/PutLeadInput.ts
62
+ src/models/RelatedSellerDomain.ts
61
63
  src/models/SecurityUserDto.ts
62
64
  src/models/TokenDto.ts
63
65
  src/models/UpdateDomainInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.24
1
+ ## @randock/nameshift-api-client@0.0.26
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.24 --save
39
+ npm install @randock/nameshift-api-client@0.0.26 --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
- ac2a900304e91014d2c4183eaea7f3de7f136f58425fa8763b35d02b3b35035910a0e28574a89975d4704762eee0700d
47
+ 77a1a074eaa34b14151b7f5471398725ac397b5650ada2d7c137a2aaa0684f556d5f60cf6f23814372857d83a6c0a64e
@@ -10,10 +10,14 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { DomainSalesInformationDto } from '../models/index';
13
+ import type { BuyDomainInput, DomainSalesInformationDto, ObjectId } from '../models/index';
14
14
  export interface DomainsPublicApiGetDomainSalesInformationRequest {
15
15
  domainName: string;
16
16
  }
17
+ export interface DomainsPublicApiPostDomainByNameBuyRequest {
18
+ domainName: string;
19
+ buyDomainInput: BuyDomainInput;
20
+ }
17
21
  /**
18
22
  *
19
23
  */
@@ -26,4 +30,12 @@ export declare class DomainsPublicApi extends runtime.BaseAPI {
26
30
  *
27
31
  */
28
32
  getDomainSalesInformation(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainSalesInformationDto>;
33
+ /**
34
+ *
35
+ */
36
+ postDomainByNameBuyRaw(requestParameters: DomainsPublicApiPostDomainByNameBuyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>>;
37
+ /**
38
+ *
39
+ */
40
+ postDomainByNameBuy(requestParameters: DomainsPublicApiPostDomainByNameBuyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
29
41
  }
@@ -119,6 +119,55 @@ var DomainsPublicApi = /** @class */ (function (_super) {
119
119
  });
120
120
  });
121
121
  };
122
+ /**
123
+ *
124
+ */
125
+ DomainsPublicApi.prototype.postDomainByNameBuyRaw = function (requestParameters, initOverrides) {
126
+ return __awaiter(this, void 0, void 0, function () {
127
+ var queryParameters, headerParameters, response;
128
+ return __generator(this, function (_a) {
129
+ switch (_a.label) {
130
+ case 0:
131
+ if (requestParameters['domainName'] == null) {
132
+ throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling postDomainByNameBuy().');
133
+ }
134
+ if (requestParameters['buyDomainInput'] == null) {
135
+ throw new runtime.RequiredError('buyDomainInput', 'Required parameter "buyDomainInput" was null or undefined when calling postDomainByNameBuy().');
136
+ }
137
+ queryParameters = {};
138
+ headerParameters = {};
139
+ headerParameters['Content-Type'] = 'application/json';
140
+ return [4 /*yield*/, this.request({
141
+ path: "/domains/by-name/{domainName}/buy".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters['domainName']))),
142
+ method: 'POST',
143
+ headers: headerParameters,
144
+ query: queryParameters,
145
+ body: (0, index_1.BuyDomainInputToJSON)(requestParameters['buyDomainInput']),
146
+ }, initOverrides)];
147
+ case 1:
148
+ response = _a.sent();
149
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ObjectIdFromJSON)(jsonValue); })];
150
+ }
151
+ });
152
+ });
153
+ };
154
+ /**
155
+ *
156
+ */
157
+ DomainsPublicApi.prototype.postDomainByNameBuy = function (requestParameters, initOverrides) {
158
+ return __awaiter(this, void 0, void 0, function () {
159
+ var response;
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
162
+ case 0: return [4 /*yield*/, this.postDomainByNameBuyRaw(requestParameters, initOverrides)];
163
+ case 1:
164
+ response = _a.sent();
165
+ return [4 /*yield*/, response.value()];
166
+ case 2: return [2 /*return*/, _a.sent()];
167
+ }
168
+ });
169
+ });
170
+ };
122
171
  return DomainsPublicApi;
123
172
  }(runtime.BaseAPI));
124
173
  exports.DomainsPublicApi = DomainsPublicApi;
@@ -22,6 +22,12 @@ export interface AccountSettingsInput {
22
22
  * @memberof AccountSettingsInput
23
23
  */
24
24
  defaultStartingOffer?: MoneyInput;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof AccountSettingsInput
29
+ */
30
+ defaultCurrencyCode?: string;
25
31
  }
26
32
  /**
27
33
  * Check if a given object implements the AccountSettingsInput interface.
@@ -32,6 +32,7 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
32
32
  }
33
33
  return {
34
34
  'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['defaultStartingOffer']),
35
+ 'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
35
36
  };
36
37
  }
37
38
  exports.AccountSettingsInputFromJSONTyped = AccountSettingsInputFromJSONTyped;
@@ -41,6 +42,7 @@ function AccountSettingsInputToJSON(value) {
41
42
  }
42
43
  return {
43
44
  'defaultStartingOffer': (0, MoneyInput_1.MoneyInputToJSON)(value['defaultStartingOffer']),
45
+ 'defaultCurrencyCode': value['defaultCurrencyCode'],
44
46
  };
45
47
  }
46
48
  exports.AccountSettingsInputToJSON = AccountSettingsInputToJSON;
@@ -0,0 +1,85 @@
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 BuyDomainInput
16
+ */
17
+ export interface BuyDomainInput {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BuyDomainInput
22
+ */
23
+ firstname: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof BuyDomainInput
28
+ */
29
+ lastname: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof BuyDomainInput
34
+ */
35
+ email: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof BuyDomainInput
40
+ */
41
+ phone: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof BuyDomainInput
46
+ */
47
+ country: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof BuyDomainInput
52
+ */
53
+ city: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof BuyDomainInput
58
+ */
59
+ postalCode: string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof BuyDomainInput
64
+ */
65
+ address: string;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof BuyDomainInput
70
+ */
71
+ companyName: string | null;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof BuyDomainInput
76
+ */
77
+ companyVatNumber: string | null;
78
+ }
79
+ /**
80
+ * Check if a given object implements the BuyDomainInput interface.
81
+ */
82
+ export declare function instanceOfBuyDomainInput(value: object): boolean;
83
+ export declare function BuyDomainInputFromJSON(json: any): BuyDomainInput;
84
+ export declare function BuyDomainInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyDomainInput;
85
+ export declare function BuyDomainInputToJSON(value?: BuyDomainInput | null): 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.BuyDomainInputToJSON = exports.BuyDomainInputFromJSONTyped = exports.BuyDomainInputFromJSON = exports.instanceOfBuyDomainInput = void 0;
17
+ /**
18
+ * Check if a given object implements the BuyDomainInput interface.
19
+ */
20
+ function instanceOfBuyDomainInput(value) {
21
+ if (!('firstname' in value))
22
+ return false;
23
+ if (!('lastname' in value))
24
+ return false;
25
+ if (!('email' in value))
26
+ return false;
27
+ if (!('phone' in value))
28
+ return false;
29
+ if (!('country' in value))
30
+ return false;
31
+ if (!('city' in value))
32
+ return false;
33
+ if (!('postalCode' in value))
34
+ return false;
35
+ if (!('address' in value))
36
+ return false;
37
+ if (!('companyName' in value))
38
+ return false;
39
+ if (!('companyVatNumber' in value))
40
+ return false;
41
+ return true;
42
+ }
43
+ exports.instanceOfBuyDomainInput = instanceOfBuyDomainInput;
44
+ function BuyDomainInputFromJSON(json) {
45
+ return BuyDomainInputFromJSONTyped(json, false);
46
+ }
47
+ exports.BuyDomainInputFromJSON = BuyDomainInputFromJSON;
48
+ function BuyDomainInputFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'firstname': json['firstname'],
54
+ 'lastname': json['lastname'],
55
+ 'email': json['email'],
56
+ 'phone': json['phone'],
57
+ 'country': json['country'],
58
+ 'city': json['city'],
59
+ 'postalCode': json['postalCode'],
60
+ 'address': json['address'],
61
+ 'companyName': json['companyName'],
62
+ 'companyVatNumber': json['companyVatNumber'],
63
+ };
64
+ }
65
+ exports.BuyDomainInputFromJSONTyped = BuyDomainInputFromJSONTyped;
66
+ function BuyDomainInputToJSON(value) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'firstname': value['firstname'],
72
+ 'lastname': value['lastname'],
73
+ 'email': value['email'],
74
+ 'phone': value['phone'],
75
+ 'country': value['country'],
76
+ 'city': value['city'],
77
+ 'postalCode': value['postalCode'],
78
+ 'address': value['address'],
79
+ 'companyName': value['companyName'],
80
+ 'companyVatNumber': value['companyVatNumber'],
81
+ };
82
+ }
83
+ exports.BuyDomainInputToJSON = BuyDomainInputToJSON;
@@ -46,6 +46,13 @@ export interface DomainDto {
46
46
  * @memberof DomainDto
47
47
  */
48
48
  name: string;
49
+ /**
50
+ * /**
51
+ * The domain's currency
52
+ * @type {string}
53
+ * @memberof DomainDto
54
+ */
55
+ currency: string;
49
56
  /**
50
57
  * The BIN
51
58
  * @type {MoneyDto}
@@ -29,6 +29,8 @@ function instanceOfDomainDto(value) {
29
29
  return false;
30
30
  if (!('name' in value))
31
31
  return false;
32
+ if (!('currency' in value))
33
+ return false;
32
34
  if (!('buyNow' in value))
33
35
  return false;
34
36
  if (!('minOffer' in value))
@@ -50,6 +52,7 @@ function DomainDtoFromJSONTyped(json, ignoreDiscriminator) {
50
52
  'verified': json['verified'],
51
53
  'nameservers': json['nameservers'],
52
54
  'name': json['name'],
55
+ 'currency': json['currency'],
53
56
  'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
54
57
  'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
55
58
  };
@@ -65,6 +68,7 @@ function DomainDtoToJSON(value) {
65
68
  'verified': value['verified'],
66
69
  'nameservers': value['nameservers'],
67
70
  'name': value['name'],
71
+ 'currency': value['currency'],
68
72
  'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
69
73
  'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
70
74
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { RelatedSellerDomain } from './RelatedSellerDomain';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -27,6 +28,12 @@ export interface DomainSellerDto {
27
28
  * @memberof DomainSellerDto
28
29
  */
29
30
  createdAt: Date;
31
+ /**
32
+ * The domain seller account creation date
33
+ * @type {Array<RelatedSellerDomain>}
34
+ * @memberof DomainSellerDto
35
+ */
36
+ relatedDomains: Array<RelatedSellerDomain> | null;
30
37
  }
31
38
  /**
32
39
  * Check if a given object implements the DomainSellerDto interface.
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.DomainSellerDtoToJSON = exports.DomainSellerDtoFromJSONTyped = exports.DomainSellerDtoFromJSON = exports.instanceOfDomainSellerDto = void 0;
17
+ var RelatedSellerDomain_1 = require("./RelatedSellerDomain");
17
18
  /**
18
19
  * Check if a given object implements the DomainSellerDto interface.
19
20
  */
@@ -22,6 +23,8 @@ function instanceOfDomainSellerDto(value) {
22
23
  return false;
23
24
  if (!('createdAt' in value))
24
25
  return false;
26
+ if (!('relatedDomains' in value))
27
+ return false;
25
28
  return true;
26
29
  }
27
30
  exports.instanceOfDomainSellerDto = instanceOfDomainSellerDto;
@@ -36,6 +39,7 @@ function DomainSellerDtoFromJSONTyped(json, ignoreDiscriminator) {
36
39
  return {
37
40
  'verified': json['verified'],
38
41
  'createdAt': (new Date(json['createdAt'])),
42
+ 'relatedDomains': (json['relatedDomains'] == null ? null : json['relatedDomains'].map(RelatedSellerDomain_1.RelatedSellerDomainFromJSON)),
39
43
  };
40
44
  }
41
45
  exports.DomainSellerDtoFromJSONTyped = DomainSellerDtoFromJSONTyped;
@@ -46,6 +50,7 @@ function DomainSellerDtoToJSON(value) {
46
50
  return {
47
51
  'verified': value['verified'],
48
52
  'createdAt': ((value['createdAt']).toISOString()),
53
+ 'relatedDomains': (value['relatedDomains'] == null ? null : value['relatedDomains'].map(RelatedSellerDomain_1.RelatedSellerDomainToJSON)),
49
54
  };
50
55
  }
51
56
  exports.DomainSellerDtoToJSON = DomainSellerDtoToJSON;
@@ -47,6 +47,13 @@ export interface IntersectionDomainDtoWithAccountDto {
47
47
  * @memberof IntersectionDomainDtoWithAccountDto
48
48
  */
49
49
  name: string;
50
+ /**
51
+ * /**
52
+ * The domain's currency
53
+ * @type {string}
54
+ * @memberof IntersectionDomainDtoWithAccountDto
55
+ */
56
+ currency: string;
50
57
  /**
51
58
  * The BIN
52
59
  * @type {MoneyDto}
@@ -30,6 +30,8 @@ function instanceOfIntersectionDomainDtoWithAccountDto(value) {
30
30
  return false;
31
31
  if (!('name' in value))
32
32
  return false;
33
+ if (!('currency' in value))
34
+ return false;
33
35
  if (!('buyNow' in value))
34
36
  return false;
35
37
  if (!('minOffer' in value))
@@ -53,6 +55,7 @@ function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscrimina
53
55
  'verified': json['verified'],
54
56
  'nameservers': json['nameservers'],
55
57
  'name': json['name'],
58
+ 'currency': json['currency'],
56
59
  'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
57
60
  'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
58
61
  'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
@@ -69,6 +72,7 @@ function IntersectionDomainDtoWithAccountDtoToJSON(value) {
69
72
  'verified': value['verified'],
70
73
  'nameservers': value['nameservers'],
71
74
  'name': value['name'],
75
+ 'currency': value['currency'],
72
76
  'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
73
77
  'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
74
78
  'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
@@ -47,6 +47,13 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
47
47
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
48
48
  */
49
49
  name: string;
50
+ /**
51
+ * /**
52
+ * The domain's currency
53
+ * @type {string}
54
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
55
+ */
56
+ currency: string;
50
57
  /**
51
58
  * The BIN
52
59
  * @type {MoneyDto}
@@ -30,6 +30,8 @@ function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
30
30
  return false;
31
31
  if (!('name' in value))
32
32
  return false;
33
+ if (!('currency' in value))
34
+ return false;
33
35
  if (!('buyNow' in value))
34
36
  return false;
35
37
  if (!('minOffer' in value))
@@ -55,6 +57,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
55
57
  'verified': json['verified'],
56
58
  'nameservers': json['nameservers'],
57
59
  'name': json['name'],
60
+ 'currency': json['currency'],
58
61
  'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
59
62
  'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
60
63
  'hijacker': (0, AccountDto_1.AccountDtoFromJSON)(json['hijacker']),
@@ -72,6 +75,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON(value) {
72
75
  'verified': value['verified'],
73
76
  'nameservers': value['nameservers'],
74
77
  'name': value['name'],
78
+ 'currency': value['currency'],
75
79
  'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
76
80
  'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
77
81
  'hijacker': (0, AccountDto_1.AccountDtoToJSON)(value['hijacker']),
@@ -0,0 +1,44 @@
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 RelatedSellerDomain
17
+ */
18
+ export interface RelatedSellerDomain {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof RelatedSellerDomain
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {MoneyDto}
28
+ * @memberof RelatedSellerDomain
29
+ */
30
+ buyNow: MoneyDto | null;
31
+ /**
32
+ *
33
+ * @type {MoneyDto}
34
+ * @memberof RelatedSellerDomain
35
+ */
36
+ minOffer: MoneyDto | null;
37
+ }
38
+ /**
39
+ * Check if a given object implements the RelatedSellerDomain interface.
40
+ */
41
+ export declare function instanceOfRelatedSellerDomain(value: object): boolean;
42
+ export declare function RelatedSellerDomainFromJSON(json: any): RelatedSellerDomain;
43
+ export declare function RelatedSellerDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): RelatedSellerDomain;
44
+ export declare function RelatedSellerDomainToJSON(value?: RelatedSellerDomain | null): 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.RelatedSellerDomainToJSON = exports.RelatedSellerDomainFromJSONTyped = exports.RelatedSellerDomainFromJSON = exports.instanceOfRelatedSellerDomain = void 0;
17
+ var MoneyDto_1 = require("./MoneyDto");
18
+ /**
19
+ * Check if a given object implements the RelatedSellerDomain interface.
20
+ */
21
+ function instanceOfRelatedSellerDomain(value) {
22
+ if (!('name' in value))
23
+ return false;
24
+ if (!('buyNow' in value))
25
+ return false;
26
+ if (!('minOffer' in value))
27
+ return false;
28
+ return true;
29
+ }
30
+ exports.instanceOfRelatedSellerDomain = instanceOfRelatedSellerDomain;
31
+ function RelatedSellerDomainFromJSON(json) {
32
+ return RelatedSellerDomainFromJSONTyped(json, false);
33
+ }
34
+ exports.RelatedSellerDomainFromJSON = RelatedSellerDomainFromJSON;
35
+ function RelatedSellerDomainFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'name': json['name'],
41
+ 'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
42
+ 'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
43
+ };
44
+ }
45
+ exports.RelatedSellerDomainFromJSONTyped = RelatedSellerDomainFromJSONTyped;
46
+ function RelatedSellerDomainToJSON(value) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'name': value['name'],
52
+ 'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
53
+ 'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
54
+ };
55
+ }
56
+ exports.RelatedSellerDomainToJSON = RelatedSellerDomainToJSON;
@@ -16,6 +16,12 @@ import type { MoneyDto } from './MoneyDto';
16
16
  * @interface WithSettingsInner
17
17
  */
18
18
  export interface WithSettingsInner {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof WithSettingsInner
23
+ */
24
+ defaultCurrencyCode: string;
19
25
  /**
20
26
  *
21
27
  * @type {MoneyDto}
@@ -19,6 +19,8 @@ var MoneyDto_1 = require("./MoneyDto");
19
19
  * Check if a given object implements the WithSettingsInner interface.
20
20
  */
21
21
  function instanceOfWithSettingsInner(value) {
22
+ if (!('defaultCurrencyCode' in value))
23
+ return false;
22
24
  if (!('defaultStartingOffer' in value))
23
25
  return false;
24
26
  return true;
@@ -33,6 +35,7 @@ function WithSettingsInnerFromJSONTyped(json, ignoreDiscriminator) {
33
35
  return json;
34
36
  }
35
37
  return {
38
+ 'defaultCurrencyCode': json['defaultCurrencyCode'],
36
39
  'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['defaultStartingOffer']),
37
40
  };
38
41
  }
@@ -42,6 +45,7 @@ function WithSettingsInnerToJSON(value) {
42
45
  return value;
43
46
  }
44
47
  return {
48
+ 'defaultCurrencyCode': value['defaultCurrencyCode'],
45
49
  'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['defaultStartingOffer']),
46
50
  };
47
51
  }
@@ -5,6 +5,7 @@ export * from './AccountFinancialInput';
5
5
  export * from './AccountSettingsInput';
6
6
  export * from './BatchUpdate404Response';
7
7
  export * from './BatchUpdateDomainsInput';
8
+ export * from './BuyDomainInput';
8
9
  export * from './CreateLeadInput';
9
10
  export * from './CreateLeadMessageInput';
10
11
  export * from './DashboardStatsDto';
@@ -43,6 +44,7 @@ export * from './PaginateResponse';
43
44
  export * from './PaginateResponseLinks';
44
45
  export * from './PaginateResponseMeta';
45
46
  export * from './PutLeadInput';
47
+ export * from './RelatedSellerDomain';
46
48
  export * from './SecurityUserDto';
47
49
  export * from './TokenDto';
48
50
  export * from './UpdateDomainInput';
@@ -23,6 +23,7 @@ __exportStar(require("./AccountFinancialInput"), exports);
23
23
  __exportStar(require("./AccountSettingsInput"), exports);
24
24
  __exportStar(require("./BatchUpdate404Response"), exports);
25
25
  __exportStar(require("./BatchUpdateDomainsInput"), exports);
26
+ __exportStar(require("./BuyDomainInput"), exports);
26
27
  __exportStar(require("./CreateLeadInput"), exports);
27
28
  __exportStar(require("./CreateLeadMessageInput"), exports);
28
29
  __exportStar(require("./DashboardStatsDto"), exports);
@@ -61,6 +62,7 @@ __exportStar(require("./PaginateResponse"), exports);
61
62
  __exportStar(require("./PaginateResponseLinks"), exports);
62
63
  __exportStar(require("./PaginateResponseMeta"), exports);
63
64
  __exportStar(require("./PutLeadInput"), exports);
65
+ __exportStar(require("./RelatedSellerDomain"), exports);
64
66
  __exportStar(require("./SecurityUserDto"), exports);
65
67
  __exportStar(require("./TokenDto"), exports);
66
68
  __exportStar(require("./UpdateDomainInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -15,20 +15,34 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ BuyDomainInput,
18
19
  DomainSalesInformationDto,
19
20
  GetDomainSalesInformation404Response,
21
+ List400Response,
22
+ ObjectId,
20
23
  } from '../models/index';
21
24
  import {
25
+ BuyDomainInputFromJSON,
26
+ BuyDomainInputToJSON,
22
27
  DomainSalesInformationDtoFromJSON,
23
28
  DomainSalesInformationDtoToJSON,
24
29
  GetDomainSalesInformation404ResponseFromJSON,
25
30
  GetDomainSalesInformation404ResponseToJSON,
31
+ List400ResponseFromJSON,
32
+ List400ResponseToJSON,
33
+ ObjectIdFromJSON,
34
+ ObjectIdToJSON,
26
35
  } from '../models/index';
27
36
 
28
37
  export interface DomainsPublicApiGetDomainSalesInformationRequest {
29
38
  domainName: string;
30
39
  }
31
40
 
41
+ export interface DomainsPublicApiPostDomainByNameBuyRequest {
42
+ domainName: string;
43
+ buyDomainInput: BuyDomainInput;
44
+ }
45
+
32
46
  /**
33
47
  *
34
48
  */
@@ -67,4 +81,47 @@ export class DomainsPublicApi extends runtime.BaseAPI {
67
81
  return await response.value();
68
82
  }
69
83
 
84
+ /**
85
+ *
86
+ */
87
+ async postDomainByNameBuyRaw(requestParameters: DomainsPublicApiPostDomainByNameBuyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
88
+ if (requestParameters['domainName'] == null) {
89
+ throw new runtime.RequiredError(
90
+ 'domainName',
91
+ 'Required parameter "domainName" was null or undefined when calling postDomainByNameBuy().'
92
+ );
93
+ }
94
+
95
+ if (requestParameters['buyDomainInput'] == null) {
96
+ throw new runtime.RequiredError(
97
+ 'buyDomainInput',
98
+ 'Required parameter "buyDomainInput" was null or undefined when calling postDomainByNameBuy().'
99
+ );
100
+ }
101
+
102
+ const queryParameters: any = {};
103
+
104
+ const headerParameters: runtime.HTTPHeaders = {};
105
+
106
+ headerParameters['Content-Type'] = 'application/json';
107
+
108
+ const response = await this.request({
109
+ path: `/domains/by-name/{domainName}/buy`.replace(`{${"domainName"}}`, encodeURIComponent(String(requestParameters['domainName']))),
110
+ method: 'POST',
111
+ headers: headerParameters,
112
+ query: queryParameters,
113
+ body: BuyDomainInputToJSON(requestParameters['buyDomainInput']),
114
+ }, initOverrides);
115
+
116
+ return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
117
+ }
118
+
119
+ /**
120
+ *
121
+ */
122
+ async postDomainByNameBuy(requestParameters: DomainsPublicApiPostDomainByNameBuyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId> {
123
+ const response = await this.postDomainByNameBuyRaw(requestParameters, initOverrides);
124
+ return await response.value();
125
+ }
126
+
70
127
  }
@@ -32,6 +32,12 @@ export interface AccountSettingsInput {
32
32
  * @memberof AccountSettingsInput
33
33
  */
34
34
  defaultStartingOffer?: MoneyInput;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof AccountSettingsInput
39
+ */
40
+ defaultCurrencyCode?: string;
35
41
  }
36
42
 
37
43
  /**
@@ -52,6 +58,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
52
58
  return {
53
59
 
54
60
  'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : MoneyInputFromJSON(json['defaultStartingOffer']),
61
+ 'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
55
62
  };
56
63
  }
57
64
 
@@ -62,6 +69,7 @@ export function AccountSettingsInputToJSON(value?: AccountSettingsInput | null):
62
69
  return {
63
70
 
64
71
  'defaultStartingOffer': MoneyInputToJSON(value['defaultStartingOffer']),
72
+ 'defaultCurrencyCode': value['defaultCurrencyCode'],
65
73
  };
66
74
  }
67
75
 
@@ -0,0 +1,142 @@
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 BuyDomainInput
20
+ */
21
+ export interface BuyDomainInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof BuyDomainInput
26
+ */
27
+ firstname: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof BuyDomainInput
32
+ */
33
+ lastname: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof BuyDomainInput
38
+ */
39
+ email: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof BuyDomainInput
44
+ */
45
+ phone: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof BuyDomainInput
50
+ */
51
+ country: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof BuyDomainInput
56
+ */
57
+ city: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof BuyDomainInput
62
+ */
63
+ postalCode: string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof BuyDomainInput
68
+ */
69
+ address: string;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof BuyDomainInput
74
+ */
75
+ companyName: string | null;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof BuyDomainInput
80
+ */
81
+ companyVatNumber: string | null;
82
+ }
83
+
84
+ /**
85
+ * Check if a given object implements the BuyDomainInput interface.
86
+ */
87
+ export function instanceOfBuyDomainInput(value: object): boolean {
88
+ if (!('firstname' in value)) return false;
89
+ if (!('lastname' in value)) return false;
90
+ if (!('email' in value)) return false;
91
+ if (!('phone' in value)) return false;
92
+ if (!('country' in value)) return false;
93
+ if (!('city' in value)) return false;
94
+ if (!('postalCode' in value)) return false;
95
+ if (!('address' in value)) return false;
96
+ if (!('companyName' in value)) return false;
97
+ if (!('companyVatNumber' in value)) return false;
98
+ return true;
99
+ }
100
+
101
+ export function BuyDomainInputFromJSON(json: any): BuyDomainInput {
102
+ return BuyDomainInputFromJSONTyped(json, false);
103
+ }
104
+
105
+ export function BuyDomainInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyDomainInput {
106
+ if (json == null) {
107
+ return json;
108
+ }
109
+ return {
110
+
111
+ 'firstname': json['firstname'],
112
+ 'lastname': json['lastname'],
113
+ 'email': json['email'],
114
+ 'phone': json['phone'],
115
+ 'country': json['country'],
116
+ 'city': json['city'],
117
+ 'postalCode': json['postalCode'],
118
+ 'address': json['address'],
119
+ 'companyName': json['companyName'],
120
+ 'companyVatNumber': json['companyVatNumber'],
121
+ };
122
+ }
123
+
124
+ export function BuyDomainInputToJSON(value?: BuyDomainInput | null): any {
125
+ if (value == null) {
126
+ return value;
127
+ }
128
+ return {
129
+
130
+ 'firstname': value['firstname'],
131
+ 'lastname': value['lastname'],
132
+ 'email': value['email'],
133
+ 'phone': value['phone'],
134
+ 'country': value['country'],
135
+ 'city': value['city'],
136
+ 'postalCode': value['postalCode'],
137
+ 'address': value['address'],
138
+ 'companyName': value['companyName'],
139
+ 'companyVatNumber': value['companyVatNumber'],
140
+ };
141
+ }
142
+
@@ -56,6 +56,13 @@ export interface DomainDto {
56
56
  * @memberof DomainDto
57
57
  */
58
58
  name: string;
59
+ /**
60
+ * /**
61
+ * The domain's currency
62
+ * @type {string}
63
+ * @memberof DomainDto
64
+ */
65
+ currency: string;
59
66
  /**
60
67
  * The BIN
61
68
  * @type {MoneyDto}
@@ -79,6 +86,7 @@ export function instanceOfDomainDto(value: object): boolean {
79
86
  if (!('verified' in value)) return false;
80
87
  if (!('nameservers' in value)) return false;
81
88
  if (!('name' in value)) return false;
89
+ if (!('currency' in value)) return false;
82
90
  if (!('buyNow' in value)) return false;
83
91
  if (!('minOffer' in value)) return false;
84
92
  return true;
@@ -99,6 +107,7 @@ export function DomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
99
107
  'verified': json['verified'],
100
108
  'nameservers': json['nameservers'],
101
109
  'name': json['name'],
110
+ 'currency': json['currency'],
102
111
  'buyNow': MoneyDtoFromJSON(json['buyNow']),
103
112
  'minOffer': MoneyDtoFromJSON(json['minOffer']),
104
113
  };
@@ -115,6 +124,7 @@ export function DomainDtoToJSON(value?: DomainDto | null): any {
115
124
  'verified': value['verified'],
116
125
  'nameservers': value['nameservers'],
117
126
  'name': value['name'],
127
+ 'currency': value['currency'],
118
128
  'buyNow': MoneyDtoToJSON(value['buyNow']),
119
129
  'minOffer': MoneyDtoToJSON(value['minOffer']),
120
130
  };
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { RelatedSellerDomain } from './RelatedSellerDomain';
17
+ import {
18
+ RelatedSellerDomainFromJSON,
19
+ RelatedSellerDomainFromJSONTyped,
20
+ RelatedSellerDomainToJSON,
21
+ } from './RelatedSellerDomain';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -31,6 +38,12 @@ export interface DomainSellerDto {
31
38
  * @memberof DomainSellerDto
32
39
  */
33
40
  createdAt: Date;
41
+ /**
42
+ * The domain seller account creation date
43
+ * @type {Array<RelatedSellerDomain>}
44
+ * @memberof DomainSellerDto
45
+ */
46
+ relatedDomains: Array<RelatedSellerDomain> | null;
34
47
  }
35
48
 
36
49
  /**
@@ -39,6 +52,7 @@ export interface DomainSellerDto {
39
52
  export function instanceOfDomainSellerDto(value: object): boolean {
40
53
  if (!('verified' in value)) return false;
41
54
  if (!('createdAt' in value)) return false;
55
+ if (!('relatedDomains' in value)) return false;
42
56
  return true;
43
57
  }
44
58
 
@@ -54,6 +68,7 @@ export function DomainSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
54
68
 
55
69
  'verified': json['verified'],
56
70
  'createdAt': (new Date(json['createdAt'])),
71
+ 'relatedDomains': (json['relatedDomains'] == null ? null : (json['relatedDomains'] as Array<any>).map(RelatedSellerDomainFromJSON)),
57
72
  };
58
73
  }
59
74
 
@@ -65,6 +80,7 @@ export function DomainSellerDtoToJSON(value?: DomainSellerDto | null): any {
65
80
 
66
81
  'verified': value['verified'],
67
82
  'createdAt': ((value['createdAt']).toISOString()),
83
+ 'relatedDomains': (value['relatedDomains'] == null ? null : (value['relatedDomains'] as Array<any>).map(RelatedSellerDomainToJSON)),
68
84
  };
69
85
  }
70
86
 
@@ -62,6 +62,13 @@ export interface IntersectionDomainDtoWithAccountDto {
62
62
  * @memberof IntersectionDomainDtoWithAccountDto
63
63
  */
64
64
  name: string;
65
+ /**
66
+ * /**
67
+ * The domain's currency
68
+ * @type {string}
69
+ * @memberof IntersectionDomainDtoWithAccountDto
70
+ */
71
+ currency: string;
65
72
  /**
66
73
  * The BIN
67
74
  * @type {MoneyDto}
@@ -91,6 +98,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): bo
91
98
  if (!('verified' in value)) return false;
92
99
  if (!('nameservers' in value)) return false;
93
100
  if (!('name' in value)) return false;
101
+ if (!('currency' in value)) return false;
94
102
  if (!('buyNow' in value)) return false;
95
103
  if (!('minOffer' in value)) return false;
96
104
  if (!('account' in value)) return false;
@@ -112,6 +120,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
112
120
  'verified': json['verified'],
113
121
  'nameservers': json['nameservers'],
114
122
  'name': json['name'],
123
+ 'currency': json['currency'],
115
124
  'buyNow': MoneyDtoFromJSON(json['buyNow']),
116
125
  'minOffer': MoneyDtoFromJSON(json['minOffer']),
117
126
  'account': AccountDtoFromJSON(json['account']),
@@ -129,6 +138,7 @@ export function IntersectionDomainDtoWithAccountDtoToJSON(value?: IntersectionDo
129
138
  'verified': value['verified'],
130
139
  'nameservers': value['nameservers'],
131
140
  'name': value['name'],
141
+ 'currency': value['currency'],
132
142
  'buyNow': MoneyDtoToJSON(value['buyNow']),
133
143
  'minOffer': MoneyDtoToJSON(value['minOffer']),
134
144
  'account': AccountDtoToJSON(value['account']),
@@ -62,6 +62,13 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
62
62
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
63
63
  */
64
64
  name: string;
65
+ /**
66
+ * /**
67
+ * The domain's currency
68
+ * @type {string}
69
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
70
+ */
71
+ currency: string;
65
72
  /**
66
73
  * The BIN
67
74
  * @type {MoneyDto}
@@ -97,6 +104,7 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
97
104
  if (!('verified' in value)) return false;
98
105
  if (!('nameservers' in value)) return false;
99
106
  if (!('name' in value)) return false;
107
+ if (!('currency' in value)) return false;
100
108
  if (!('buyNow' in value)) return false;
101
109
  if (!('minOffer' in value)) return false;
102
110
  if (!('hijacker' in value)) return false;
@@ -119,6 +127,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
119
127
  'verified': json['verified'],
120
128
  'nameservers': json['nameservers'],
121
129
  'name': json['name'],
130
+ 'currency': json['currency'],
122
131
  'buyNow': MoneyDtoFromJSON(json['buyNow']),
123
132
  'minOffer': MoneyDtoFromJSON(json['minOffer']),
124
133
  'hijacker': AccountDtoFromJSON(json['hijacker']),
@@ -137,6 +146,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON(value?:
137
146
  'verified': value['verified'],
138
147
  'nameservers': value['nameservers'],
139
148
  'name': value['name'],
149
+ 'currency': value['currency'],
140
150
  'buyNow': MoneyDtoToJSON(value['buyNow']),
141
151
  'minOffer': MoneyDtoToJSON(value['minOffer']),
142
152
  'hijacker': AccountDtoToJSON(value['hijacker']),
@@ -0,0 +1,86 @@
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 { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ } from './MoneyDto';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface RelatedSellerDomain
27
+ */
28
+ export interface RelatedSellerDomain {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof RelatedSellerDomain
33
+ */
34
+ name: string;
35
+ /**
36
+ *
37
+ * @type {MoneyDto}
38
+ * @memberof RelatedSellerDomain
39
+ */
40
+ buyNow: MoneyDto | null;
41
+ /**
42
+ *
43
+ * @type {MoneyDto}
44
+ * @memberof RelatedSellerDomain
45
+ */
46
+ minOffer: MoneyDto | null;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the RelatedSellerDomain interface.
51
+ */
52
+ export function instanceOfRelatedSellerDomain(value: object): boolean {
53
+ if (!('name' in value)) return false;
54
+ if (!('buyNow' in value)) return false;
55
+ if (!('minOffer' in value)) return false;
56
+ return true;
57
+ }
58
+
59
+ export function RelatedSellerDomainFromJSON(json: any): RelatedSellerDomain {
60
+ return RelatedSellerDomainFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function RelatedSellerDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): RelatedSellerDomain {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'name': json['name'],
70
+ 'buyNow': MoneyDtoFromJSON(json['buyNow']),
71
+ 'minOffer': MoneyDtoFromJSON(json['minOffer']),
72
+ };
73
+ }
74
+
75
+ export function RelatedSellerDomainToJSON(value?: RelatedSellerDomain | null): any {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+ return {
80
+
81
+ 'name': value['name'],
82
+ 'buyNow': MoneyDtoToJSON(value['buyNow']),
83
+ 'minOffer': MoneyDtoToJSON(value['minOffer']),
84
+ };
85
+ }
86
+
@@ -26,6 +26,12 @@ import {
26
26
  * @interface WithSettingsInner
27
27
  */
28
28
  export interface WithSettingsInner {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof WithSettingsInner
33
+ */
34
+ defaultCurrencyCode: string;
29
35
  /**
30
36
  *
31
37
  * @type {MoneyDto}
@@ -38,6 +44,7 @@ export interface WithSettingsInner {
38
44
  * Check if a given object implements the WithSettingsInner interface.
39
45
  */
40
46
  export function instanceOfWithSettingsInner(value: object): boolean {
47
+ if (!('defaultCurrencyCode' in value)) return false;
41
48
  if (!('defaultStartingOffer' in value)) return false;
42
49
  return true;
43
50
  }
@@ -52,6 +59,7 @@ export function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: b
52
59
  }
53
60
  return {
54
61
 
62
+ 'defaultCurrencyCode': json['defaultCurrencyCode'],
55
63
  'defaultStartingOffer': MoneyDtoFromJSON(json['defaultStartingOffer']),
56
64
  };
57
65
  }
@@ -62,6 +70,7 @@ export function WithSettingsInnerToJSON(value?: WithSettingsInner | null): any {
62
70
  }
63
71
  return {
64
72
 
73
+ 'defaultCurrencyCode': value['defaultCurrencyCode'],
65
74
  'defaultStartingOffer': MoneyDtoToJSON(value['defaultStartingOffer']),
66
75
  };
67
76
  }
@@ -7,6 +7,7 @@ export * from './AccountFinancialInput';
7
7
  export * from './AccountSettingsInput';
8
8
  export * from './BatchUpdate404Response';
9
9
  export * from './BatchUpdateDomainsInput';
10
+ export * from './BuyDomainInput';
10
11
  export * from './CreateLeadInput';
11
12
  export * from './CreateLeadMessageInput';
12
13
  export * from './DashboardStatsDto';
@@ -45,6 +46,7 @@ export * from './PaginateResponse';
45
46
  export * from './PaginateResponseLinks';
46
47
  export * from './PaginateResponseMeta';
47
48
  export * from './PutLeadInput';
49
+ export * from './RelatedSellerDomain';
48
50
  export * from './SecurityUserDto';
49
51
  export * from './TokenDto';
50
52
  export * from './UpdateDomainInput';