@randock/nameshift-api-client 0.0.51 → 0.0.53

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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.51
1
+ ## @randock/nameshift-api-client@0.0.53
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.51 --save
39
+ npm install @randock/nameshift-api-client@0.0.53 --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
- 8df6d8a7d40a12158f5b624f490a2630f0469544293a8b9e35f89ea53465fbd2595fe69631c1d3ff8afc34aa74c92d08
47
+ a5c5b964309b745f1f2778dbc910fa161ce4cfd07931e4f3c79684fc029a1d15fee5e643666c901f147815bfd56436a2
@@ -13,6 +13,7 @@ import * as runtime from '../runtime';
13
13
  import type { BuyDomainInput, DomainSalesInformationDto, ObjectId } from '../models/index';
14
14
  export interface DomainsPublicApiGetDomainSalesInformationRequest {
15
15
  domainName: string;
16
+ locale: string;
16
17
  }
17
18
  export interface DomainsPublicApiPostDomainByNameBuyRequest {
18
19
  domainName: string;
@@ -87,7 +87,13 @@ var DomainsPublicApi = /** @class */ (function (_super) {
87
87
  if (requestParameters['domainName'] == null) {
88
88
  throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling getDomainSalesInformation().');
89
89
  }
90
+ if (requestParameters['locale'] == null) {
91
+ throw new runtime.RequiredError('locale', 'Required parameter "locale" was null or undefined when calling getDomainSalesInformation().');
92
+ }
90
93
  queryParameters = {};
94
+ if (requestParameters['locale'] != null) {
95
+ queryParameters['locale'] = requestParameters['locale'];
96
+ }
91
97
  headerParameters = {};
92
98
  return [4 /*yield*/, this.request({
93
99
  path: "/domains/by-name/{domainName}/sales-information".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters['domainName']))),
@@ -22,6 +22,18 @@ export interface DomainDto {
22
22
  * @memberof DomainDto
23
23
  */
24
24
  id: string;
25
+ /**
26
+ * The current owner for the domain
27
+ * @type {string}
28
+ * @memberof DomainDto
29
+ */
30
+ accountId: string;
31
+ /**
32
+ * The hijacker for the domain
33
+ * @type {string}
34
+ * @memberof DomainDto
35
+ */
36
+ hijackerId: string | null;
25
37
  /**
26
38
  * The TLD for this domain.
27
39
  * @type {string}
@@ -21,6 +21,10 @@ var MoneyDto_1 = require("./MoneyDto");
21
21
  function instanceOfDomainDto(value) {
22
22
  if (!('id' in value) || value['id'] === undefined)
23
23
  return false;
24
+ if (!('accountId' in value) || value['accountId'] === undefined)
25
+ return false;
26
+ if (!('hijackerId' in value) || value['hijackerId'] === undefined)
27
+ return false;
24
28
  if (!('tld' in value) || value['tld'] === undefined)
25
29
  return false;
26
30
  if (!('verified' in value) || value['verified'] === undefined)
@@ -48,6 +52,8 @@ function DomainDtoFromJSONTyped(json, ignoreDiscriminator) {
48
52
  }
49
53
  return {
50
54
  'id': json['id'],
55
+ 'accountId': json['accountId'],
56
+ 'hijackerId': json['hijackerId'],
51
57
  'tld': json['tld'],
52
58
  'verified': json['verified'],
53
59
  'nameservers': json['nameservers'],
@@ -64,6 +70,8 @@ function DomainDtoToJSON(value) {
64
70
  }
65
71
  return {
66
72
  'id': value['id'],
73
+ 'accountId': value['accountId'],
74
+ 'hijackerId': value['hijackerId'],
67
75
  'tld': value['tld'],
68
76
  'verified': value['verified'],
69
77
  'nameservers': value['nameservers'],
@@ -23,6 +23,18 @@ export interface IntersectionDomainDtoWithAccountDto {
23
23
  * @memberof IntersectionDomainDtoWithAccountDto
24
24
  */
25
25
  id: string;
26
+ /**
27
+ * The current owner for the domain
28
+ * @type {string}
29
+ * @memberof IntersectionDomainDtoWithAccountDto
30
+ */
31
+ accountId: string;
32
+ /**
33
+ * The hijacker for the domain
34
+ * @type {string}
35
+ * @memberof IntersectionDomainDtoWithAccountDto
36
+ */
37
+ hijackerId: string | null;
26
38
  /**
27
39
  * The TLD for this domain.
28
40
  * @type {string}
@@ -22,6 +22,10 @@ var AccountDto_1 = require("./AccountDto");
22
22
  function instanceOfIntersectionDomainDtoWithAccountDto(value) {
23
23
  if (!('id' in value) || value['id'] === undefined)
24
24
  return false;
25
+ if (!('accountId' in value) || value['accountId'] === undefined)
26
+ return false;
27
+ if (!('hijackerId' in value) || value['hijackerId'] === undefined)
28
+ return false;
25
29
  if (!('tld' in value) || value['tld'] === undefined)
26
30
  return false;
27
31
  if (!('verified' in value) || value['verified'] === undefined)
@@ -51,6 +55,8 @@ function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscrimina
51
55
  }
52
56
  return {
53
57
  'id': json['id'],
58
+ 'accountId': json['accountId'],
59
+ 'hijackerId': json['hijackerId'],
54
60
  'tld': json['tld'],
55
61
  'verified': json['verified'],
56
62
  'nameservers': json['nameservers'],
@@ -68,6 +74,8 @@ function IntersectionDomainDtoWithAccountDtoToJSON(value) {
68
74
  }
69
75
  return {
70
76
  'id': value['id'],
77
+ 'accountId': value['accountId'],
78
+ 'hijackerId': value['hijackerId'],
71
79
  'tld': value['tld'],
72
80
  'verified': value['verified'],
73
81
  'nameservers': value['nameservers'],
@@ -23,6 +23,18 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
23
23
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
24
24
  */
25
25
  id: string;
26
+ /**
27
+ * The current owner for the domain
28
+ * @type {string}
29
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
30
+ */
31
+ accountId: string;
32
+ /**
33
+ * The hijacker for the domain
34
+ * @type {string}
35
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
36
+ */
37
+ hijackerId: string | null;
26
38
  /**
27
39
  * The TLD for this domain.
28
40
  * @type {string}
@@ -22,6 +22,10 @@ var AccountDto_1 = require("./AccountDto");
22
22
  function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
23
23
  if (!('id' in value) || value['id'] === undefined)
24
24
  return false;
25
+ if (!('accountId' in value) || value['accountId'] === undefined)
26
+ return false;
27
+ if (!('hijackerId' in value) || value['hijackerId'] === undefined)
28
+ return false;
25
29
  if (!('tld' in value) || value['tld'] === undefined)
26
30
  return false;
27
31
  if (!('verified' in value) || value['verified'] === undefined)
@@ -53,6 +57,8 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
53
57
  }
54
58
  return {
55
59
  'id': json['id'],
60
+ 'accountId': json['accountId'],
61
+ 'hijackerId': json['hijackerId'],
56
62
  'tld': json['tld'],
57
63
  'verified': json['verified'],
58
64
  'nameservers': json['nameservers'],
@@ -71,6 +77,8 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON(value) {
71
77
  }
72
78
  return {
73
79
  'id': value['id'],
80
+ 'accountId': value['accountId'],
81
+ 'hijackerId': value['hijackerId'],
74
82
  'tld': value['tld'],
75
83
  'verified': value['verified'],
76
84
  'nameservers': value['nameservers'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -39,6 +39,7 @@ import {
39
39
 
40
40
  export interface DomainsPublicApiGetDomainSalesInformationRequest {
41
41
  domainName: string;
42
+ locale: string;
42
43
  }
43
44
 
44
45
  export interface DomainsPublicApiPostDomainByNameBuyRequest {
@@ -62,8 +63,19 @@ export class DomainsPublicApi extends runtime.BaseAPI {
62
63
  );
63
64
  }
64
65
 
66
+ if (requestParameters['locale'] == null) {
67
+ throw new runtime.RequiredError(
68
+ 'locale',
69
+ 'Required parameter "locale" was null or undefined when calling getDomainSalesInformation().'
70
+ );
71
+ }
72
+
65
73
  const queryParameters: any = {};
66
74
 
75
+ if (requestParameters['locale'] != null) {
76
+ queryParameters['locale'] = requestParameters['locale'];
77
+ }
78
+
67
79
  const headerParameters: runtime.HTTPHeaders = {};
68
80
 
69
81
  const response = await this.request({
@@ -32,6 +32,18 @@ export interface DomainDto {
32
32
  * @memberof DomainDto
33
33
  */
34
34
  id: string;
35
+ /**
36
+ * The current owner for the domain
37
+ * @type {string}
38
+ * @memberof DomainDto
39
+ */
40
+ accountId: string;
41
+ /**
42
+ * The hijacker for the domain
43
+ * @type {string}
44
+ * @memberof DomainDto
45
+ */
46
+ hijackerId: string | null;
35
47
  /**
36
48
  * The TLD for this domain.
37
49
  * @type {string}
@@ -82,6 +94,8 @@ export interface DomainDto {
82
94
  */
83
95
  export function instanceOfDomainDto(value: object): value is DomainDto {
84
96
  if (!('id' in value) || value['id'] === undefined) return false;
97
+ if (!('accountId' in value) || value['accountId'] === undefined) return false;
98
+ if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
85
99
  if (!('tld' in value) || value['tld'] === undefined) return false;
86
100
  if (!('verified' in value) || value['verified'] === undefined) return false;
87
101
  if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
@@ -103,6 +117,8 @@ export function DomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
103
117
  return {
104
118
 
105
119
  'id': json['id'],
120
+ 'accountId': json['accountId'],
121
+ 'hijackerId': json['hijackerId'],
106
122
  'tld': json['tld'],
107
123
  'verified': json['verified'],
108
124
  'nameservers': json['nameservers'],
@@ -120,6 +136,8 @@ export function DomainDtoToJSON(value?: DomainDto | null): any {
120
136
  return {
121
137
 
122
138
  'id': value['id'],
139
+ 'accountId': value['accountId'],
140
+ 'hijackerId': value['hijackerId'],
123
141
  'tld': value['tld'],
124
142
  'verified': value['verified'],
125
143
  'nameservers': value['nameservers'],
@@ -38,6 +38,18 @@ export interface IntersectionDomainDtoWithAccountDto {
38
38
  * @memberof IntersectionDomainDtoWithAccountDto
39
39
  */
40
40
  id: string;
41
+ /**
42
+ * The current owner for the domain
43
+ * @type {string}
44
+ * @memberof IntersectionDomainDtoWithAccountDto
45
+ */
46
+ accountId: string;
47
+ /**
48
+ * The hijacker for the domain
49
+ * @type {string}
50
+ * @memberof IntersectionDomainDtoWithAccountDto
51
+ */
52
+ hijackerId: string | null;
41
53
  /**
42
54
  * The TLD for this domain.
43
55
  * @type {string}
@@ -94,6 +106,8 @@ export interface IntersectionDomainDtoWithAccountDto {
94
106
  */
95
107
  export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): value is IntersectionDomainDtoWithAccountDto {
96
108
  if (!('id' in value) || value['id'] === undefined) return false;
109
+ if (!('accountId' in value) || value['accountId'] === undefined) return false;
110
+ if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
97
111
  if (!('tld' in value) || value['tld'] === undefined) return false;
98
112
  if (!('verified' in value) || value['verified'] === undefined) return false;
99
113
  if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
@@ -116,6 +130,8 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
116
130
  return {
117
131
 
118
132
  'id': json['id'],
133
+ 'accountId': json['accountId'],
134
+ 'hijackerId': json['hijackerId'],
119
135
  'tld': json['tld'],
120
136
  'verified': json['verified'],
121
137
  'nameservers': json['nameservers'],
@@ -134,6 +150,8 @@ export function IntersectionDomainDtoWithAccountDtoToJSON(value?: IntersectionDo
134
150
  return {
135
151
 
136
152
  'id': value['id'],
153
+ 'accountId': value['accountId'],
154
+ 'hijackerId': value['hijackerId'],
137
155
  'tld': value['tld'],
138
156
  'verified': value['verified'],
139
157
  'nameservers': value['nameservers'],
@@ -38,6 +38,18 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
38
38
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
39
39
  */
40
40
  id: string;
41
+ /**
42
+ * The current owner for the domain
43
+ * @type {string}
44
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
45
+ */
46
+ accountId: string;
47
+ /**
48
+ * The hijacker for the domain
49
+ * @type {string}
50
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
51
+ */
52
+ hijackerId: string | null;
41
53
  /**
42
54
  * The TLD for this domain.
43
55
  * @type {string}
@@ -100,6 +112,8 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
100
112
  */
101
113
  export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value: object): value is IntersectionDomainDtoWithHijackerDtoWithAccountDto {
102
114
  if (!('id' in value) || value['id'] === undefined) return false;
115
+ if (!('accountId' in value) || value['accountId'] === undefined) return false;
116
+ if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
103
117
  if (!('tld' in value) || value['tld'] === undefined) return false;
104
118
  if (!('verified' in value) || value['verified'] === undefined) return false;
105
119
  if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
@@ -123,6 +137,8 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
123
137
  return {
124
138
 
125
139
  'id': json['id'],
140
+ 'accountId': json['accountId'],
141
+ 'hijackerId': json['hijackerId'],
126
142
  'tld': json['tld'],
127
143
  'verified': json['verified'],
128
144
  'nameservers': json['nameservers'],
@@ -142,6 +158,8 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON(value?:
142
158
  return {
143
159
 
144
160
  'id': value['id'],
161
+ 'accountId': value['accountId'],
162
+ 'hijackerId': value['hijackerId'],
145
163
  'tld': value['tld'],
146
164
  'verified': value['verified'],
147
165
  'nameservers': value['nameservers'],