@randock/nameshift-api-client 0.0.31 → 0.0.32

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.31
1
+ ## @randock/nameshift-api-client@0.0.32
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.31 --save
39
+ npm install @randock/nameshift-api-client@0.0.32 --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
- 5e1608b7523fe7f986d5ece5e4752cdf44fba91585a15b083065720b5181b0421df28596d1ee5c9f2d60a5e8c1b3a121
47
+ b392534377f4517cb44a8e067141ece8b6bc0b7b9664c013985e66d0dab39e13694a6d9ad56daa4eceea7ed0e75149ed
@@ -18,6 +18,9 @@ export interface DomainsPublicApiPostDomainByNameBuyRequest {
18
18
  domainName: string;
19
19
  buyDomainInput: BuyDomainInput;
20
20
  }
21
+ export interface DomainsPublicApiPublicDomainControllerPostDomainTransferRequest {
22
+ domainId: string;
23
+ }
21
24
  /**
22
25
  *
23
26
  */
@@ -38,4 +41,10 @@ export declare class DomainsPublicApi extends runtime.BaseAPI {
38
41
  *
39
42
  */
40
43
  postDomainByNameBuy(requestParameters: DomainsPublicApiPostDomainByNameBuyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
44
+ /**
45
+ */
46
+ publicDomainControllerPostDomainTransferRaw(requestParameters: DomainsPublicApiPublicDomainControllerPostDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
47
+ /**
48
+ */
49
+ publicDomainControllerPostDomainTransfer(requestParameters: DomainsPublicApiPublicDomainControllerPostDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
41
50
  }
@@ -168,6 +168,46 @@ var DomainsPublicApi = /** @class */ (function (_super) {
168
168
  });
169
169
  });
170
170
  };
171
+ /**
172
+ */
173
+ DomainsPublicApi.prototype.publicDomainControllerPostDomainTransferRaw = function (requestParameters, initOverrides) {
174
+ return __awaiter(this, void 0, void 0, function () {
175
+ var queryParameters, headerParameters, response;
176
+ return __generator(this, function (_a) {
177
+ switch (_a.label) {
178
+ case 0:
179
+ if (requestParameters['domainId'] == null) {
180
+ throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling publicDomainControllerPostDomainTransfer().');
181
+ }
182
+ queryParameters = {};
183
+ headerParameters = {};
184
+ return [4 /*yield*/, this.request({
185
+ path: "/domains/{domainId}/transfer".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
186
+ method: 'POST',
187
+ headers: headerParameters,
188
+ query: queryParameters,
189
+ }, initOverrides)];
190
+ case 1:
191
+ response = _a.sent();
192
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
193
+ }
194
+ });
195
+ });
196
+ };
197
+ /**
198
+ */
199
+ DomainsPublicApi.prototype.publicDomainControllerPostDomainTransfer = function (requestParameters, initOverrides) {
200
+ return __awaiter(this, void 0, void 0, function () {
201
+ return __generator(this, function (_a) {
202
+ switch (_a.label) {
203
+ case 0: return [4 /*yield*/, this.publicDomainControllerPostDomainTransferRaw(requestParameters, initOverrides)];
204
+ case 1:
205
+ _a.sent();
206
+ return [2 /*return*/];
207
+ }
208
+ });
209
+ });
210
+ };
171
211
  return DomainsPublicApi;
172
212
  }(runtime.BaseAPI));
173
213
  exports.DomainsPublicApi = DomainsPublicApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -46,6 +46,10 @@ export interface DomainsPublicApiPostDomainByNameBuyRequest {
46
46
  buyDomainInput: BuyDomainInput;
47
47
  }
48
48
 
49
+ export interface DomainsPublicApiPublicDomainControllerPostDomainTransferRequest {
50
+ domainId: string;
51
+ }
52
+
49
53
  /**
50
54
  *
51
55
  */
@@ -127,4 +131,34 @@ export class DomainsPublicApi extends runtime.BaseAPI {
127
131
  return await response.value();
128
132
  }
129
133
 
134
+ /**
135
+ */
136
+ async publicDomainControllerPostDomainTransferRaw(requestParameters: DomainsPublicApiPublicDomainControllerPostDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
137
+ if (requestParameters['domainId'] == null) {
138
+ throw new runtime.RequiredError(
139
+ 'domainId',
140
+ 'Required parameter "domainId" was null or undefined when calling publicDomainControllerPostDomainTransfer().'
141
+ );
142
+ }
143
+
144
+ const queryParameters: any = {};
145
+
146
+ const headerParameters: runtime.HTTPHeaders = {};
147
+
148
+ const response = await this.request({
149
+ path: `/domains/{domainId}/transfer`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
150
+ method: 'POST',
151
+ headers: headerParameters,
152
+ query: queryParameters,
153
+ }, initOverrides);
154
+
155
+ return new runtime.VoidApiResponse(response);
156
+ }
157
+
158
+ /**
159
+ */
160
+ async publicDomainControllerPostDomainTransfer(requestParameters: DomainsPublicApiPublicDomainControllerPostDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
161
+ await this.publicDomainControllerPostDomainTransferRaw(requestParameters, initOverrides);
162
+ }
163
+
130
164
  }