@randock/nameshift-api-client 0.0.388 → 0.0.390

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.390
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.390 --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
+ 5e0efeb441bea9bf99d6486c5fe7c76d30cc9dbd64911d2ffe1ba247905b915ff843978e72fd2b03dd5028be8ca2b103
@@ -20,6 +20,9 @@ export interface AdminApiAdminGetAllDomainTransfersRequest {
20
20
  export interface AdminApiBulkCommissionActionsRequest {
21
21
  bulkCommissionActionsInput: BulkCommissionActionsInput;
22
22
  }
23
+ export interface AdminApiCancelDomainTransferRequest {
24
+ transferId: string;
25
+ }
23
26
  export interface AdminApiChangeOrderStatusRequest {
24
27
  orderId: string;
25
28
  changeOrderStatusInput: ChangeOrderStatusInput;
@@ -170,6 +173,9 @@ export interface AdminApiRemoveDomainLockRequest {
170
173
  domainId: string;
171
174
  lockId: string;
172
175
  }
176
+ export interface AdminApiSyncAccountStatsRequest {
177
+ accountId: string;
178
+ }
173
179
  export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
174
180
  accountId: string;
175
181
  }
@@ -215,6 +221,14 @@ export declare class AdminApi extends runtime.BaseAPI {
215
221
  *
216
222
  */
217
223
  bulkCommissionActions(requestParameters: AdminApiBulkCommissionActionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
224
+ /**
225
+ *
226
+ */
227
+ cancelDomainTransferRaw(requestParameters: AdminApiCancelDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
228
+ /**
229
+ *
230
+ */
231
+ cancelDomainTransfer(requestParameters: AdminApiCancelDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
218
232
  /**
219
233
  *
220
234
  */
@@ -527,6 +541,14 @@ export declare class AdminApi extends runtime.BaseAPI {
527
541
  *
528
542
  */
529
543
  removeDomainLock(requestParameters: AdminApiRemoveDomainLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
544
+ /**
545
+ *
546
+ */
547
+ syncAccountStatsRaw(requestParameters: AdminApiSyncAccountStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
548
+ /**
549
+ *
550
+ */
551
+ syncAccountStats(requestParameters: AdminApiSyncAccountStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
530
552
  /**
531
553
  *
532
554
  */
@@ -191,6 +191,57 @@ var AdminApi = /** @class */ (function (_super) {
191
191
  });
192
192
  });
193
193
  };
194
+ /**
195
+ *
196
+ */
197
+ AdminApi.prototype.cancelDomainTransferRaw = function (requestParameters, initOverrides) {
198
+ return __awaiter(this, void 0, void 0, function () {
199
+ var queryParameters, headerParameters, token, tokenString, response;
200
+ return __generator(this, function (_a) {
201
+ switch (_a.label) {
202
+ case 0:
203
+ if (requestParameters['transferId'] == null) {
204
+ throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling cancelDomainTransfer().');
205
+ }
206
+ queryParameters = {};
207
+ headerParameters = {};
208
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
209
+ token = this.configuration.accessToken;
210
+ return [4 /*yield*/, token("bearer", [])];
211
+ case 1:
212
+ tokenString = _a.sent();
213
+ if (tokenString) {
214
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
215
+ }
216
+ _a.label = 2;
217
+ case 2: return [4 /*yield*/, this.request({
218
+ path: "/admin/domain-transfers/{transferId}/cancel".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
219
+ method: 'POST',
220
+ headers: headerParameters,
221
+ query: queryParameters,
222
+ }, initOverrides)];
223
+ case 3:
224
+ response = _a.sent();
225
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
226
+ }
227
+ });
228
+ });
229
+ };
230
+ /**
231
+ *
232
+ */
233
+ AdminApi.prototype.cancelDomainTransfer = function (requestParameters, initOverrides) {
234
+ return __awaiter(this, void 0, void 0, function () {
235
+ return __generator(this, function (_a) {
236
+ switch (_a.label) {
237
+ case 0: return [4 /*yield*/, this.cancelDomainTransferRaw(requestParameters, initOverrides)];
238
+ case 1:
239
+ _a.sent();
240
+ return [2 /*return*/];
241
+ }
242
+ });
243
+ });
244
+ };
194
245
  /**
195
246
  *
196
247
  */
@@ -2371,6 +2422,57 @@ var AdminApi = /** @class */ (function (_super) {
2371
2422
  });
2372
2423
  });
2373
2424
  };
2425
+ /**
2426
+ *
2427
+ */
2428
+ AdminApi.prototype.syncAccountStatsRaw = function (requestParameters, initOverrides) {
2429
+ return __awaiter(this, void 0, void 0, function () {
2430
+ var queryParameters, headerParameters, token, tokenString, response;
2431
+ return __generator(this, function (_a) {
2432
+ switch (_a.label) {
2433
+ case 0:
2434
+ if (requestParameters['accountId'] == null) {
2435
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling syncAccountStats().');
2436
+ }
2437
+ queryParameters = {};
2438
+ headerParameters = {};
2439
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
2440
+ token = this.configuration.accessToken;
2441
+ return [4 /*yield*/, token("bearer", [])];
2442
+ case 1:
2443
+ tokenString = _a.sent();
2444
+ if (tokenString) {
2445
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
2446
+ }
2447
+ _a.label = 2;
2448
+ case 2: return [4 /*yield*/, this.request({
2449
+ path: "/admin/accounts/{accountId}/stats/sync".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
2450
+ method: 'POST',
2451
+ headers: headerParameters,
2452
+ query: queryParameters,
2453
+ }, initOverrides)];
2454
+ case 3:
2455
+ response = _a.sent();
2456
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
2457
+ }
2458
+ });
2459
+ });
2460
+ };
2461
+ /**
2462
+ *
2463
+ */
2464
+ AdminApi.prototype.syncAccountStats = function (requestParameters, initOverrides) {
2465
+ return __awaiter(this, void 0, void 0, function () {
2466
+ return __generator(this, function (_a) {
2467
+ switch (_a.label) {
2468
+ case 0: return [4 /*yield*/, this.syncAccountStatsRaw(requestParameters, initOverrides)];
2469
+ case 1:
2470
+ _a.sent();
2471
+ return [2 /*return*/];
2472
+ }
2473
+ });
2474
+ });
2475
+ };
2374
2476
  /**
2375
2477
  *
2376
2478
  */
@@ -89,6 +89,7 @@ export declare const BuyerDomainTransferListItemDtoDomainTransferStatusEnum: {
89
89
  readonly STARTED: "started";
90
90
  readonly PENDING_MANUAL_ACTION: "pending_manual_action";
91
91
  readonly ERROR: "error";
92
+ readonly CANCELLED: "cancelled";
92
93
  readonly COMPLETED: "completed";
93
94
  };
94
95
  export type BuyerDomainTransferListItemDtoDomainTransferStatusEnum = typeof BuyerDomainTransferListItemDtoDomainTransferStatusEnum[keyof typeof BuyerDomainTransferListItemDtoDomainTransferStatusEnum];
@@ -37,6 +37,7 @@ exports.BuyerDomainTransferListItemDtoDomainTransferStatusEnum = {
37
37
  STARTED: 'started',
38
38
  PENDING_MANUAL_ACTION: 'pending_manual_action',
39
39
  ERROR: 'error',
40
+ CANCELLED: 'cancelled',
40
41
  COMPLETED: 'completed'
41
42
  };
42
43
  /**
@@ -103,6 +103,7 @@ export declare const DomainTransferDetailsDtoStatusEnum: {
103
103
  readonly STARTED: "started";
104
104
  readonly PENDING_MANUAL_ACTION: "pending_manual_action";
105
105
  readonly ERROR: "error";
106
+ readonly CANCELLED: "cancelled";
106
107
  readonly COMPLETED: "completed";
107
108
  };
108
109
  export type DomainTransferDetailsDtoStatusEnum = typeof DomainTransferDetailsDtoStatusEnum[keyof typeof DomainTransferDetailsDtoStatusEnum];
@@ -114,6 +115,7 @@ export declare const DomainTransferDetailsDtoStatusSellerEnum: {
114
115
  readonly STARTED: "started";
115
116
  readonly PENDING_MANUAL_ACTION: "pending_manual_action";
116
117
  readonly ERROR: "error";
118
+ readonly CANCELLED: "cancelled";
117
119
  readonly COMPLETED: "completed";
118
120
  };
119
121
  export type DomainTransferDetailsDtoStatusSellerEnum = typeof DomainTransferDetailsDtoStatusSellerEnum[keyof typeof DomainTransferDetailsDtoStatusSellerEnum];
@@ -34,6 +34,7 @@ exports.DomainTransferDetailsDtoStatusEnum = {
34
34
  STARTED: 'started',
35
35
  PENDING_MANUAL_ACTION: 'pending_manual_action',
36
36
  ERROR: 'error',
37
+ CANCELLED: 'cancelled',
37
38
  COMPLETED: 'completed'
38
39
  };
39
40
  /**
@@ -44,6 +45,7 @@ exports.DomainTransferDetailsDtoStatusSellerEnum = {
44
45
  STARTED: 'started',
45
46
  PENDING_MANUAL_ACTION: 'pending_manual_action',
46
47
  ERROR: 'error',
48
+ CANCELLED: 'cancelled',
47
49
  COMPLETED: 'completed'
48
50
  };
49
51
  /**
@@ -89,6 +89,7 @@ export declare const DomainTransferDtoStatusEnum: {
89
89
  readonly STARTED: "started";
90
90
  readonly PENDING_MANUAL_ACTION: "pending_manual_action";
91
91
  readonly ERROR: "error";
92
+ readonly CANCELLED: "cancelled";
92
93
  readonly COMPLETED: "completed";
93
94
  };
94
95
  export type DomainTransferDtoStatusEnum = typeof DomainTransferDtoStatusEnum[keyof typeof DomainTransferDtoStatusEnum];
@@ -100,6 +101,7 @@ export declare const DomainTransferDtoStatusSellerEnum: {
100
101
  readonly STARTED: "started";
101
102
  readonly PENDING_MANUAL_ACTION: "pending_manual_action";
102
103
  readonly ERROR: "error";
104
+ readonly CANCELLED: "cancelled";
103
105
  readonly COMPLETED: "completed";
104
106
  };
105
107
  export type DomainTransferDtoStatusSellerEnum = typeof DomainTransferDtoStatusSellerEnum[keyof typeof DomainTransferDtoStatusSellerEnum];
@@ -32,6 +32,7 @@ exports.DomainTransferDtoStatusEnum = {
32
32
  STARTED: 'started',
33
33
  PENDING_MANUAL_ACTION: 'pending_manual_action',
34
34
  ERROR: 'error',
35
+ CANCELLED: 'cancelled',
35
36
  COMPLETED: 'completed'
36
37
  };
37
38
  /**
@@ -42,6 +43,7 @@ exports.DomainTransferDtoStatusSellerEnum = {
42
43
  STARTED: 'started',
43
44
  PENDING_MANUAL_ACTION: 'pending_manual_action',
44
45
  ERROR: 'error',
46
+ CANCELLED: 'cancelled',
45
47
  COMPLETED: 'completed'
46
48
  };
47
49
  /**
@@ -62,6 +62,7 @@ export declare const SellerDomainTransferDtoStatusEnum: {
62
62
  readonly STARTED: "started";
63
63
  readonly PENDING_MANUAL_ACTION: "pending_manual_action";
64
64
  readonly ERROR: "error";
65
+ readonly CANCELLED: "cancelled";
65
66
  readonly COMPLETED: "completed";
66
67
  };
67
68
  export type SellerDomainTransferDtoStatusEnum = typeof SellerDomainTransferDtoStatusEnum[keyof typeof SellerDomainTransferDtoStatusEnum];
@@ -29,6 +29,7 @@ exports.SellerDomainTransferDtoStatusEnum = {
29
29
  STARTED: 'started',
30
30
  PENDING_MANUAL_ACTION: 'pending_manual_action',
31
31
  ERROR: 'error',
32
+ CANCELLED: 'cancelled',
32
33
  COMPLETED: 'completed'
33
34
  };
34
35
  /**
@@ -68,6 +68,7 @@ export declare const SellerDomainTransferListItemDtoStatusEnum: {
68
68
  readonly STARTED: "started";
69
69
  readonly PENDING_MANUAL_ACTION: "pending_manual_action";
70
70
  readonly ERROR: "error";
71
+ readonly CANCELLED: "cancelled";
71
72
  readonly COMPLETED: "completed";
72
73
  };
73
74
  export type SellerDomainTransferListItemDtoStatusEnum = typeof SellerDomainTransferListItemDtoStatusEnum[keyof typeof SellerDomainTransferListItemDtoStatusEnum];
@@ -29,6 +29,7 @@ exports.SellerDomainTransferListItemDtoStatusEnum = {
29
29
  STARTED: 'started',
30
30
  PENDING_MANUAL_ACTION: 'pending_manual_action',
31
31
  ERROR: 'error',
32
+ CANCELLED: 'cancelled',
32
33
  COMPLETED: 'completed'
33
34
  };
34
35
  /**
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.390",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -153,6 +153,10 @@ export interface AdminApiBulkCommissionActionsRequest {
153
153
  bulkCommissionActionsInput: BulkCommissionActionsInput;
154
154
  }
155
155
 
156
+ export interface AdminApiCancelDomainTransferRequest {
157
+ transferId: string;
158
+ }
159
+
156
160
  export interface AdminApiChangeOrderStatusRequest {
157
161
  orderId: string;
158
162
  changeOrderStatusInput: ChangeOrderStatusInput;
@@ -341,6 +345,10 @@ export interface AdminApiRemoveDomainLockRequest {
341
345
  lockId: string;
342
346
  }
343
347
 
348
+ export interface AdminApiSyncAccountStatsRequest {
349
+ accountId: string;
350
+ }
351
+
344
352
  export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
345
353
  accountId: string;
346
354
  }
@@ -471,6 +479,46 @@ export class AdminApi extends runtime.BaseAPI {
471
479
  await this.bulkCommissionActionsRaw(requestParameters, initOverrides);
472
480
  }
473
481
 
482
+ /**
483
+ *
484
+ */
485
+ async cancelDomainTransferRaw(requestParameters: AdminApiCancelDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
486
+ if (requestParameters['transferId'] == null) {
487
+ throw new runtime.RequiredError(
488
+ 'transferId',
489
+ 'Required parameter "transferId" was null or undefined when calling cancelDomainTransfer().'
490
+ );
491
+ }
492
+
493
+ const queryParameters: any = {};
494
+
495
+ const headerParameters: runtime.HTTPHeaders = {};
496
+
497
+ if (this.configuration && this.configuration.accessToken) {
498
+ const token = this.configuration.accessToken;
499
+ const tokenString = await token("bearer", []);
500
+
501
+ if (tokenString) {
502
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
503
+ }
504
+ }
505
+ const response = await this.request({
506
+ path: `/admin/domain-transfers/{transferId}/cancel`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
507
+ method: 'POST',
508
+ headers: headerParameters,
509
+ query: queryParameters,
510
+ }, initOverrides);
511
+
512
+ return new runtime.VoidApiResponse(response);
513
+ }
514
+
515
+ /**
516
+ *
517
+ */
518
+ async cancelDomainTransfer(requestParameters: AdminApiCancelDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
519
+ await this.cancelDomainTransferRaw(requestParameters, initOverrides);
520
+ }
521
+
474
522
  /**
475
523
  *
476
524
  */
@@ -2205,6 +2253,46 @@ export class AdminApi extends runtime.BaseAPI {
2205
2253
  await this.removeDomainLockRaw(requestParameters, initOverrides);
2206
2254
  }
2207
2255
 
2256
+ /**
2257
+ *
2258
+ */
2259
+ async syncAccountStatsRaw(requestParameters: AdminApiSyncAccountStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
2260
+ if (requestParameters['accountId'] == null) {
2261
+ throw new runtime.RequiredError(
2262
+ 'accountId',
2263
+ 'Required parameter "accountId" was null or undefined when calling syncAccountStats().'
2264
+ );
2265
+ }
2266
+
2267
+ const queryParameters: any = {};
2268
+
2269
+ const headerParameters: runtime.HTTPHeaders = {};
2270
+
2271
+ if (this.configuration && this.configuration.accessToken) {
2272
+ const token = this.configuration.accessToken;
2273
+ const tokenString = await token("bearer", []);
2274
+
2275
+ if (tokenString) {
2276
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2277
+ }
2278
+ }
2279
+ const response = await this.request({
2280
+ path: `/admin/accounts/{accountId}/stats/sync`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
2281
+ method: 'POST',
2282
+ headers: headerParameters,
2283
+ query: queryParameters,
2284
+ }, initOverrides);
2285
+
2286
+ return new runtime.VoidApiResponse(response);
2287
+ }
2288
+
2289
+ /**
2290
+ *
2291
+ */
2292
+ async syncAccountStats(requestParameters: AdminApiSyncAccountStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
2293
+ await this.syncAccountStatsRaw(requestParameters, initOverrides);
2294
+ }
2295
+
2208
2296
  /**
2209
2297
  *
2210
2298
  */
@@ -103,6 +103,7 @@ export const BuyerDomainTransferListItemDtoDomainTransferStatusEnum = {
103
103
  STARTED: 'started',
104
104
  PENDING_MANUAL_ACTION: 'pending_manual_action',
105
105
  ERROR: 'error',
106
+ CANCELLED: 'cancelled',
106
107
  COMPLETED: 'completed'
107
108
  } as const;
108
109
  export type BuyerDomainTransferListItemDtoDomainTransferStatusEnum = typeof BuyerDomainTransferListItemDtoDomainTransferStatusEnum[keyof typeof BuyerDomainTransferListItemDtoDomainTransferStatusEnum];
@@ -152,6 +152,7 @@ export const DomainTransferDetailsDtoStatusEnum = {
152
152
  STARTED: 'started',
153
153
  PENDING_MANUAL_ACTION: 'pending_manual_action',
154
154
  ERROR: 'error',
155
+ CANCELLED: 'cancelled',
155
156
  COMPLETED: 'completed'
156
157
  } as const;
157
158
  export type DomainTransferDetailsDtoStatusEnum = typeof DomainTransferDetailsDtoStatusEnum[keyof typeof DomainTransferDetailsDtoStatusEnum];
@@ -164,6 +165,7 @@ export const DomainTransferDetailsDtoStatusSellerEnum = {
164
165
  STARTED: 'started',
165
166
  PENDING_MANUAL_ACTION: 'pending_manual_action',
166
167
  ERROR: 'error',
168
+ CANCELLED: 'cancelled',
167
169
  COMPLETED: 'completed'
168
170
  } as const;
169
171
  export type DomainTransferDetailsDtoStatusSellerEnum = typeof DomainTransferDetailsDtoStatusSellerEnum[keyof typeof DomainTransferDetailsDtoStatusSellerEnum];
@@ -126,6 +126,7 @@ export const DomainTransferDtoStatusEnum = {
126
126
  STARTED: 'started',
127
127
  PENDING_MANUAL_ACTION: 'pending_manual_action',
128
128
  ERROR: 'error',
129
+ CANCELLED: 'cancelled',
129
130
  COMPLETED: 'completed'
130
131
  } as const;
131
132
  export type DomainTransferDtoStatusEnum = typeof DomainTransferDtoStatusEnum[keyof typeof DomainTransferDtoStatusEnum];
@@ -138,6 +139,7 @@ export const DomainTransferDtoStatusSellerEnum = {
138
139
  STARTED: 'started',
139
140
  PENDING_MANUAL_ACTION: 'pending_manual_action',
140
141
  ERROR: 'error',
142
+ CANCELLED: 'cancelled',
141
143
  COMPLETED: 'completed'
142
144
  } as const;
143
145
  export type DomainTransferDtoStatusSellerEnum = typeof DomainTransferDtoStatusSellerEnum[keyof typeof DomainTransferDtoStatusSellerEnum];
@@ -81,6 +81,7 @@ export const SellerDomainTransferDtoStatusEnum = {
81
81
  STARTED: 'started',
82
82
  PENDING_MANUAL_ACTION: 'pending_manual_action',
83
83
  ERROR: 'error',
84
+ CANCELLED: 'cancelled',
84
85
  COMPLETED: 'completed'
85
86
  } as const;
86
87
  export type SellerDomainTransferDtoStatusEnum = typeof SellerDomainTransferDtoStatusEnum[keyof typeof SellerDomainTransferDtoStatusEnum];
@@ -87,6 +87,7 @@ export const SellerDomainTransferListItemDtoStatusEnum = {
87
87
  STARTED: 'started',
88
88
  PENDING_MANUAL_ACTION: 'pending_manual_action',
89
89
  ERROR: 'error',
90
+ CANCELLED: 'cancelled',
90
91
  COMPLETED: 'completed'
91
92
  } as const;
92
93
  export type SellerDomainTransferListItemDtoStatusEnum = typeof SellerDomainTransferListItemDtoStatusEnum[keyof typeof SellerDomainTransferListItemDtoStatusEnum];