@randock/nameshift-api-client 0.0.342 → 0.0.343

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.342
1
+ ## @randock/nameshift-api-client@0.0.343
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.342 --save
39
+ npm install @randock/nameshift-api-client@0.0.343 --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
- 0bb0473dd3780f3cc6aae4348d5e74b372f17f9b43dfdde071a80ced68416b3320e929cb3927207182d8bfaabecac794
47
+ 4dcb77c48343e0b5fc4e36a86a16390b5c977d199c3cc8d315cb31132dd20db10393070d17ae5fb91913430240a7aea1
@@ -21,6 +21,14 @@ export interface AuctionsApiGetAllAuctionsRequest {
21
21
  *
22
22
  */
23
23
  export declare class AuctionsApi extends runtime.BaseAPI {
24
+ /**
25
+ *
26
+ */
27
+ deleteAuctionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
28
+ /**
29
+ *
30
+ */
31
+ deleteAuction(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
24
32
  /**
25
33
  *
26
34
  */
@@ -75,6 +75,54 @@ var AuctionsApi = /** @class */ (function (_super) {
75
75
  function AuctionsApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ *
80
+ */
81
+ AuctionsApi.prototype.deleteAuctionRaw = function (initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, token, tokenString, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ queryParameters = {};
88
+ headerParameters = {};
89
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
90
+ token = this.configuration.accessToken;
91
+ return [4 /*yield*/, token("bearer", [])];
92
+ case 1:
93
+ tokenString = _a.sent();
94
+ if (tokenString) {
95
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
96
+ }
97
+ _a.label = 2;
98
+ case 2: return [4 /*yield*/, this.request({
99
+ path: "/private/auctions/{auctionId}",
100
+ method: 'DELETE',
101
+ headers: headerParameters,
102
+ query: queryParameters,
103
+ }, initOverrides)];
104
+ case 3:
105
+ response = _a.sent();
106
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
107
+ }
108
+ });
109
+ });
110
+ };
111
+ /**
112
+ *
113
+ */
114
+ AuctionsApi.prototype.deleteAuction = function (initOverrides) {
115
+ return __awaiter(this, void 0, void 0, function () {
116
+ return __generator(this, function (_a) {
117
+ switch (_a.label) {
118
+ case 0: return [4 /*yield*/, this.deleteAuctionRaw(initOverrides)];
119
+ case 1:
120
+ _a.sent();
121
+ return [2 /*return*/];
122
+ }
123
+ });
124
+ });
125
+ };
78
126
  /**
79
127
  *
80
128
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.342",
3
+ "version": "0.0.343",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -15,12 +15,18 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ BadRequestException,
18
19
  GetAllAuctions200Response1,
20
+ NotFoundException,
19
21
  ValidationException,
20
22
  } from '../models/index';
21
23
  import {
24
+ BadRequestExceptionFromJSON,
25
+ BadRequestExceptionToJSON,
22
26
  GetAllAuctions200Response1FromJSON,
23
27
  GetAllAuctions200Response1ToJSON,
28
+ NotFoundExceptionFromJSON,
29
+ NotFoundExceptionToJSON,
24
30
  ValidationExceptionFromJSON,
25
31
  ValidationExceptionToJSON,
26
32
  } from '../models/index';
@@ -37,6 +43,39 @@ export interface AuctionsApiGetAllAuctionsRequest {
37
43
  */
38
44
  export class AuctionsApi extends runtime.BaseAPI {
39
45
 
46
+ /**
47
+ *
48
+ */
49
+ async deleteAuctionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
50
+ const queryParameters: any = {};
51
+
52
+ const headerParameters: runtime.HTTPHeaders = {};
53
+
54
+ if (this.configuration && this.configuration.accessToken) {
55
+ const token = this.configuration.accessToken;
56
+ const tokenString = await token("bearer", []);
57
+
58
+ if (tokenString) {
59
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
60
+ }
61
+ }
62
+ const response = await this.request({
63
+ path: `/private/auctions/{auctionId}`,
64
+ method: 'DELETE',
65
+ headers: headerParameters,
66
+ query: queryParameters,
67
+ }, initOverrides);
68
+
69
+ return new runtime.VoidApiResponse(response);
70
+ }
71
+
72
+ /**
73
+ *
74
+ */
75
+ async deleteAuction(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
76
+ await this.deleteAuctionRaw(initOverrides);
77
+ }
78
+
40
79
  /**
41
80
  *
42
81
  */