@randock/nameshift-api-client 0.0.526 → 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 +3 -3
- package/dist/apis/AdminApi.d.ts +17 -0
- package/dist/apis/AdminApi.js +65 -0
- package/dist/apis/BuyersApi.d.ts +5 -0
- package/dist/apis/BuyersApi.js +15 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +66 -0
- package/src/apis/BuyersApi.ts +25 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
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.
|
|
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
|
-
|
|
47
|
+
ce8c8d6a13f181e365f48408f5f13da679c2efadf19932a7d5f97a30e024c3a3049554d18ed5d934a87f397344eb61db
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -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
|
}
|
|
@@ -112,6 +115,10 @@ export interface AdminApiGetAdminDomainAppraisalRequestsRequest {
|
|
|
112
115
|
filterDomainName?: string;
|
|
113
116
|
filterBuyer?: string;
|
|
114
117
|
filterAccount?: string;
|
|
118
|
+
filterCreatedAtFrom?: string;
|
|
119
|
+
filterCreatedAtTo?: string;
|
|
120
|
+
filterAppraisedAtFrom?: string;
|
|
121
|
+
filterAppraisedAtTo?: string;
|
|
115
122
|
}
|
|
116
123
|
export interface AdminApiGetAdminDomainTransferDetailsRequest {
|
|
117
124
|
domainTransferId: string;
|
|
@@ -537,6 +544,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
537
544
|
* Change subscription status
|
|
538
545
|
*/
|
|
539
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>;
|
|
540
557
|
/**
|
|
541
558
|
* Triggers a nameserver verification check for the specified domain.
|
|
542
559
|
* Check domain nameservers
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -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
|
|
@@ -1516,6 +1569,18 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
1516
1569
|
if (requestParameters['filterAccount'] != null) {
|
|
1517
1570
|
queryParameters['filter[account]'] = requestParameters['filterAccount'];
|
|
1518
1571
|
}
|
|
1572
|
+
if (requestParameters['filterCreatedAtFrom'] != null) {
|
|
1573
|
+
queryParameters['filter[createdAtFrom]'] = requestParameters['filterCreatedAtFrom'];
|
|
1574
|
+
}
|
|
1575
|
+
if (requestParameters['filterCreatedAtTo'] != null) {
|
|
1576
|
+
queryParameters['filter[createdAtTo]'] = requestParameters['filterCreatedAtTo'];
|
|
1577
|
+
}
|
|
1578
|
+
if (requestParameters['filterAppraisedAtFrom'] != null) {
|
|
1579
|
+
queryParameters['filter[appraisedAtFrom]'] = requestParameters['filterAppraisedAtFrom'];
|
|
1580
|
+
}
|
|
1581
|
+
if (requestParameters['filterAppraisedAtTo'] != null) {
|
|
1582
|
+
queryParameters['filter[appraisedAtTo]'] = requestParameters['filterAppraisedAtTo'];
|
|
1583
|
+
}
|
|
1519
1584
|
headerParameters = {};
|
|
1520
1585
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1521
1586
|
token = this.configuration.accessToken;
|
package/dist/apis/BuyersApi.d.ts
CHANGED
|
@@ -72,6 +72,11 @@ export interface BuyersApiGetBuyerDomainAppraisalRequestsRequest {
|
|
|
72
72
|
limit?: number;
|
|
73
73
|
sortBy?: Array<string>;
|
|
74
74
|
filterStatus?: string;
|
|
75
|
+
filterDomainDisplayName?: string;
|
|
76
|
+
filterCreatedAtFrom?: string;
|
|
77
|
+
filterCreatedAtTo?: string;
|
|
78
|
+
filterAppraisedAtFrom?: string;
|
|
79
|
+
filterAppraisedAtTo?: string;
|
|
75
80
|
}
|
|
76
81
|
export interface BuyersApiGetBuyerInvoicesRequest {
|
|
77
82
|
filter?: {
|
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -1049,6 +1049,21 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
1049
1049
|
if (requestParameters['filterStatus'] != null) {
|
|
1050
1050
|
queryParameters['filter[status]'] = requestParameters['filterStatus'];
|
|
1051
1051
|
}
|
|
1052
|
+
if (requestParameters['filterDomainDisplayName'] != null) {
|
|
1053
|
+
queryParameters['filter[domain.displayName]'] = requestParameters['filterDomainDisplayName'];
|
|
1054
|
+
}
|
|
1055
|
+
if (requestParameters['filterCreatedAtFrom'] != null) {
|
|
1056
|
+
queryParameters['filter[createdAtFrom]'] = requestParameters['filterCreatedAtFrom'];
|
|
1057
|
+
}
|
|
1058
|
+
if (requestParameters['filterCreatedAtTo'] != null) {
|
|
1059
|
+
queryParameters['filter[createdAtTo]'] = requestParameters['filterCreatedAtTo'];
|
|
1060
|
+
}
|
|
1061
|
+
if (requestParameters['filterAppraisedAtFrom'] != null) {
|
|
1062
|
+
queryParameters['filter[appraisedAtFrom]'] = requestParameters['filterAppraisedAtFrom'];
|
|
1063
|
+
}
|
|
1064
|
+
if (requestParameters['filterAppraisedAtTo'] != null) {
|
|
1065
|
+
queryParameters['filter[appraisedAtTo]'] = requestParameters['filterAppraisedAtTo'];
|
|
1066
|
+
}
|
|
1052
1067
|
headerParameters = {};
|
|
1053
1068
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1054
1069
|
token = this.configuration.accessToken;
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -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
|
}
|
|
@@ -375,6 +379,10 @@ export interface AdminApiGetAdminDomainAppraisalRequestsRequest {
|
|
|
375
379
|
filterDomainName?: string;
|
|
376
380
|
filterBuyer?: string;
|
|
377
381
|
filterAccount?: string;
|
|
382
|
+
filterCreatedAtFrom?: string;
|
|
383
|
+
filterCreatedAtTo?: string;
|
|
384
|
+
filterAppraisedAtFrom?: string;
|
|
385
|
+
filterAppraisedAtTo?: string;
|
|
378
386
|
}
|
|
379
387
|
|
|
380
388
|
export interface AdminApiGetAdminDomainTransferDetailsRequest {
|
|
@@ -1198,6 +1206,48 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1198
1206
|
await this.changeSubscriptionStatusRaw(requestParameters, initOverrides);
|
|
1199
1207
|
}
|
|
1200
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
|
+
|
|
1201
1251
|
/**
|
|
1202
1252
|
* Triggers a nameserver verification check for the specified domain.
|
|
1203
1253
|
* Check domain nameservers
|
|
@@ -1946,6 +1996,22 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1946
1996
|
queryParameters['filter[account]'] = requestParameters['filterAccount'];
|
|
1947
1997
|
}
|
|
1948
1998
|
|
|
1999
|
+
if (requestParameters['filterCreatedAtFrom'] != null) {
|
|
2000
|
+
queryParameters['filter[createdAtFrom]'] = requestParameters['filterCreatedAtFrom'];
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
if (requestParameters['filterCreatedAtTo'] != null) {
|
|
2004
|
+
queryParameters['filter[createdAtTo]'] = requestParameters['filterCreatedAtTo'];
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
if (requestParameters['filterAppraisedAtFrom'] != null) {
|
|
2008
|
+
queryParameters['filter[appraisedAtFrom]'] = requestParameters['filterAppraisedAtFrom'];
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
if (requestParameters['filterAppraisedAtTo'] != null) {
|
|
2012
|
+
queryParameters['filter[appraisedAtTo]'] = requestParameters['filterAppraisedAtTo'];
|
|
2013
|
+
}
|
|
2014
|
+
|
|
1949
2015
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1950
2016
|
|
|
1951
2017
|
if (this.configuration && this.configuration.accessToken) {
|
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -225,6 +225,11 @@ export interface BuyersApiGetBuyerDomainAppraisalRequestsRequest {
|
|
|
225
225
|
limit?: number;
|
|
226
226
|
sortBy?: Array<string>;
|
|
227
227
|
filterStatus?: string;
|
|
228
|
+
filterDomainDisplayName?: string;
|
|
229
|
+
filterCreatedAtFrom?: string;
|
|
230
|
+
filterCreatedAtTo?: string;
|
|
231
|
+
filterAppraisedAtFrom?: string;
|
|
232
|
+
filterAppraisedAtTo?: string;
|
|
228
233
|
}
|
|
229
234
|
|
|
230
235
|
export interface BuyersApiGetBuyerInvoicesRequest {
|
|
@@ -1177,6 +1182,26 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
1177
1182
|
queryParameters['filter[status]'] = requestParameters['filterStatus'];
|
|
1178
1183
|
}
|
|
1179
1184
|
|
|
1185
|
+
if (requestParameters['filterDomainDisplayName'] != null) {
|
|
1186
|
+
queryParameters['filter[domain.displayName]'] = requestParameters['filterDomainDisplayName'];
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
if (requestParameters['filterCreatedAtFrom'] != null) {
|
|
1190
|
+
queryParameters['filter[createdAtFrom]'] = requestParameters['filterCreatedAtFrom'];
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
if (requestParameters['filterCreatedAtTo'] != null) {
|
|
1194
|
+
queryParameters['filter[createdAtTo]'] = requestParameters['filterCreatedAtTo'];
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
if (requestParameters['filterAppraisedAtFrom'] != null) {
|
|
1198
|
+
queryParameters['filter[appraisedAtFrom]'] = requestParameters['filterAppraisedAtFrom'];
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
if (requestParameters['filterAppraisedAtTo'] != null) {
|
|
1202
|
+
queryParameters['filter[appraisedAtTo]'] = requestParameters['filterAppraisedAtTo'];
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1180
1205
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1181
1206
|
|
|
1182
1207
|
if (this.configuration && this.configuration.accessToken) {
|