@randock/nameshift-api-client 0.0.392 → 0.0.393

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.392
1
+ ## @randock/nameshift-api-client@0.0.393
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.392 --save
39
+ npm install @randock/nameshift-api-client@0.0.393 --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
- 4265f6934a143d4b70d649d8df17528f48b2019cfffebd08c4fc6719c83064a23f91d5c052a382fafcd4a09eb1bcda28
47
+ 35c115e10490a14f5890d9c147334841e45e0a8c112fe4f8f4d9de3542966aa3d42531466936f2493b733640e4ce3565
@@ -182,6 +182,9 @@ export interface AdminApiSyncAccountStatsRequest {
182
182
  export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
183
183
  accountId: string;
184
184
  }
185
+ export interface AdminApiSyncOwnedDomainFromRegistryRequest {
186
+ id: string;
187
+ }
185
188
  export interface AdminApiUpdateAccountChallengeRewardBalancePointsRequest {
186
189
  accountId: string;
187
190
  updateAccountChallengeRewardBalanceInput: UpdateAccountChallengeRewardBalanceInput;
@@ -568,6 +571,14 @@ export declare class AdminApi extends runtime.BaseAPI {
568
571
  *
569
572
  */
570
573
  syncAllAccountPaymentMethodProfiles(requestParameters: AdminApiSyncAllAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
574
+ /**
575
+ *
576
+ */
577
+ syncOwnedDomainFromRegistryRaw(requestParameters: AdminApiSyncOwnedDomainFromRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
578
+ /**
579
+ *
580
+ */
581
+ syncOwnedDomainFromRegistry(requestParameters: AdminApiSyncOwnedDomainFromRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
571
582
  /**
572
583
  *
573
584
  */
@@ -2577,6 +2577,57 @@ var AdminApi = /** @class */ (function (_super) {
2577
2577
  });
2578
2578
  });
2579
2579
  };
2580
+ /**
2581
+ *
2582
+ */
2583
+ AdminApi.prototype.syncOwnedDomainFromRegistryRaw = function (requestParameters, initOverrides) {
2584
+ return __awaiter(this, void 0, void 0, function () {
2585
+ var queryParameters, headerParameters, token, tokenString, response;
2586
+ return __generator(this, function (_a) {
2587
+ switch (_a.label) {
2588
+ case 0:
2589
+ if (requestParameters['id'] == null) {
2590
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling syncOwnedDomainFromRegistry().');
2591
+ }
2592
+ queryParameters = {};
2593
+ headerParameters = {};
2594
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
2595
+ token = this.configuration.accessToken;
2596
+ return [4 /*yield*/, token("bearer", [])];
2597
+ case 1:
2598
+ tokenString = _a.sent();
2599
+ if (tokenString) {
2600
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
2601
+ }
2602
+ _a.label = 2;
2603
+ case 2: return [4 /*yield*/, this.request({
2604
+ path: "/admin/owned-domains/{id}/sync-from-registry".replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id']))),
2605
+ method: 'POST',
2606
+ headers: headerParameters,
2607
+ query: queryParameters,
2608
+ }, initOverrides)];
2609
+ case 3:
2610
+ response = _a.sent();
2611
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
2612
+ }
2613
+ });
2614
+ });
2615
+ };
2616
+ /**
2617
+ *
2618
+ */
2619
+ AdminApi.prototype.syncOwnedDomainFromRegistry = function (requestParameters, initOverrides) {
2620
+ return __awaiter(this, void 0, void 0, function () {
2621
+ return __generator(this, function (_a) {
2622
+ switch (_a.label) {
2623
+ case 0: return [4 /*yield*/, this.syncOwnedDomainFromRegistryRaw(requestParameters, initOverrides)];
2624
+ case 1:
2625
+ _a.sent();
2626
+ return [2 /*return*/];
2627
+ }
2628
+ });
2629
+ });
2630
+ };
2580
2631
  /**
2581
2632
  *
2582
2633
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.392",
3
+ "version": "0.0.393",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -360,6 +360,10 @@ export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
360
360
  accountId: string;
361
361
  }
362
362
 
363
+ export interface AdminApiSyncOwnedDomainFromRegistryRequest {
364
+ id: string;
365
+ }
366
+
363
367
  export interface AdminApiUpdateAccountChallengeRewardBalancePointsRequest {
364
368
  accountId: string;
365
369
  updateAccountChallengeRewardBalanceInput: UpdateAccountChallengeRewardBalanceInput;
@@ -2381,6 +2385,46 @@ export class AdminApi extends runtime.BaseAPI {
2381
2385
  await this.syncAllAccountPaymentMethodProfilesRaw(requestParameters, initOverrides);
2382
2386
  }
2383
2387
 
2388
+ /**
2389
+ *
2390
+ */
2391
+ async syncOwnedDomainFromRegistryRaw(requestParameters: AdminApiSyncOwnedDomainFromRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
2392
+ if (requestParameters['id'] == null) {
2393
+ throw new runtime.RequiredError(
2394
+ 'id',
2395
+ 'Required parameter "id" was null or undefined when calling syncOwnedDomainFromRegistry().'
2396
+ );
2397
+ }
2398
+
2399
+ const queryParameters: any = {};
2400
+
2401
+ const headerParameters: runtime.HTTPHeaders = {};
2402
+
2403
+ if (this.configuration && this.configuration.accessToken) {
2404
+ const token = this.configuration.accessToken;
2405
+ const tokenString = await token("bearer", []);
2406
+
2407
+ if (tokenString) {
2408
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2409
+ }
2410
+ }
2411
+ const response = await this.request({
2412
+ path: `/admin/owned-domains/{id}/sync-from-registry`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
2413
+ method: 'POST',
2414
+ headers: headerParameters,
2415
+ query: queryParameters,
2416
+ }, initOverrides);
2417
+
2418
+ return new runtime.VoidApiResponse(response);
2419
+ }
2420
+
2421
+ /**
2422
+ *
2423
+ */
2424
+ async syncOwnedDomainFromRegistry(requestParameters: AdminApiSyncOwnedDomainFromRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
2425
+ await this.syncOwnedDomainFromRegistryRaw(requestParameters, initOverrides);
2426
+ }
2427
+
2384
2428
  /**
2385
2429
  *
2386
2430
  */