@randock/nameshift-api-client 0.0.78 → 0.0.79

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.78
1
+ ## @randock/nameshift-api-client@0.0.79
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.78 --save
39
+ npm install @randock/nameshift-api-client@0.0.79 --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
- 26f0df9c33e8ca76aac6b6a8ee25a1125795885fe9a527297734f58130f052c5181f38e3fe3e19c86941676f612bb2ae
47
+ d3b15c20c27d12b9075284809ed50ebf73de84e26a2be5e4cdf3a213d4c79d82cf331d96c7a8a49b1370dc583c66332c
@@ -24,6 +24,11 @@ export interface AdminApiChangeOrderStatusRequest {
24
24
  export interface AdminApiGetAdminDomainTransferDetailsRequest {
25
25
  transferId: string;
26
26
  }
27
+ export interface AdminApiGetAdminExecuteDomainTransferStepActionRequest {
28
+ transferId: string;
29
+ stepName: string;
30
+ actionName: string;
31
+ }
27
32
  export interface AdminApiGetAllOrdersRequest {
28
33
  filter?: object;
29
34
  page?: number;
@@ -64,6 +69,14 @@ export declare class AdminApi extends runtime.BaseAPI {
64
69
  *
65
70
  */
66
71
  getAdminDomainTransferDetails(requestParameters: AdminApiGetAdminDomainTransferDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTransferDetailsDto>;
72
+ /**
73
+ *
74
+ */
75
+ getAdminExecuteDomainTransferStepActionRaw(requestParameters: AdminApiGetAdminExecuteDomainTransferStepActionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
76
+ /**
77
+ *
78
+ */
79
+ getAdminExecuteDomainTransferStepAction(requestParameters: AdminApiGetAdminExecuteDomainTransferStepActionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
67
80
  /**
68
81
  *
69
82
  */
@@ -108,7 +108,7 @@ var AdminApi = /** @class */ (function (_super) {
108
108
  }
109
109
  _a.label = 2;
110
110
  case 2: return [4 /*yield*/, this.request({
111
- path: "/admin/domains/transfers",
111
+ path: "/admin/domain-transfers",
112
112
  method: 'GET',
113
113
  headers: headerParameters,
114
114
  query: queryParameters,
@@ -218,7 +218,7 @@ var AdminApi = /** @class */ (function (_super) {
218
218
  }
219
219
  _a.label = 2;
220
220
  case 2: return [4 /*yield*/, this.request({
221
- path: "/admin/domains/transfers/{transferId}".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
221
+ path: "/admin/domain-transfers/{transferId}".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
222
222
  method: 'GET',
223
223
  headers: headerParameters,
224
224
  query: queryParameters,
@@ -247,6 +247,63 @@ var AdminApi = /** @class */ (function (_super) {
247
247
  });
248
248
  });
249
249
  };
250
+ /**
251
+ *
252
+ */
253
+ AdminApi.prototype.getAdminExecuteDomainTransferStepActionRaw = function (requestParameters, initOverrides) {
254
+ return __awaiter(this, void 0, void 0, function () {
255
+ var queryParameters, headerParameters, token, tokenString, response;
256
+ return __generator(this, function (_a) {
257
+ switch (_a.label) {
258
+ case 0:
259
+ if (requestParameters['transferId'] == null) {
260
+ throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling getAdminExecuteDomainTransferStepAction().');
261
+ }
262
+ if (requestParameters['stepName'] == null) {
263
+ throw new runtime.RequiredError('stepName', 'Required parameter "stepName" was null or undefined when calling getAdminExecuteDomainTransferStepAction().');
264
+ }
265
+ if (requestParameters['actionName'] == null) {
266
+ throw new runtime.RequiredError('actionName', 'Required parameter "actionName" was null or undefined when calling getAdminExecuteDomainTransferStepAction().');
267
+ }
268
+ queryParameters = {};
269
+ headerParameters = {};
270
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
271
+ token = this.configuration.accessToken;
272
+ return [4 /*yield*/, token("bearer", [])];
273
+ case 1:
274
+ tokenString = _a.sent();
275
+ if (tokenString) {
276
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
277
+ }
278
+ _a.label = 2;
279
+ case 2: return [4 /*yield*/, this.request({
280
+ path: "/admin/domain-transfers/{transferId}/step/{stepName}/action/{actionName}/execute".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))).replace("{".concat("stepName", "}"), encodeURIComponent(String(requestParameters['stepName']))).replace("{".concat("actionName", "}"), encodeURIComponent(String(requestParameters['actionName']))),
281
+ method: 'POST',
282
+ headers: headerParameters,
283
+ query: queryParameters,
284
+ }, initOverrides)];
285
+ case 3:
286
+ response = _a.sent();
287
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
288
+ }
289
+ });
290
+ });
291
+ };
292
+ /**
293
+ *
294
+ */
295
+ AdminApi.prototype.getAdminExecuteDomainTransferStepAction = function (requestParameters, initOverrides) {
296
+ return __awaiter(this, void 0, void 0, function () {
297
+ return __generator(this, function (_a) {
298
+ switch (_a.label) {
299
+ case 0: return [4 /*yield*/, this.getAdminExecuteDomainTransferStepActionRaw(requestParameters, initOverrides)];
300
+ case 1:
301
+ _a.sent();
302
+ return [2 /*return*/];
303
+ }
304
+ });
305
+ });
306
+ };
250
307
  /**
251
308
  *
252
309
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.78",
3
+ "version": "0.0.79",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -16,6 +16,7 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  AdminGetAllDomainTransfers200Response,
19
+ BadRequestException,
19
20
  ChangeOrderStatusInput,
20
21
  DomainTransferDetailsDto,
21
22
  GetAllOrders200Response,
@@ -27,6 +28,8 @@ import type {
27
28
  import {
28
29
  AdminGetAllDomainTransfers200ResponseFromJSON,
29
30
  AdminGetAllDomainTransfers200ResponseToJSON,
31
+ BadRequestExceptionFromJSON,
32
+ BadRequestExceptionToJSON,
30
33
  ChangeOrderStatusInputFromJSON,
31
34
  ChangeOrderStatusInputToJSON,
32
35
  DomainTransferDetailsDtoFromJSON,
@@ -59,6 +62,12 @@ export interface AdminApiGetAdminDomainTransferDetailsRequest {
59
62
  transferId: string;
60
63
  }
61
64
 
65
+ export interface AdminApiGetAdminExecuteDomainTransferStepActionRequest {
66
+ transferId: string;
67
+ stepName: string;
68
+ actionName: string;
69
+ }
70
+
62
71
  export interface AdminApiGetAllOrdersRequest {
63
72
  filter?: object;
64
73
  page?: number;
@@ -111,7 +120,7 @@ export class AdminApi extends runtime.BaseAPI {
111
120
  }
112
121
  }
113
122
  const response = await this.request({
114
- path: `/admin/domains/transfers`,
123
+ path: `/admin/domain-transfers`,
115
124
  method: 'GET',
116
125
  headers: headerParameters,
117
126
  query: queryParameters,
@@ -202,7 +211,7 @@ export class AdminApi extends runtime.BaseAPI {
202
211
  }
203
212
  }
204
213
  const response = await this.request({
205
- path: `/admin/domains/transfers/{transferId}`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
214
+ path: `/admin/domain-transfers/{transferId}`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
206
215
  method: 'GET',
207
216
  headers: headerParameters,
208
217
  query: queryParameters,
@@ -219,6 +228,60 @@ export class AdminApi extends runtime.BaseAPI {
219
228
  return await response.value();
220
229
  }
221
230
 
231
+ /**
232
+ *
233
+ */
234
+ async getAdminExecuteDomainTransferStepActionRaw(requestParameters: AdminApiGetAdminExecuteDomainTransferStepActionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
235
+ if (requestParameters['transferId'] == null) {
236
+ throw new runtime.RequiredError(
237
+ 'transferId',
238
+ 'Required parameter "transferId" was null or undefined when calling getAdminExecuteDomainTransferStepAction().'
239
+ );
240
+ }
241
+
242
+ if (requestParameters['stepName'] == null) {
243
+ throw new runtime.RequiredError(
244
+ 'stepName',
245
+ 'Required parameter "stepName" was null or undefined when calling getAdminExecuteDomainTransferStepAction().'
246
+ );
247
+ }
248
+
249
+ if (requestParameters['actionName'] == null) {
250
+ throw new runtime.RequiredError(
251
+ 'actionName',
252
+ 'Required parameter "actionName" was null or undefined when calling getAdminExecuteDomainTransferStepAction().'
253
+ );
254
+ }
255
+
256
+ const queryParameters: any = {};
257
+
258
+ const headerParameters: runtime.HTTPHeaders = {};
259
+
260
+ if (this.configuration && this.configuration.accessToken) {
261
+ const token = this.configuration.accessToken;
262
+ const tokenString = await token("bearer", []);
263
+
264
+ if (tokenString) {
265
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
266
+ }
267
+ }
268
+ const response = await this.request({
269
+ path: `/admin/domain-transfers/{transferId}/step/{stepName}/action/{actionName}/execute`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))).replace(`{${"stepName"}}`, encodeURIComponent(String(requestParameters['stepName']))).replace(`{${"actionName"}}`, encodeURIComponent(String(requestParameters['actionName']))),
270
+ method: 'POST',
271
+ headers: headerParameters,
272
+ query: queryParameters,
273
+ }, initOverrides);
274
+
275
+ return new runtime.VoidApiResponse(response);
276
+ }
277
+
278
+ /**
279
+ *
280
+ */
281
+ async getAdminExecuteDomainTransferStepAction(requestParameters: AdminApiGetAdminExecuteDomainTransferStepActionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
282
+ await this.getAdminExecuteDomainTransferStepActionRaw(requestParameters, initOverrides);
283
+ }
284
+
222
285
  /**
223
286
  *
224
287
  */