@randock/nameshift-api-client 0.0.359 → 0.0.361
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 +23 -1
- package/dist/apis/AdminApi.js +104 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +4 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +92 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +9 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.361
|
|
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.361 --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
|
+
d55a6e9da71d5c84391ded117b424bf95af096a02f78660c411d864b67d9ea300a37a9a0c148e1deb99cbb9e0aec23b5
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
|
|
13
|
+
import type { AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
15
15
|
filter?: object;
|
|
16
16
|
page?: number;
|
|
@@ -34,6 +34,9 @@ export interface AdminApiDownloadInvoiceRequest {
|
|
|
34
34
|
export interface AdminApiGetAccountMeRequest {
|
|
35
35
|
accountId: string;
|
|
36
36
|
}
|
|
37
|
+
export interface AdminApiGetAccountPaymentMethodProfilesRequest {
|
|
38
|
+
accountId: string;
|
|
39
|
+
}
|
|
37
40
|
export interface AdminApiGetAccountSettingsRequest {
|
|
38
41
|
accountId: string;
|
|
39
42
|
}
|
|
@@ -124,6 +127,9 @@ export interface AdminApiPostAdminExecuteDomainTransferStepActionRequest {
|
|
|
124
127
|
export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
|
|
125
128
|
sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
|
|
126
129
|
}
|
|
130
|
+
export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
|
|
131
|
+
accountId: string;
|
|
132
|
+
}
|
|
127
133
|
export interface AdminApiUpdateAccountSettingsRequest {
|
|
128
134
|
accountId: string;
|
|
129
135
|
adminAccountSettingsInput: AdminAccountSettingsInput;
|
|
@@ -186,6 +192,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
186
192
|
*
|
|
187
193
|
*/
|
|
188
194
|
getAccountMe(requestParameters: AdminApiGetAccountMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto>;
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
*/
|
|
198
|
+
getAccountPaymentMethodProfilesRaw(requestParameters: AdminApiGetAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountPaymentMethodProfileDto>>>;
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
*/
|
|
202
|
+
getAccountPaymentMethodProfiles(requestParameters: AdminApiGetAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountPaymentMethodProfileDto>>;
|
|
189
203
|
/**
|
|
190
204
|
*
|
|
191
205
|
*/
|
|
@@ -346,6 +360,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
346
360
|
*
|
|
347
361
|
*/
|
|
348
362
|
postAiPriceNegotiatorAgentChatMessage(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LeadMessageDto>>;
|
|
363
|
+
/**
|
|
364
|
+
*
|
|
365
|
+
*/
|
|
366
|
+
syncAllAccountPaymentMethodProfilesRaw(requestParameters: AdminApiSyncAllAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
367
|
+
/**
|
|
368
|
+
*
|
|
369
|
+
*/
|
|
370
|
+
syncAllAccountPaymentMethodProfiles(requestParameters: AdminApiSyncAllAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
349
371
|
/**
|
|
350
372
|
*
|
|
351
373
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -409,6 +409,59 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
409
409
|
});
|
|
410
410
|
});
|
|
411
411
|
};
|
|
412
|
+
/**
|
|
413
|
+
*
|
|
414
|
+
*/
|
|
415
|
+
AdminApi.prototype.getAccountPaymentMethodProfilesRaw = function (requestParameters, initOverrides) {
|
|
416
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
417
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
418
|
+
return __generator(this, function (_a) {
|
|
419
|
+
switch (_a.label) {
|
|
420
|
+
case 0:
|
|
421
|
+
if (requestParameters['accountId'] == null) {
|
|
422
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getAccountPaymentMethodProfiles().');
|
|
423
|
+
}
|
|
424
|
+
queryParameters = {};
|
|
425
|
+
headerParameters = {};
|
|
426
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
427
|
+
token = this.configuration.accessToken;
|
|
428
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
429
|
+
case 1:
|
|
430
|
+
tokenString = _a.sent();
|
|
431
|
+
if (tokenString) {
|
|
432
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
433
|
+
}
|
|
434
|
+
_a.label = 2;
|
|
435
|
+
case 2: return [4 /*yield*/, this.request({
|
|
436
|
+
path: "/admin/accounts/{accountId}/payment-method-profiles".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
437
|
+
method: 'GET',
|
|
438
|
+
headers: headerParameters,
|
|
439
|
+
query: queryParameters,
|
|
440
|
+
}, initOverrides)];
|
|
441
|
+
case 3:
|
|
442
|
+
response = _a.sent();
|
|
443
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.AccountPaymentMethodProfileDtoFromJSON); })];
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
});
|
|
447
|
+
};
|
|
448
|
+
/**
|
|
449
|
+
*
|
|
450
|
+
*/
|
|
451
|
+
AdminApi.prototype.getAccountPaymentMethodProfiles = function (requestParameters, initOverrides) {
|
|
452
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
453
|
+
var response;
|
|
454
|
+
return __generator(this, function (_a) {
|
|
455
|
+
switch (_a.label) {
|
|
456
|
+
case 0: return [4 /*yield*/, this.getAccountPaymentMethodProfilesRaw(requestParameters, initOverrides)];
|
|
457
|
+
case 1:
|
|
458
|
+
response = _a.sent();
|
|
459
|
+
return [4 /*yield*/, response.value()];
|
|
460
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
});
|
|
464
|
+
};
|
|
412
465
|
/**
|
|
413
466
|
*
|
|
414
467
|
*/
|
|
@@ -1572,6 +1625,57 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
1572
1625
|
});
|
|
1573
1626
|
});
|
|
1574
1627
|
};
|
|
1628
|
+
/**
|
|
1629
|
+
*
|
|
1630
|
+
*/
|
|
1631
|
+
AdminApi.prototype.syncAllAccountPaymentMethodProfilesRaw = function (requestParameters, initOverrides) {
|
|
1632
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1633
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1634
|
+
return __generator(this, function (_a) {
|
|
1635
|
+
switch (_a.label) {
|
|
1636
|
+
case 0:
|
|
1637
|
+
if (requestParameters['accountId'] == null) {
|
|
1638
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling syncAllAccountPaymentMethodProfiles().');
|
|
1639
|
+
}
|
|
1640
|
+
queryParameters = {};
|
|
1641
|
+
headerParameters = {};
|
|
1642
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1643
|
+
token = this.configuration.accessToken;
|
|
1644
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1645
|
+
case 1:
|
|
1646
|
+
tokenString = _a.sent();
|
|
1647
|
+
if (tokenString) {
|
|
1648
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1649
|
+
}
|
|
1650
|
+
_a.label = 2;
|
|
1651
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1652
|
+
path: "/admin/accounts/{accountId}/payment-method-profiles/sync".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
1653
|
+
method: 'POST',
|
|
1654
|
+
headers: headerParameters,
|
|
1655
|
+
query: queryParameters,
|
|
1656
|
+
}, initOverrides)];
|
|
1657
|
+
case 3:
|
|
1658
|
+
response = _a.sent();
|
|
1659
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1660
|
+
}
|
|
1661
|
+
});
|
|
1662
|
+
});
|
|
1663
|
+
};
|
|
1664
|
+
/**
|
|
1665
|
+
*
|
|
1666
|
+
*/
|
|
1667
|
+
AdminApi.prototype.syncAllAccountPaymentMethodProfiles = function (requestParameters, initOverrides) {
|
|
1668
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1669
|
+
return __generator(this, function (_a) {
|
|
1670
|
+
switch (_a.label) {
|
|
1671
|
+
case 0: return [4 /*yield*/, this.syncAllAccountPaymentMethodProfilesRaw(requestParameters, initOverrides)];
|
|
1672
|
+
case 1:
|
|
1673
|
+
_a.sent();
|
|
1674
|
+
return [2 /*return*/];
|
|
1675
|
+
}
|
|
1676
|
+
});
|
|
1677
|
+
});
|
|
1678
|
+
};
|
|
1575
1679
|
/**
|
|
1576
1680
|
*
|
|
1577
1681
|
*/
|
|
@@ -40,6 +40,12 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
40
40
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
41
41
|
*/
|
|
42
42
|
hijackerId: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the domain can be deleted
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
47
|
+
*/
|
|
48
|
+
isDeleteable: boolean;
|
|
43
49
|
/**
|
|
44
50
|
* The TLD for this domain.
|
|
45
51
|
* @type {string}
|
|
@@ -35,6 +35,8 @@ function instanceOfIntersectionDomainDtoWithAccountDto(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
if (!('tld' in value) || value['tld'] === undefined)
|
|
39
41
|
return false;
|
|
40
42
|
if (!('verified' in value) || value['verified'] === undefined)
|
|
@@ -88,6 +90,7 @@ function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscrimina
|
|
|
88
90
|
'id': json['id'],
|
|
89
91
|
'accountId': json['accountId'],
|
|
90
92
|
'hijackerId': json['hijackerId'],
|
|
93
|
+
'isDeleteable': json['isDeleteable'],
|
|
91
94
|
'tld': json['tld'],
|
|
92
95
|
'verified': json['verified'],
|
|
93
96
|
'nameservers': json['nameservers'],
|
|
@@ -122,6 +125,7 @@ function IntersectionDomainDtoWithAccountDtoToJSONTyped(value, ignoreDiscriminat
|
|
|
122
125
|
'id': value['id'],
|
|
123
126
|
'accountId': value['accountId'],
|
|
124
127
|
'hijackerId': value['hijackerId'],
|
|
128
|
+
'isDeleteable': value['isDeleteable'],
|
|
125
129
|
'tld': value['tld'],
|
|
126
130
|
'verified': value['verified'],
|
|
127
131
|
'nameservers': value['nameservers'],
|
|
@@ -40,6 +40,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
|
40
40
|
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
41
41
|
*/
|
|
42
42
|
hijackerId: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the domain can be deleted
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
47
|
+
*/
|
|
48
|
+
isDeleteable: boolean;
|
|
43
49
|
/**
|
|
44
50
|
* The TLD for this domain.
|
|
45
51
|
* @type {string}
|
|
@@ -35,6 +35,8 @@ function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(value)
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
if (!('tld' in value) || value['tld'] === undefined)
|
|
39
41
|
return false;
|
|
40
42
|
if (!('verified' in value) || value['verified'] === undefined)
|
|
@@ -90,6 +92,7 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped(json
|
|
|
90
92
|
'id': json['id'],
|
|
91
93
|
'accountId': json['accountId'],
|
|
92
94
|
'hijackerId': json['hijackerId'],
|
|
95
|
+
'isDeleteable': json['isDeleteable'],
|
|
93
96
|
'tld': json['tld'],
|
|
94
97
|
'verified': json['verified'],
|
|
95
98
|
'nameservers': json['nameservers'],
|
|
@@ -125,6 +128,7 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped(value,
|
|
|
125
128
|
'id': value['id'],
|
|
126
129
|
'accountId': value['accountId'],
|
|
127
130
|
'hijackerId': value['hijackerId'],
|
|
131
|
+
'isDeleteable': value['isDeleteable'],
|
|
128
132
|
'tld': value['tld'],
|
|
129
133
|
'verified': value['verified'],
|
|
130
134
|
'nameservers': value['nameservers'],
|
|
@@ -40,6 +40,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
40
40
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
41
41
|
*/
|
|
42
42
|
hijackerId: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the domain can be deleted
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
47
|
+
*/
|
|
48
|
+
isDeleteable: boolean;
|
|
43
49
|
/**
|
|
44
50
|
* The TLD for this domain.
|
|
45
51
|
* @type {string}
|
|
@@ -35,6 +35,8 @@ function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
if (!('tld' in value) || value['tld'] === undefined)
|
|
39
41
|
return false;
|
|
40
42
|
if (!('verified' in value) || value['verified'] === undefined)
|
|
@@ -90,6 +92,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
|
|
|
90
92
|
'id': json['id'],
|
|
91
93
|
'accountId': json['accountId'],
|
|
92
94
|
'hijackerId': json['hijackerId'],
|
|
95
|
+
'isDeleteable': json['isDeleteable'],
|
|
93
96
|
'tld': json['tld'],
|
|
94
97
|
'verified': json['verified'],
|
|
95
98
|
'nameservers': json['nameservers'],
|
|
@@ -125,6 +128,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(value, ig
|
|
|
125
128
|
'id': value['id'],
|
|
126
129
|
'accountId': value['accountId'],
|
|
127
130
|
'hijackerId': value['hijackerId'],
|
|
131
|
+
'isDeleteable': value['isDeleteable'],
|
|
128
132
|
'tld': value['tld'],
|
|
129
133
|
'verified': value['verified'],
|
|
130
134
|
'nameservers': value['nameservers'],
|
|
@@ -40,6 +40,12 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
|
|
|
40
40
|
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
41
41
|
*/
|
|
42
42
|
hijackerId: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the domain can be deleted
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
47
|
+
*/
|
|
48
|
+
isDeleteable: boolean;
|
|
43
49
|
/**
|
|
44
50
|
* The SEO metrics for this domain
|
|
45
51
|
* @type {SeoMetricsDto}
|
|
@@ -35,6 +35,8 @@ function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
if (!('seoMetrics' in value) || value['seoMetrics'] === undefined)
|
|
39
41
|
return false;
|
|
40
42
|
if (!('tld' in value) || value['tld'] === undefined)
|
|
@@ -88,6 +90,7 @@ function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json, ignoreDiscrim
|
|
|
88
90
|
'id': json['id'],
|
|
89
91
|
'accountId': json['accountId'],
|
|
90
92
|
'hijackerId': json['hijackerId'],
|
|
93
|
+
'isDeleteable': json['isDeleteable'],
|
|
91
94
|
'seoMetrics': (0, SeoMetricsDto_1.SeoMetricsDtoFromJSON)(json['seoMetrics']),
|
|
92
95
|
'tld': json['tld'],
|
|
93
96
|
'verified': json['verified'],
|
|
@@ -122,6 +125,7 @@ function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value, ignoreDiscrimi
|
|
|
122
125
|
'id': value['id'],
|
|
123
126
|
'accountId': value['accountId'],
|
|
124
127
|
'hijackerId': value['hijackerId'],
|
|
128
|
+
'isDeleteable': value['isDeleteable'],
|
|
125
129
|
'seoMetrics': (0, SeoMetricsDto_1.SeoMetricsDtoToJSON)(value['seoMetrics']),
|
|
126
130
|
'tld': value['tld'],
|
|
127
131
|
'verified': value['verified'],
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AccountPaymentMethodProfileDto,
|
|
18
19
|
AccountSettingsDto,
|
|
19
20
|
AdminAccountLoginDto,
|
|
20
21
|
AdminAccountSettingsInput,
|
|
@@ -43,6 +44,8 @@ import type {
|
|
|
43
44
|
ValidationException,
|
|
44
45
|
} from '../models/index';
|
|
45
46
|
import {
|
|
47
|
+
AccountPaymentMethodProfileDtoFromJSON,
|
|
48
|
+
AccountPaymentMethodProfileDtoToJSON,
|
|
46
49
|
AccountSettingsDtoFromJSON,
|
|
47
50
|
AccountSettingsDtoToJSON,
|
|
48
51
|
AdminAccountLoginDtoFromJSON,
|
|
@@ -126,6 +129,10 @@ export interface AdminApiGetAccountMeRequest {
|
|
|
126
129
|
accountId: string;
|
|
127
130
|
}
|
|
128
131
|
|
|
132
|
+
export interface AdminApiGetAccountPaymentMethodProfilesRequest {
|
|
133
|
+
accountId: string;
|
|
134
|
+
}
|
|
135
|
+
|
|
129
136
|
export interface AdminApiGetAccountSettingsRequest {
|
|
130
137
|
accountId: string;
|
|
131
138
|
}
|
|
@@ -236,6 +243,10 @@ export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
|
|
|
236
243
|
sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
|
|
237
244
|
}
|
|
238
245
|
|
|
246
|
+
export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
|
|
247
|
+
accountId: string;
|
|
248
|
+
}
|
|
249
|
+
|
|
239
250
|
export interface AdminApiUpdateAccountSettingsRequest {
|
|
240
251
|
accountId: string;
|
|
241
252
|
adminAccountSettingsInput: AdminAccountSettingsInput;
|
|
@@ -527,6 +538,47 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
527
538
|
return await response.value();
|
|
528
539
|
}
|
|
529
540
|
|
|
541
|
+
/**
|
|
542
|
+
*
|
|
543
|
+
*/
|
|
544
|
+
async getAccountPaymentMethodProfilesRaw(requestParameters: AdminApiGetAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountPaymentMethodProfileDto>>> {
|
|
545
|
+
if (requestParameters['accountId'] == null) {
|
|
546
|
+
throw new runtime.RequiredError(
|
|
547
|
+
'accountId',
|
|
548
|
+
'Required parameter "accountId" was null or undefined when calling getAccountPaymentMethodProfiles().'
|
|
549
|
+
);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
const queryParameters: any = {};
|
|
553
|
+
|
|
554
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
555
|
+
|
|
556
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
557
|
+
const token = this.configuration.accessToken;
|
|
558
|
+
const tokenString = await token("bearer", []);
|
|
559
|
+
|
|
560
|
+
if (tokenString) {
|
|
561
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
const response = await this.request({
|
|
565
|
+
path: `/admin/accounts/{accountId}/payment-method-profiles`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
566
|
+
method: 'GET',
|
|
567
|
+
headers: headerParameters,
|
|
568
|
+
query: queryParameters,
|
|
569
|
+
}, initOverrides);
|
|
570
|
+
|
|
571
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AccountPaymentMethodProfileDtoFromJSON));
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
*
|
|
576
|
+
*/
|
|
577
|
+
async getAccountPaymentMethodProfiles(requestParameters: AdminApiGetAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountPaymentMethodProfileDto>> {
|
|
578
|
+
const response = await this.getAccountPaymentMethodProfilesRaw(requestParameters, initOverrides);
|
|
579
|
+
return await response.value();
|
|
580
|
+
}
|
|
581
|
+
|
|
530
582
|
/**
|
|
531
583
|
*
|
|
532
584
|
*/
|
|
@@ -1463,6 +1515,46 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1463
1515
|
return await response.value();
|
|
1464
1516
|
}
|
|
1465
1517
|
|
|
1518
|
+
/**
|
|
1519
|
+
*
|
|
1520
|
+
*/
|
|
1521
|
+
async syncAllAccountPaymentMethodProfilesRaw(requestParameters: AdminApiSyncAllAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1522
|
+
if (requestParameters['accountId'] == null) {
|
|
1523
|
+
throw new runtime.RequiredError(
|
|
1524
|
+
'accountId',
|
|
1525
|
+
'Required parameter "accountId" was null or undefined when calling syncAllAccountPaymentMethodProfiles().'
|
|
1526
|
+
);
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
const queryParameters: any = {};
|
|
1530
|
+
|
|
1531
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1532
|
+
|
|
1533
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1534
|
+
const token = this.configuration.accessToken;
|
|
1535
|
+
const tokenString = await token("bearer", []);
|
|
1536
|
+
|
|
1537
|
+
if (tokenString) {
|
|
1538
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
const response = await this.request({
|
|
1542
|
+
path: `/admin/accounts/{accountId}/payment-method-profiles/sync`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
1543
|
+
method: 'POST',
|
|
1544
|
+
headers: headerParameters,
|
|
1545
|
+
query: queryParameters,
|
|
1546
|
+
}, initOverrides);
|
|
1547
|
+
|
|
1548
|
+
return new runtime.VoidApiResponse(response);
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
/**
|
|
1552
|
+
*
|
|
1553
|
+
*/
|
|
1554
|
+
async syncAllAccountPaymentMethodProfiles(requestParameters: AdminApiSyncAllAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1555
|
+
await this.syncAllAccountPaymentMethodProfilesRaw(requestParameters, initOverrides);
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1466
1558
|
/**
|
|
1467
1559
|
*
|
|
1468
1560
|
*/
|
|
@@ -87,6 +87,12 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
87
87
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
88
88
|
*/
|
|
89
89
|
hijackerId: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Whether the domain can be deleted
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
94
|
+
*/
|
|
95
|
+
isDeleteable: boolean;
|
|
90
96
|
/**
|
|
91
97
|
* The TLD for this domain.
|
|
92
98
|
* @type {string}
|
|
@@ -217,6 +223,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): va
|
|
|
217
223
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
218
224
|
if (!('accountId' in value) || value['accountId'] === undefined) return false;
|
|
219
225
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
|
|
226
|
+
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
220
227
|
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
221
228
|
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
222
229
|
if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
|
|
@@ -253,6 +260,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
|
|
|
253
260
|
'id': json['id'],
|
|
254
261
|
'accountId': json['accountId'],
|
|
255
262
|
'hijackerId': json['hijackerId'],
|
|
263
|
+
'isDeleteable': json['isDeleteable'],
|
|
256
264
|
'tld': json['tld'],
|
|
257
265
|
'verified': json['verified'],
|
|
258
266
|
'nameservers': json['nameservers'],
|
|
@@ -290,6 +298,7 @@ export function IntersectionDomainDtoWithAccountDtoToJSONTyped(value?: Intersect
|
|
|
290
298
|
'id': value['id'],
|
|
291
299
|
'accountId': value['accountId'],
|
|
292
300
|
'hijackerId': value['hijackerId'],
|
|
301
|
+
'isDeleteable': value['isDeleteable'],
|
|
293
302
|
'tld': value['tld'],
|
|
294
303
|
'verified': value['verified'],
|
|
295
304
|
'nameservers': value['nameservers'],
|
|
@@ -87,6 +87,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
|
87
87
|
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
88
88
|
*/
|
|
89
89
|
hijackerId: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Whether the domain can be deleted
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
94
|
+
*/
|
|
95
|
+
isDeleteable: boolean;
|
|
90
96
|
/**
|
|
91
97
|
* The TLD for this domain.
|
|
92
98
|
* @type {string}
|
|
@@ -223,6 +229,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(
|
|
|
223
229
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
224
230
|
if (!('accountId' in value) || value['accountId'] === undefined) return false;
|
|
225
231
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
|
|
232
|
+
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
226
233
|
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
227
234
|
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
228
235
|
if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
|
|
@@ -260,6 +267,7 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyp
|
|
|
260
267
|
'id': json['id'],
|
|
261
268
|
'accountId': json['accountId'],
|
|
262
269
|
'hijackerId': json['hijackerId'],
|
|
270
|
+
'isDeleteable': json['isDeleteable'],
|
|
263
271
|
'tld': json['tld'],
|
|
264
272
|
'verified': json['verified'],
|
|
265
273
|
'nameservers': json['nameservers'],
|
|
@@ -298,6 +306,7 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped
|
|
|
298
306
|
'id': value['id'],
|
|
299
307
|
'accountId': value['accountId'],
|
|
300
308
|
'hijackerId': value['hijackerId'],
|
|
309
|
+
'isDeleteable': value['isDeleteable'],
|
|
301
310
|
'tld': value['tld'],
|
|
302
311
|
'verified': value['verified'],
|
|
303
312
|
'nameservers': value['nameservers'],
|
|
@@ -87,6 +87,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
87
87
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
88
88
|
*/
|
|
89
89
|
hijackerId: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Whether the domain can be deleted
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
94
|
+
*/
|
|
95
|
+
isDeleteable: boolean;
|
|
90
96
|
/**
|
|
91
97
|
* The TLD for this domain.
|
|
92
98
|
* @type {string}
|
|
@@ -223,6 +229,7 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
|
|
|
223
229
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
224
230
|
if (!('accountId' in value) || value['accountId'] === undefined) return false;
|
|
225
231
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
|
|
232
|
+
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
226
233
|
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
227
234
|
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
228
235
|
if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
|
|
@@ -260,6 +267,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
|
|
|
260
267
|
'id': json['id'],
|
|
261
268
|
'accountId': json['accountId'],
|
|
262
269
|
'hijackerId': json['hijackerId'],
|
|
270
|
+
'isDeleteable': json['isDeleteable'],
|
|
263
271
|
'tld': json['tld'],
|
|
264
272
|
'verified': json['verified'],
|
|
265
273
|
'nameservers': json['nameservers'],
|
|
@@ -298,6 +306,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(va
|
|
|
298
306
|
'id': value['id'],
|
|
299
307
|
'accountId': value['accountId'],
|
|
300
308
|
'hijackerId': value['hijackerId'],
|
|
309
|
+
'isDeleteable': value['isDeleteable'],
|
|
301
310
|
'tld': value['tld'],
|
|
302
311
|
'verified': value['verified'],
|
|
303
312
|
'nameservers': value['nameservers'],
|
|
@@ -87,6 +87,12 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
|
|
|
87
87
|
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
88
88
|
*/
|
|
89
89
|
hijackerId: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Whether the domain can be deleted
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
94
|
+
*/
|
|
95
|
+
isDeleteable: boolean;
|
|
90
96
|
/**
|
|
91
97
|
* The SEO metrics for this domain
|
|
92
98
|
* @type {SeoMetricsDto}
|
|
@@ -217,6 +223,7 @@ export function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value: object):
|
|
|
217
223
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
218
224
|
if (!('accountId' in value) || value['accountId'] === undefined) return false;
|
|
219
225
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
|
|
226
|
+
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
220
227
|
if (!('seoMetrics' in value) || value['seoMetrics'] === undefined) return false;
|
|
221
228
|
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
222
229
|
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
@@ -253,6 +260,7 @@ export function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json: any, i
|
|
|
253
260
|
'id': json['id'],
|
|
254
261
|
'accountId': json['accountId'],
|
|
255
262
|
'hijackerId': json['hijackerId'],
|
|
263
|
+
'isDeleteable': json['isDeleteable'],
|
|
256
264
|
'seoMetrics': SeoMetricsDtoFromJSON(json['seoMetrics']),
|
|
257
265
|
'tld': json['tld'],
|
|
258
266
|
'verified': json['verified'],
|
|
@@ -290,6 +298,7 @@ export function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value?: Inters
|
|
|
290
298
|
'id': value['id'],
|
|
291
299
|
'accountId': value['accountId'],
|
|
292
300
|
'hijackerId': value['hijackerId'],
|
|
301
|
+
'isDeleteable': value['isDeleteable'],
|
|
293
302
|
'seoMetrics': SeoMetricsDtoToJSON(value['seoMetrics']),
|
|
294
303
|
'tld': value['tld'],
|
|
295
304
|
'verified': value['verified'],
|