@randock/nameshift-api-client 0.0.414 → 0.0.415

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.414
1
+ ## @randock/nameshift-api-client@0.0.415
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.414 --save
39
+ npm install @randock/nameshift-api-client@0.0.415 --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
- 7a6362c975c39ecae976049bec9d06b8d81c21fce8e40fb6015fd66b20edbc02791e1a5bec27c143a08f2906dc9bf596
47
+ 8dc80f184da4876a67baf09c6358b2a23f6d32aa7fd2bfed29a93b06b1af6d46b6b2296bd0d1029a908f1bd1a4f88231
@@ -186,6 +186,9 @@ export interface AdminApiPostAdminExecuteDomainTransferStepActionRequest {
186
186
  export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
187
187
  sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
188
188
  }
189
+ export interface AdminApiPurgeDomainCdnCacheRequest {
190
+ domainId: string;
191
+ }
189
192
  export interface AdminApiRemoveDomainLockRequest {
190
193
  domainId: string;
191
194
  lockId: string;
@@ -585,6 +588,14 @@ export declare class AdminApi extends runtime.BaseAPI {
585
588
  *
586
589
  */
587
590
  postAiPriceNegotiatorAgentChatMessage(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LeadMessageDto>>;
591
+ /**
592
+ *
593
+ */
594
+ purgeDomainCdnCacheRaw(requestParameters: AdminApiPurgeDomainCdnCacheRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
595
+ /**
596
+ *
597
+ */
598
+ purgeDomainCdnCache(requestParameters: AdminApiPurgeDomainCdnCacheRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
588
599
  /**
589
600
  *
590
601
  */
@@ -2597,6 +2597,57 @@ var AdminApi = /** @class */ (function (_super) {
2597
2597
  });
2598
2598
  });
2599
2599
  };
2600
+ /**
2601
+ *
2602
+ */
2603
+ AdminApi.prototype.purgeDomainCdnCacheRaw = function (requestParameters, initOverrides) {
2604
+ return __awaiter(this, void 0, void 0, function () {
2605
+ var queryParameters, headerParameters, token, tokenString, response;
2606
+ return __generator(this, function (_a) {
2607
+ switch (_a.label) {
2608
+ case 0:
2609
+ if (requestParameters['domainId'] == null) {
2610
+ throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling purgeDomainCdnCache().');
2611
+ }
2612
+ queryParameters = {};
2613
+ headerParameters = {};
2614
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
2615
+ token = this.configuration.accessToken;
2616
+ return [4 /*yield*/, token("bearer", [])];
2617
+ case 1:
2618
+ tokenString = _a.sent();
2619
+ if (tokenString) {
2620
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
2621
+ }
2622
+ _a.label = 2;
2623
+ case 2: return [4 /*yield*/, this.request({
2624
+ path: "/admin/domains/{domainId}/purge-cdn-cache".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
2625
+ method: 'POST',
2626
+ headers: headerParameters,
2627
+ query: queryParameters,
2628
+ }, initOverrides)];
2629
+ case 3:
2630
+ response = _a.sent();
2631
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
2632
+ }
2633
+ });
2634
+ });
2635
+ };
2636
+ /**
2637
+ *
2638
+ */
2639
+ AdminApi.prototype.purgeDomainCdnCache = function (requestParameters, initOverrides) {
2640
+ return __awaiter(this, void 0, void 0, function () {
2641
+ return __generator(this, function (_a) {
2642
+ switch (_a.label) {
2643
+ case 0: return [4 /*yield*/, this.purgeDomainCdnCacheRaw(requestParameters, initOverrides)];
2644
+ case 1:
2645
+ _a.sent();
2646
+ return [2 /*return*/];
2647
+ }
2648
+ });
2649
+ });
2650
+ };
2600
2651
  /**
2601
2652
  *
2602
2653
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.414",
3
+ "version": "0.0.415",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -370,6 +370,10 @@ export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
370
370
  sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
371
371
  }
372
372
 
373
+ export interface AdminApiPurgeDomainCdnCacheRequest {
374
+ domainId: string;
375
+ }
376
+
373
377
  export interface AdminApiRemoveDomainLockRequest {
374
378
  domainId: string;
375
379
  lockId: string;
@@ -2424,6 +2428,46 @@ export class AdminApi extends runtime.BaseAPI {
2424
2428
  return await response.value();
2425
2429
  }
2426
2430
 
2431
+ /**
2432
+ *
2433
+ */
2434
+ async purgeDomainCdnCacheRaw(requestParameters: AdminApiPurgeDomainCdnCacheRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
2435
+ if (requestParameters['domainId'] == null) {
2436
+ throw new runtime.RequiredError(
2437
+ 'domainId',
2438
+ 'Required parameter "domainId" was null or undefined when calling purgeDomainCdnCache().'
2439
+ );
2440
+ }
2441
+
2442
+ const queryParameters: any = {};
2443
+
2444
+ const headerParameters: runtime.HTTPHeaders = {};
2445
+
2446
+ if (this.configuration && this.configuration.accessToken) {
2447
+ const token = this.configuration.accessToken;
2448
+ const tokenString = await token("bearer", []);
2449
+
2450
+ if (tokenString) {
2451
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2452
+ }
2453
+ }
2454
+ const response = await this.request({
2455
+ path: `/admin/domains/{domainId}/purge-cdn-cache`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
2456
+ method: 'POST',
2457
+ headers: headerParameters,
2458
+ query: queryParameters,
2459
+ }, initOverrides);
2460
+
2461
+ return new runtime.VoidApiResponse(response);
2462
+ }
2463
+
2464
+ /**
2465
+ *
2466
+ */
2467
+ async purgeDomainCdnCache(requestParameters: AdminApiPurgeDomainCdnCacheRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
2468
+ await this.purgeDomainCdnCacheRaw(requestParameters, initOverrides);
2469
+ }
2470
+
2427
2471
  /**
2428
2472
  *
2429
2473
  */