@randock/nameshift-api-client 0.0.351 → 0.0.352
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.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.352
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.352 --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
|
-
|
|
47
|
+
ae3fadaf61d1e28c76cd7296d9a4fcd21fad00ee4ddaa90da84f1474c317bba964d8156d9c97b04e81d7e8fab57e1cd8
|
|
@@ -16,6 +16,7 @@ export interface DomainsPublicApiGetAllTldsRequest {
|
|
|
16
16
|
}
|
|
17
17
|
export interface DomainsPublicApiGetDomainRelatedDomainsRequest {
|
|
18
18
|
domainName: string;
|
|
19
|
+
locale: string;
|
|
19
20
|
}
|
|
20
21
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
21
22
|
domainName: string;
|
|
@@ -132,7 +132,13 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
132
132
|
if (requestParameters['domainName'] == null) {
|
|
133
133
|
throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling getDomainRelatedDomains().');
|
|
134
134
|
}
|
|
135
|
+
if (requestParameters['locale'] == null) {
|
|
136
|
+
throw new runtime.RequiredError('locale', 'Required parameter "locale" was null or undefined when calling getDomainRelatedDomains().');
|
|
137
|
+
}
|
|
135
138
|
queryParameters = {};
|
|
139
|
+
if (requestParameters['locale'] != null) {
|
|
140
|
+
queryParameters['locale'] = requestParameters['locale'];
|
|
141
|
+
}
|
|
136
142
|
headerParameters = {};
|
|
137
143
|
return [4 /*yield*/, this.request({
|
|
138
144
|
path: "/domains/by-name/{domainName}/related-domains".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters['domainName']))),
|
package/package.json
CHANGED
|
@@ -49,6 +49,7 @@ export interface DomainsPublicApiGetAllTldsRequest {
|
|
|
49
49
|
|
|
50
50
|
export interface DomainsPublicApiGetDomainRelatedDomainsRequest {
|
|
51
51
|
domainName: string;
|
|
52
|
+
locale: string;
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
@@ -116,8 +117,19 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
116
117
|
);
|
|
117
118
|
}
|
|
118
119
|
|
|
120
|
+
if (requestParameters['locale'] == null) {
|
|
121
|
+
throw new runtime.RequiredError(
|
|
122
|
+
'locale',
|
|
123
|
+
'Required parameter "locale" was null or undefined when calling getDomainRelatedDomains().'
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
119
127
|
const queryParameters: any = {};
|
|
120
128
|
|
|
129
|
+
if (requestParameters['locale'] != null) {
|
|
130
|
+
queryParameters['locale'] = requestParameters['locale'];
|
|
131
|
+
}
|
|
132
|
+
|
|
121
133
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
122
134
|
|
|
123
135
|
const response = await this.request({
|