@randock/nameshift-api-client 0.0.174 → 0.0.176

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.
@@ -1 +1 @@
1
- 7.10.0-SNAPSHOT
1
+ 7.10.0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.174
1
+ ## @randock/nameshift-api-client@0.0.176
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.174 --save
39
+ npm install @randock/nameshift-api-client@0.0.176 --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
- 603e967f38d8456e40ec36cd9572eb15ad4beddc840bca20284b7edc1e90592a4460d115ed268f398fbf3bcbce90374f
47
+ e9124fe04382f84f1273b77bfbf7c31d7d68048f53e47dee44bf64401769d4d2a74c7deab291aee05326f8da986bb19c
@@ -100,6 +100,14 @@ export declare class DomainsApi extends runtime.BaseAPI {
100
100
  *
101
101
  */
102
102
  deleteDomains(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
103
+ /**
104
+ *
105
+ */
106
+ exportDomainsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
107
+ /**
108
+ *
109
+ */
110
+ exportDomains(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
103
111
  /**
104
112
  *
105
113
  */
@@ -371,6 +371,54 @@ var DomainsApi = /** @class */ (function (_super) {
371
371
  });
372
372
  });
373
373
  };
374
+ /**
375
+ *
376
+ */
377
+ DomainsApi.prototype.exportDomainsRaw = function (initOverrides) {
378
+ return __awaiter(this, void 0, void 0, function () {
379
+ var queryParameters, headerParameters, token, tokenString, response;
380
+ return __generator(this, function (_a) {
381
+ switch (_a.label) {
382
+ case 0:
383
+ queryParameters = {};
384
+ headerParameters = {};
385
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
386
+ token = this.configuration.accessToken;
387
+ return [4 /*yield*/, token("bearer", [])];
388
+ case 1:
389
+ tokenString = _a.sent();
390
+ if (tokenString) {
391
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
392
+ }
393
+ _a.label = 2;
394
+ case 2: return [4 /*yield*/, this.request({
395
+ path: "/private/domains/export",
396
+ method: 'POST',
397
+ headers: headerParameters,
398
+ query: queryParameters,
399
+ }, initOverrides)];
400
+ case 3:
401
+ response = _a.sent();
402
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
403
+ }
404
+ });
405
+ });
406
+ };
407
+ /**
408
+ *
409
+ */
410
+ DomainsApi.prototype.exportDomains = function (initOverrides) {
411
+ return __awaiter(this, void 0, void 0, function () {
412
+ return __generator(this, function (_a) {
413
+ switch (_a.label) {
414
+ case 0: return [4 /*yield*/, this.exportDomainsRaw(initOverrides)];
415
+ case 1:
416
+ _a.sent();
417
+ return [2 /*return*/];
418
+ }
419
+ });
420
+ });
421
+ };
374
422
  /**
375
423
  *
376
424
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.174",
3
+ "version": "0.0.176",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -362,6 +362,39 @@ export class DomainsApi extends runtime.BaseAPI {
362
362
  await this.deleteDomainsRaw(requestParameters, initOverrides);
363
363
  }
364
364
 
365
+ /**
366
+ *
367
+ */
368
+ async exportDomainsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
369
+ const queryParameters: any = {};
370
+
371
+ const headerParameters: runtime.HTTPHeaders = {};
372
+
373
+ if (this.configuration && this.configuration.accessToken) {
374
+ const token = this.configuration.accessToken;
375
+ const tokenString = await token("bearer", []);
376
+
377
+ if (tokenString) {
378
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
379
+ }
380
+ }
381
+ const response = await this.request({
382
+ path: `/private/domains/export`,
383
+ method: 'POST',
384
+ headers: headerParameters,
385
+ query: queryParameters,
386
+ }, initOverrides);
387
+
388
+ return new runtime.VoidApiResponse(response);
389
+ }
390
+
391
+ /**
392
+ *
393
+ */
394
+ async exportDomains(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
395
+ await this.exportDomainsRaw(initOverrides);
396
+ }
397
+
365
398
  /**
366
399
  *
367
400
  */