@randock/nameshift-api-client 0.0.527 → 0.0.528

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.527
1
+ ## @randock/nameshift-api-client@0.0.528
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.527 --save
39
+ npm install @randock/nameshift-api-client@0.0.528 --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
- 0f07dd50494f18a1b3f6d5e70fb1e315906920ececfff22c1dacb38b06bb1fb1ebceb34680e3f509757feadc3cef0ec6
47
+ ce8c8d6a13f181e365f48408f5f13da679c2efadf19932a7d5f97a30e024c3a3049554d18ed5d934a87f397344eb61db
@@ -50,6 +50,9 @@ export interface AdminApiChangeSubscriptionStatusRequest {
50
50
  subscriptionId: string;
51
51
  changeSubscriptionStatusInput: ChangeSubscriptionStatusInput;
52
52
  }
53
+ export interface AdminApiCheckAccountDomainsNameserversRequest {
54
+ accountId: string;
55
+ }
53
56
  export interface AdminApiCheckDomainNameserverRequest {
54
57
  domainId: string;
55
58
  }
@@ -541,6 +544,16 @@ export declare class AdminApi extends runtime.BaseAPI {
541
544
  * Change subscription status
542
545
  */
543
546
  changeSubscriptionStatus(requestParameters: AdminApiChangeSubscriptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
547
+ /**
548
+ * Queues a nameserver and DNS check for every domain of the account and resets their certificate attempts in cert-manager. The checks run in the background.
549
+ * Recheck nameservers of all account domains
550
+ */
551
+ checkAccountDomainsNameserversRaw(requestParameters: AdminApiCheckAccountDomainsNameserversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
552
+ /**
553
+ * Queues a nameserver and DNS check for every domain of the account and resets their certificate attempts in cert-manager. The checks run in the background.
554
+ * Recheck nameservers of all account domains
555
+ */
556
+ checkAccountDomainsNameservers(requestParameters: AdminApiCheckAccountDomainsNameserversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
544
557
  /**
545
558
  * Triggers a nameserver verification check for the specified domain.
546
559
  * Check domain nameservers
@@ -597,6 +597,59 @@ var AdminApi = /** @class */ (function (_super) {
597
597
  });
598
598
  });
599
599
  };
600
+ /**
601
+ * Queues a nameserver and DNS check for every domain of the account and resets their certificate attempts in cert-manager. The checks run in the background.
602
+ * Recheck nameservers of all account domains
603
+ */
604
+ AdminApi.prototype.checkAccountDomainsNameserversRaw = function (requestParameters, initOverrides) {
605
+ return __awaiter(this, void 0, void 0, function () {
606
+ var queryParameters, headerParameters, token, tokenString, response;
607
+ return __generator(this, function (_a) {
608
+ switch (_a.label) {
609
+ case 0:
610
+ if (requestParameters['accountId'] == null) {
611
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling checkAccountDomainsNameservers().');
612
+ }
613
+ queryParameters = {};
614
+ headerParameters = {};
615
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
616
+ token = this.configuration.accessToken;
617
+ return [4 /*yield*/, token("bearer", [])];
618
+ case 1:
619
+ tokenString = _a.sent();
620
+ if (tokenString) {
621
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
622
+ }
623
+ _a.label = 2;
624
+ case 2: return [4 /*yield*/, this.request({
625
+ path: "/admin/accounts/{accountId}/domains/check-ns".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
626
+ method: 'POST',
627
+ headers: headerParameters,
628
+ query: queryParameters,
629
+ }, initOverrides)];
630
+ case 3:
631
+ response = _a.sent();
632
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
633
+ }
634
+ });
635
+ });
636
+ };
637
+ /**
638
+ * Queues a nameserver and DNS check for every domain of the account and resets their certificate attempts in cert-manager. The checks run in the background.
639
+ * Recheck nameservers of all account domains
640
+ */
641
+ AdminApi.prototype.checkAccountDomainsNameservers = function (requestParameters, initOverrides) {
642
+ return __awaiter(this, void 0, void 0, function () {
643
+ return __generator(this, function (_a) {
644
+ switch (_a.label) {
645
+ case 0: return [4 /*yield*/, this.checkAccountDomainsNameserversRaw(requestParameters, initOverrides)];
646
+ case 1:
647
+ _a.sent();
648
+ return [2 /*return*/];
649
+ }
650
+ });
651
+ });
652
+ };
600
653
  /**
601
654
  * Triggers a nameserver verification check for the specified domain.
602
655
  * Check domain nameservers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.527",
3
+ "version": "0.0.528",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -299,6 +299,10 @@ export interface AdminApiChangeSubscriptionStatusRequest {
299
299
  changeSubscriptionStatusInput: ChangeSubscriptionStatusInput;
300
300
  }
301
301
 
302
+ export interface AdminApiCheckAccountDomainsNameserversRequest {
303
+ accountId: string;
304
+ }
305
+
302
306
  export interface AdminApiCheckDomainNameserverRequest {
303
307
  domainId: string;
304
308
  }
@@ -1202,6 +1206,48 @@ export class AdminApi extends runtime.BaseAPI {
1202
1206
  await this.changeSubscriptionStatusRaw(requestParameters, initOverrides);
1203
1207
  }
1204
1208
 
1209
+ /**
1210
+ * Queues a nameserver and DNS check for every domain of the account and resets their certificate attempts in cert-manager. The checks run in the background.
1211
+ * Recheck nameservers of all account domains
1212
+ */
1213
+ async checkAccountDomainsNameserversRaw(requestParameters: AdminApiCheckAccountDomainsNameserversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1214
+ if (requestParameters['accountId'] == null) {
1215
+ throw new runtime.RequiredError(
1216
+ 'accountId',
1217
+ 'Required parameter "accountId" was null or undefined when calling checkAccountDomainsNameservers().'
1218
+ );
1219
+ }
1220
+
1221
+ const queryParameters: any = {};
1222
+
1223
+ const headerParameters: runtime.HTTPHeaders = {};
1224
+
1225
+ if (this.configuration && this.configuration.accessToken) {
1226
+ const token = this.configuration.accessToken;
1227
+ const tokenString = await token("bearer", []);
1228
+
1229
+ if (tokenString) {
1230
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1231
+ }
1232
+ }
1233
+ const response = await this.request({
1234
+ path: `/admin/accounts/{accountId}/domains/check-ns`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
1235
+ method: 'POST',
1236
+ headers: headerParameters,
1237
+ query: queryParameters,
1238
+ }, initOverrides);
1239
+
1240
+ return new runtime.VoidApiResponse(response);
1241
+ }
1242
+
1243
+ /**
1244
+ * Queues a nameserver and DNS check for every domain of the account and resets their certificate attempts in cert-manager. The checks run in the background.
1245
+ * Recheck nameservers of all account domains
1246
+ */
1247
+ async checkAccountDomainsNameservers(requestParameters: AdminApiCheckAccountDomainsNameserversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1248
+ await this.checkAccountDomainsNameserversRaw(requestParameters, initOverrides);
1249
+ }
1250
+
1205
1251
  /**
1206
1252
  * Triggers a nameserver verification check for the specified domain.
1207
1253
  * Check domain nameservers