@randock/nameshift-api-client 0.0.388 → 0.0.389

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.388
1
+ ## @randock/nameshift-api-client@0.0.389
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.388 --save
39
+ npm install @randock/nameshift-api-client@0.0.389 --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
- e7254650bd4e9b7099f425e49931129de7cc3e4c3beca1e9ae375afdd7c1c4ca94de8363b2be1af2dc1e454e84dd6b2a
47
+ 9cfcf7e3c11df301f0064323d0f147af561239a619c108d6a997ab8baf84c1ab1c01d238524c6854ed255d2cbe9e3edc
@@ -170,6 +170,9 @@ export interface AdminApiRemoveDomainLockRequest {
170
170
  domainId: string;
171
171
  lockId: string;
172
172
  }
173
+ export interface AdminApiSyncAccountStatsRequest {
174
+ accountId: string;
175
+ }
173
176
  export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
174
177
  accountId: string;
175
178
  }
@@ -527,6 +530,14 @@ export declare class AdminApi extends runtime.BaseAPI {
527
530
  *
528
531
  */
529
532
  removeDomainLock(requestParameters: AdminApiRemoveDomainLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
533
+ /**
534
+ *
535
+ */
536
+ syncAccountStatsRaw(requestParameters: AdminApiSyncAccountStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
537
+ /**
538
+ *
539
+ */
540
+ syncAccountStats(requestParameters: AdminApiSyncAccountStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
530
541
  /**
531
542
  *
532
543
  */
@@ -2371,6 +2371,57 @@ var AdminApi = /** @class */ (function (_super) {
2371
2371
  });
2372
2372
  });
2373
2373
  };
2374
+ /**
2375
+ *
2376
+ */
2377
+ AdminApi.prototype.syncAccountStatsRaw = function (requestParameters, initOverrides) {
2378
+ return __awaiter(this, void 0, void 0, function () {
2379
+ var queryParameters, headerParameters, token, tokenString, response;
2380
+ return __generator(this, function (_a) {
2381
+ switch (_a.label) {
2382
+ case 0:
2383
+ if (requestParameters['accountId'] == null) {
2384
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling syncAccountStats().');
2385
+ }
2386
+ queryParameters = {};
2387
+ headerParameters = {};
2388
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
2389
+ token = this.configuration.accessToken;
2390
+ return [4 /*yield*/, token("bearer", [])];
2391
+ case 1:
2392
+ tokenString = _a.sent();
2393
+ if (tokenString) {
2394
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
2395
+ }
2396
+ _a.label = 2;
2397
+ case 2: return [4 /*yield*/, this.request({
2398
+ path: "/admin/accounts/{accountId}/stats/sync".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
2399
+ method: 'POST',
2400
+ headers: headerParameters,
2401
+ query: queryParameters,
2402
+ }, initOverrides)];
2403
+ case 3:
2404
+ response = _a.sent();
2405
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
2406
+ }
2407
+ });
2408
+ });
2409
+ };
2410
+ /**
2411
+ *
2412
+ */
2413
+ AdminApi.prototype.syncAccountStats = function (requestParameters, initOverrides) {
2414
+ return __awaiter(this, void 0, void 0, function () {
2415
+ return __generator(this, function (_a) {
2416
+ switch (_a.label) {
2417
+ case 0: return [4 /*yield*/, this.syncAccountStatsRaw(requestParameters, initOverrides)];
2418
+ case 1:
2419
+ _a.sent();
2420
+ return [2 /*return*/];
2421
+ }
2422
+ });
2423
+ });
2424
+ };
2374
2425
  /**
2375
2426
  *
2376
2427
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.388",
3
+ "version": "0.0.389",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -341,6 +341,10 @@ export interface AdminApiRemoveDomainLockRequest {
341
341
  lockId: string;
342
342
  }
343
343
 
344
+ export interface AdminApiSyncAccountStatsRequest {
345
+ accountId: string;
346
+ }
347
+
344
348
  export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
345
349
  accountId: string;
346
350
  }
@@ -2205,6 +2209,46 @@ export class AdminApi extends runtime.BaseAPI {
2205
2209
  await this.removeDomainLockRaw(requestParameters, initOverrides);
2206
2210
  }
2207
2211
 
2212
+ /**
2213
+ *
2214
+ */
2215
+ async syncAccountStatsRaw(requestParameters: AdminApiSyncAccountStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
2216
+ if (requestParameters['accountId'] == null) {
2217
+ throw new runtime.RequiredError(
2218
+ 'accountId',
2219
+ 'Required parameter "accountId" was null or undefined when calling syncAccountStats().'
2220
+ );
2221
+ }
2222
+
2223
+ const queryParameters: any = {};
2224
+
2225
+ const headerParameters: runtime.HTTPHeaders = {};
2226
+
2227
+ if (this.configuration && this.configuration.accessToken) {
2228
+ const token = this.configuration.accessToken;
2229
+ const tokenString = await token("bearer", []);
2230
+
2231
+ if (tokenString) {
2232
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2233
+ }
2234
+ }
2235
+ const response = await this.request({
2236
+ path: `/admin/accounts/{accountId}/stats/sync`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
2237
+ method: 'POST',
2238
+ headers: headerParameters,
2239
+ query: queryParameters,
2240
+ }, initOverrides);
2241
+
2242
+ return new runtime.VoidApiResponse(response);
2243
+ }
2244
+
2245
+ /**
2246
+ *
2247
+ */
2248
+ async syncAccountStats(requestParameters: AdminApiSyncAccountStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
2249
+ await this.syncAccountStatsRaw(requestParameters, initOverrides);
2250
+ }
2251
+
2208
2252
  /**
2209
2253
  *
2210
2254
  */