@randock/nameshift-api-client 0.0.68 → 0.0.69

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.68
1
+ ## @randock/nameshift-api-client@0.0.69
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.68 --save
39
+ npm install @randock/nameshift-api-client@0.0.69 --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
- 3157a975de961e9e536fd6de06db602b826b45b7decf325277f4000ee94e81a44e51981c8437c4a45e2288cda7727a0d
47
+ 7cd60b283a3398683024d48716a610362db330794cd7ebad45af2645e75cb477d8d2ce6371c766329cc12bb151a493d3
@@ -11,6 +11,9 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { BuyerDomainTransferAuthCodeDto, BuyerUserDto, GetBuyerTransfers200Response, StoreBuyerLocaleInput } from '../models/index';
14
+ export interface BuyersApiConfirmDomainTransferRequest {
15
+ transferId: string;
16
+ }
14
17
  export interface BuyersApiGetBuyerTransfersRequest {
15
18
  filter?: object;
16
19
  page?: number;
@@ -35,6 +38,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
35
38
  *
36
39
  */
37
40
  buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerUserDto>;
41
+ /**
42
+ *
43
+ */
44
+ confirmDomainTransferRaw(requestParameters: BuyersApiConfirmDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
45
+ /**
46
+ *
47
+ */
48
+ confirmDomainTransfer(requestParameters: BuyersApiConfirmDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
38
49
  /**
39
50
  *
40
51
  */
@@ -125,6 +125,57 @@ var BuyersApi = /** @class */ (function (_super) {
125
125
  });
126
126
  });
127
127
  };
128
+ /**
129
+ *
130
+ */
131
+ BuyersApi.prototype.confirmDomainTransferRaw = function (requestParameters, initOverrides) {
132
+ return __awaiter(this, void 0, void 0, function () {
133
+ var queryParameters, headerParameters, token, tokenString, response;
134
+ return __generator(this, function (_a) {
135
+ switch (_a.label) {
136
+ case 0:
137
+ if (requestParameters['transferId'] == null) {
138
+ throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling confirmDomainTransfer().');
139
+ }
140
+ queryParameters = {};
141
+ headerParameters = {};
142
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
143
+ token = this.configuration.accessToken;
144
+ return [4 /*yield*/, token("bearer", [])];
145
+ case 1:
146
+ tokenString = _a.sent();
147
+ if (tokenString) {
148
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
149
+ }
150
+ _a.label = 2;
151
+ case 2: return [4 /*yield*/, this.request({
152
+ path: "/buyers/private/transfers/{transferId}/confirm".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
153
+ method: 'PATCH',
154
+ headers: headerParameters,
155
+ query: queryParameters,
156
+ }, initOverrides)];
157
+ case 3:
158
+ response = _a.sent();
159
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
160
+ }
161
+ });
162
+ });
163
+ };
164
+ /**
165
+ *
166
+ */
167
+ BuyersApi.prototype.confirmDomainTransfer = function (requestParameters, initOverrides) {
168
+ return __awaiter(this, void 0, void 0, function () {
169
+ return __generator(this, function (_a) {
170
+ switch (_a.label) {
171
+ case 0: return [4 /*yield*/, this.confirmDomainTransferRaw(requestParameters, initOverrides)];
172
+ case 1:
173
+ _a.sent();
174
+ return [2 /*return*/];
175
+ }
176
+ });
177
+ });
178
+ };
128
179
  /**
129
180
  *
130
181
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.68",
3
+ "version": "0.0.69",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -40,6 +40,10 @@ import {
40
40
  ValidationExceptionToJSON,
41
41
  } from '../models/index';
42
42
 
43
+ export interface BuyersApiConfirmDomainTransferRequest {
44
+ transferId: string;
45
+ }
46
+
43
47
  export interface BuyersApiGetBuyerTransfersRequest {
44
48
  filter?: object;
45
49
  page?: number;
@@ -94,6 +98,46 @@ export class BuyersApi extends runtime.BaseAPI {
94
98
  return await response.value();
95
99
  }
96
100
 
101
+ /**
102
+ *
103
+ */
104
+ async confirmDomainTransferRaw(requestParameters: BuyersApiConfirmDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
105
+ if (requestParameters['transferId'] == null) {
106
+ throw new runtime.RequiredError(
107
+ 'transferId',
108
+ 'Required parameter "transferId" was null or undefined when calling confirmDomainTransfer().'
109
+ );
110
+ }
111
+
112
+ const queryParameters: any = {};
113
+
114
+ const headerParameters: runtime.HTTPHeaders = {};
115
+
116
+ if (this.configuration && this.configuration.accessToken) {
117
+ const token = this.configuration.accessToken;
118
+ const tokenString = await token("bearer", []);
119
+
120
+ if (tokenString) {
121
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
122
+ }
123
+ }
124
+ const response = await this.request({
125
+ path: `/buyers/private/transfers/{transferId}/confirm`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
126
+ method: 'PATCH',
127
+ headers: headerParameters,
128
+ query: queryParameters,
129
+ }, initOverrides);
130
+
131
+ return new runtime.VoidApiResponse(response);
132
+ }
133
+
134
+ /**
135
+ *
136
+ */
137
+ async confirmDomainTransfer(requestParameters: BuyersApiConfirmDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
138
+ await this.confirmDomainTransferRaw(requestParameters, initOverrides);
139
+ }
140
+
97
141
  /**
98
142
  *
99
143
  */