@randock/nameshift-api-client 0.0.315 → 0.0.316
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/.openapi-generator/FILES +3 -0
- package/README.md +3 -3
- package/dist/apis/DomainTransfersApi.d.ts +26 -0
- package/dist/apis/DomainTransfersApi.js +130 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AccountSettingsDto.d.ts +6 -0
- package/dist/models/AccountSettingsDto.js +4 -0
- package/dist/models/AccountSettingsInput.d.ts +6 -0
- package/dist/models/AccountSettingsInput.js +2 -0
- package/dist/models/DomainTransferTldInformationDto.d.ts +41 -0
- package/dist/models/DomainTransferTldInformationDto.js +56 -0
- package/dist/models/DomainTransferTldInformationResultDto.d.ts +39 -0
- package/dist/models/DomainTransferTldInformationResultDto.js +56 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/WithSettingsInner.d.ts +6 -0
- package/dist/models/WithSettingsInner.js +4 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/DomainTransfersApi.ts +70 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AccountSettingsDto.ts +9 -0
- package/src/models/AccountSettingsInput.ts +8 -0
- package/src/models/DomainTransferTldInformationDto.ts +83 -0
- package/src/models/DomainTransferTldInformationResultDto.ts +83 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/WithSettingsInner.ts +9 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -9,6 +9,7 @@ src/apis/AdminApi.ts
|
|
|
9
9
|
src/apis/BankAccountsApi.ts
|
|
10
10
|
src/apis/BuyersApi.ts
|
|
11
11
|
src/apis/BuyersPublicApi.ts
|
|
12
|
+
src/apis/DomainTransfersApi.ts
|
|
12
13
|
src/apis/DomainsApi.ts
|
|
13
14
|
src/apis/DomainsPublicApi.ts
|
|
14
15
|
src/apis/EppApi.ts
|
|
@@ -134,6 +135,8 @@ src/models/DomainTransferDto.ts
|
|
|
134
135
|
src/models/DomainTransferOrderDto.ts
|
|
135
136
|
src/models/DomainTransferSellerAccountDto.ts
|
|
136
137
|
src/models/DomainTransferSubscriptionDto.ts
|
|
138
|
+
src/models/DomainTransferTldInformationDto.ts
|
|
139
|
+
src/models/DomainTransferTldInformationResultDto.ts
|
|
137
140
|
src/models/DomainTransferWorkflowDto.ts
|
|
138
141
|
src/models/DomainUrlDto.ts
|
|
139
142
|
src/models/EppBatchUpdateInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.316
|
|
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.316 --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
|
+
3ab5343ec7cc8360018fc9150a3326b53d9726674fe29b450f49937cecca2da19939f83c892c8c3dd8d484616bac028b
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { DomainTransferTldInformationDto } from '../models/index';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare class DomainTransfersApi extends runtime.BaseAPI {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
getDomainTransferTldsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTransferTldInformationDto>>;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
getDomainTransferTlds(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTransferTldInformationDto>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.DomainTransfersApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var DomainTransfersApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(DomainTransfersApi, _super);
|
|
75
|
+
function DomainTransfersApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
DomainTransfersApi.prototype.getDomainTransferTldsRaw = function (initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
queryParameters = {};
|
|
88
|
+
headerParameters = {};
|
|
89
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
90
|
+
token = this.configuration.accessToken;
|
|
91
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
92
|
+
case 1:
|
|
93
|
+
tokenString = _a.sent();
|
|
94
|
+
if (tokenString) {
|
|
95
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
96
|
+
}
|
|
97
|
+
_a.label = 2;
|
|
98
|
+
case 2: return [4 /*yield*/, this.request({
|
|
99
|
+
path: "/private/domain-transfers/tlds",
|
|
100
|
+
method: 'GET',
|
|
101
|
+
headers: headerParameters,
|
|
102
|
+
query: queryParameters,
|
|
103
|
+
}, initOverrides)];
|
|
104
|
+
case 3:
|
|
105
|
+
response = _a.sent();
|
|
106
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainTransferTldInformationDtoFromJSON)(jsonValue); })];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
DomainTransfersApi.prototype.getDomainTransferTlds = function (initOverrides) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
116
|
+
var response;
|
|
117
|
+
return __generator(this, function (_a) {
|
|
118
|
+
switch (_a.label) {
|
|
119
|
+
case 0: return [4 /*yield*/, this.getDomainTransferTldsRaw(initOverrides)];
|
|
120
|
+
case 1:
|
|
121
|
+
response = _a.sent();
|
|
122
|
+
return [4 /*yield*/, response.value()];
|
|
123
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
return DomainTransfersApi;
|
|
129
|
+
}(runtime.BaseAPI));
|
|
130
|
+
exports.DomainTransfersApi = DomainTransfersApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './AdminApi';
|
|
|
4
4
|
export * from './BankAccountsApi';
|
|
5
5
|
export * from './BuyersApi';
|
|
6
6
|
export * from './BuyersPublicApi';
|
|
7
|
+
export * from './DomainTransfersApi';
|
|
7
8
|
export * from './DomainsApi';
|
|
8
9
|
export * from './DomainsPublicApi';
|
|
9
10
|
export * from './EppApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./AdminApi"), exports);
|
|
|
22
22
|
__exportStar(require("./BankAccountsApi"), exports);
|
|
23
23
|
__exportStar(require("./BuyersApi"), exports);
|
|
24
24
|
__exportStar(require("./BuyersPublicApi"), exports);
|
|
25
|
+
__exportStar(require("./DomainTransfersApi"), exports);
|
|
25
26
|
__exportStar(require("./DomainsApi"), exports);
|
|
26
27
|
__exportStar(require("./DomainsPublicApi"), exports);
|
|
27
28
|
__exportStar(require("./EppApi"), exports);
|
|
@@ -81,6 +81,12 @@ export interface AccountSettingsDto {
|
|
|
81
81
|
* @memberof AccountSettingsDto
|
|
82
82
|
*/
|
|
83
83
|
alias: AccountSettingsAliasDto;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof AccountSettingsDto
|
|
88
|
+
*/
|
|
89
|
+
transferCostPaymentMaxPercentage: number;
|
|
84
90
|
}
|
|
85
91
|
/**
|
|
86
92
|
* Check if a given object implements the AccountSettingsDto interface.
|
|
@@ -48,6 +48,8 @@ function instanceOfAccountSettingsDto(value) {
|
|
|
48
48
|
return false;
|
|
49
49
|
if (!('alias' in value) || value['alias'] === undefined)
|
|
50
50
|
return false;
|
|
51
|
+
if (!('transferCostPaymentMaxPercentage' in value) || value['transferCostPaymentMaxPercentage'] === undefined)
|
|
52
|
+
return false;
|
|
51
53
|
return true;
|
|
52
54
|
}
|
|
53
55
|
function AccountSettingsDtoFromJSON(json) {
|
|
@@ -68,6 +70,7 @@ function AccountSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
70
|
'description': json['description'],
|
|
69
71
|
'avatar': json['avatar'],
|
|
70
72
|
'alias': (0, AccountSettingsAliasDto_1.AccountSettingsAliasDtoFromJSON)(json['alias']),
|
|
73
|
+
'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'],
|
|
71
74
|
};
|
|
72
75
|
}
|
|
73
76
|
function AccountSettingsDtoToJSON(json) {
|
|
@@ -89,5 +92,6 @@ function AccountSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
89
92
|
'description': value['description'],
|
|
90
93
|
'avatar': value['avatar'],
|
|
91
94
|
'alias': (0, AccountSettingsAliasDto_1.AccountSettingsAliasDtoToJSON)(value['alias']),
|
|
95
|
+
'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
|
|
92
96
|
};
|
|
93
97
|
}
|
|
@@ -87,6 +87,12 @@ export interface AccountSettingsInput {
|
|
|
87
87
|
* @memberof AccountSettingsInput
|
|
88
88
|
*/
|
|
89
89
|
alias?: AccountAliasInput;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof AccountSettingsInput
|
|
94
|
+
*/
|
|
95
|
+
transferCostPaymentMaxPercentage?: number;
|
|
90
96
|
}
|
|
91
97
|
/**
|
|
92
98
|
* Check if a given object implements the AccountSettingsInput interface.
|
|
@@ -49,6 +49,7 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'leadPriceNegotiatorAiAgent': json['leadPriceNegotiatorAiAgent'] == null ? undefined : (0, LeadPriceNegotiatorAiAgentConfigurationInput_1.LeadPriceNegotiatorAiAgentConfigurationInputFromJSON)(json['leadPriceNegotiatorAiAgent']),
|
|
50
50
|
'timezone': json['timezone'] == null ? undefined : json['timezone'],
|
|
51
51
|
'alias': json['alias'] == null ? undefined : (0, AccountAliasInput_1.AccountAliasInputFromJSON)(json['alias']),
|
|
52
|
+
'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'] == null ? undefined : json['transferCostPaymentMaxPercentage'],
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
function AccountSettingsInputToJSON(json) {
|
|
@@ -71,5 +72,6 @@ function AccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
72
|
'leadPriceNegotiatorAiAgent': (0, LeadPriceNegotiatorAiAgentConfigurationInput_1.LeadPriceNegotiatorAiAgentConfigurationInputToJSON)(value['leadPriceNegotiatorAiAgent']),
|
|
72
73
|
'timezone': value['timezone'],
|
|
73
74
|
'alias': (0, AccountAliasInput_1.AccountAliasInputToJSON)(value['alias']),
|
|
75
|
+
'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
|
|
74
76
|
};
|
|
75
77
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { DomainTransferTldInformationResultDto } from './DomainTransferTldInformationResultDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DomainTransferTldInformationDto
|
|
17
|
+
*/
|
|
18
|
+
export interface DomainTransferTldInformationDto {
|
|
19
|
+
/**
|
|
20
|
+
* The exchange rates
|
|
21
|
+
* @type {{ [key: string]: number; }}
|
|
22
|
+
* @memberof DomainTransferTldInformationDto
|
|
23
|
+
*/
|
|
24
|
+
rates: {
|
|
25
|
+
[key: string]: number;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* The TLD list
|
|
29
|
+
* @type {Array<DomainTransferTldInformationResultDto>}
|
|
30
|
+
* @memberof DomainTransferTldInformationDto
|
|
31
|
+
*/
|
|
32
|
+
results: Array<DomainTransferTldInformationResultDto>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the DomainTransferTldInformationDto interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfDomainTransferTldInformationDto(value: object): value is DomainTransferTldInformationDto;
|
|
38
|
+
export declare function DomainTransferTldInformationDtoFromJSON(json: any): DomainTransferTldInformationDto;
|
|
39
|
+
export declare function DomainTransferTldInformationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTransferTldInformationDto;
|
|
40
|
+
export declare function DomainTransferTldInformationDtoToJSON(json: any): DomainTransferTldInformationDto;
|
|
41
|
+
export declare function DomainTransferTldInformationDtoToJSONTyped(value?: DomainTransferTldInformationDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDomainTransferTldInformationDto = instanceOfDomainTransferTldInformationDto;
|
|
17
|
+
exports.DomainTransferTldInformationDtoFromJSON = DomainTransferTldInformationDtoFromJSON;
|
|
18
|
+
exports.DomainTransferTldInformationDtoFromJSONTyped = DomainTransferTldInformationDtoFromJSONTyped;
|
|
19
|
+
exports.DomainTransferTldInformationDtoToJSON = DomainTransferTldInformationDtoToJSON;
|
|
20
|
+
exports.DomainTransferTldInformationDtoToJSONTyped = DomainTransferTldInformationDtoToJSONTyped;
|
|
21
|
+
var DomainTransferTldInformationResultDto_1 = require("./DomainTransferTldInformationResultDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the DomainTransferTldInformationDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfDomainTransferTldInformationDto(value) {
|
|
26
|
+
if (!('rates' in value) || value['rates'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('results' in value) || value['results'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function DomainTransferTldInformationDtoFromJSON(json) {
|
|
33
|
+
return DomainTransferTldInformationDtoFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function DomainTransferTldInformationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'rates': json['rates'],
|
|
41
|
+
'results': (json['results'].map(DomainTransferTldInformationResultDto_1.DomainTransferTldInformationResultDtoFromJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function DomainTransferTldInformationDtoToJSON(json) {
|
|
45
|
+
return DomainTransferTldInformationDtoToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function DomainTransferTldInformationDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'rates': value['rates'],
|
|
54
|
+
'results': (value['results'].map(DomainTransferTldInformationResultDto_1.DomainTransferTldInformationResultDtoToJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { MoneyDto } from './MoneyDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DomainTransferTldInformationResultDto
|
|
17
|
+
*/
|
|
18
|
+
export interface DomainTransferTldInformationResultDto {
|
|
19
|
+
/**
|
|
20
|
+
* The TLD name
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof DomainTransferTldInformationResultDto
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* The transfer price
|
|
27
|
+
* @type {MoneyDto}
|
|
28
|
+
* @memberof DomainTransferTldInformationResultDto
|
|
29
|
+
*/
|
|
30
|
+
transferPrice: MoneyDto;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the DomainTransferTldInformationResultDto interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfDomainTransferTldInformationResultDto(value: object): value is DomainTransferTldInformationResultDto;
|
|
36
|
+
export declare function DomainTransferTldInformationResultDtoFromJSON(json: any): DomainTransferTldInformationResultDto;
|
|
37
|
+
export declare function DomainTransferTldInformationResultDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTransferTldInformationResultDto;
|
|
38
|
+
export declare function DomainTransferTldInformationResultDtoToJSON(json: any): DomainTransferTldInformationResultDto;
|
|
39
|
+
export declare function DomainTransferTldInformationResultDtoToJSONTyped(value?: DomainTransferTldInformationResultDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDomainTransferTldInformationResultDto = instanceOfDomainTransferTldInformationResultDto;
|
|
17
|
+
exports.DomainTransferTldInformationResultDtoFromJSON = DomainTransferTldInformationResultDtoFromJSON;
|
|
18
|
+
exports.DomainTransferTldInformationResultDtoFromJSONTyped = DomainTransferTldInformationResultDtoFromJSONTyped;
|
|
19
|
+
exports.DomainTransferTldInformationResultDtoToJSON = DomainTransferTldInformationResultDtoToJSON;
|
|
20
|
+
exports.DomainTransferTldInformationResultDtoToJSONTyped = DomainTransferTldInformationResultDtoToJSONTyped;
|
|
21
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the DomainTransferTldInformationResultDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfDomainTransferTldInformationResultDto(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('transferPrice' in value) || value['transferPrice'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function DomainTransferTldInformationResultDtoFromJSON(json) {
|
|
33
|
+
return DomainTransferTldInformationResultDtoFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function DomainTransferTldInformationResultDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'transferPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['transferPrice']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function DomainTransferTldInformationResultDtoToJSON(json) {
|
|
45
|
+
return DomainTransferTldInformationResultDtoToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function DomainTransferTldInformationResultDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'name': value['name'],
|
|
54
|
+
'transferPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['transferPrice']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -102,6 +102,7 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
|
|
|
102
102
|
readonly AFFILIATE_PROGRAM: "AFFILIATE_PROGRAM";
|
|
103
103
|
readonly DOMAIN_AFFILIATE_PROGRAM: "DOMAIN_AFFILIATE_PROGRAM";
|
|
104
104
|
readonly SELLER_STATS_DASHBOARD: "SELLER_STATS_DASHBOARD";
|
|
105
|
+
readonly SELLER_TRANSFER_COSTS_PAYMENT: "SELLER_TRANSFER_COSTS_PAYMENT";
|
|
105
106
|
};
|
|
106
107
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
107
108
|
/**
|
package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js
CHANGED
|
@@ -38,7 +38,8 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
|
|
|
38
38
|
LEAD_PRICE_NEGOTIATOR_AI_AGENT: 'LEAD_PRICE_NEGOTIATOR_AI_AGENT',
|
|
39
39
|
AFFILIATE_PROGRAM: 'AFFILIATE_PROGRAM',
|
|
40
40
|
DOMAIN_AFFILIATE_PROGRAM: 'DOMAIN_AFFILIATE_PROGRAM',
|
|
41
|
-
SELLER_STATS_DASHBOARD: 'SELLER_STATS_DASHBOARD'
|
|
41
|
+
SELLER_STATS_DASHBOARD: 'SELLER_STATS_DASHBOARD',
|
|
42
|
+
SELLER_TRANSFER_COSTS_PAYMENT: 'SELLER_TRANSFER_COSTS_PAYMENT'
|
|
42
43
|
};
|
|
43
44
|
/**
|
|
44
45
|
* Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
|
|
@@ -130,6 +130,12 @@ export interface WithSettingsInner {
|
|
|
130
130
|
* @memberof WithSettingsInner
|
|
131
131
|
*/
|
|
132
132
|
domainAffiliate: AccountSettingsAffiliateDto;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {number}
|
|
136
|
+
* @memberof WithSettingsInner
|
|
137
|
+
*/
|
|
138
|
+
transferCostPaymentMaxPercentage: number;
|
|
133
139
|
}
|
|
134
140
|
/**
|
|
135
141
|
* Check if a given object implements the WithSettingsInner interface.
|
|
@@ -65,6 +65,8 @@ function instanceOfWithSettingsInner(value) {
|
|
|
65
65
|
return false;
|
|
66
66
|
if (!('domainAffiliate' in value) || value['domainAffiliate'] === undefined)
|
|
67
67
|
return false;
|
|
68
|
+
if (!('transferCostPaymentMaxPercentage' in value) || value['transferCostPaymentMaxPercentage'] === undefined)
|
|
69
|
+
return false;
|
|
68
70
|
return true;
|
|
69
71
|
}
|
|
70
72
|
function WithSettingsInnerFromJSON(json) {
|
|
@@ -93,6 +95,7 @@ function WithSettingsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
93
95
|
'leadPriceNegotiatorAiAgent': (0, LeadPriceNegotiatorAiAgentConfigurationDto_1.LeadPriceNegotiatorAiAgentConfigurationDtoFromJSON)(json['leadPriceNegotiatorAiAgent']),
|
|
94
96
|
'affiliate': (0, AccountSettingsAffiliateDto_1.AccountSettingsAffiliateDtoFromJSON)(json['affiliate']),
|
|
95
97
|
'domainAffiliate': (0, AccountSettingsAffiliateDto_1.AccountSettingsAffiliateDtoFromJSON)(json['domainAffiliate']),
|
|
98
|
+
'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'],
|
|
96
99
|
};
|
|
97
100
|
}
|
|
98
101
|
function WithSettingsInnerToJSON(json) {
|
|
@@ -122,5 +125,6 @@ function WithSettingsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
|
122
125
|
'leadPriceNegotiatorAiAgent': (0, LeadPriceNegotiatorAiAgentConfigurationDto_1.LeadPriceNegotiatorAiAgentConfigurationDtoToJSON)(value['leadPriceNegotiatorAiAgent']),
|
|
123
126
|
'affiliate': (0, AccountSettingsAffiliateDto_1.AccountSettingsAffiliateDtoToJSON)(value['affiliate']),
|
|
124
127
|
'domainAffiliate': (0, AccountSettingsAffiliateDto_1.AccountSettingsAffiliateDtoToJSON)(value['domainAffiliate']),
|
|
128
|
+
'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
|
|
125
129
|
};
|
|
126
130
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -105,6 +105,8 @@ export * from './DomainTransferDto';
|
|
|
105
105
|
export * from './DomainTransferOrderDto';
|
|
106
106
|
export * from './DomainTransferSellerAccountDto';
|
|
107
107
|
export * from './DomainTransferSubscriptionDto';
|
|
108
|
+
export * from './DomainTransferTldInformationDto';
|
|
109
|
+
export * from './DomainTransferTldInformationResultDto';
|
|
108
110
|
export * from './DomainTransferWorkflowDto';
|
|
109
111
|
export * from './DomainUrlDto';
|
|
110
112
|
export * from './EppBatchUpdateInput';
|
package/dist/models/index.js
CHANGED
|
@@ -123,6 +123,8 @@ __exportStar(require("./DomainTransferDto"), exports);
|
|
|
123
123
|
__exportStar(require("./DomainTransferOrderDto"), exports);
|
|
124
124
|
__exportStar(require("./DomainTransferSellerAccountDto"), exports);
|
|
125
125
|
__exportStar(require("./DomainTransferSubscriptionDto"), exports);
|
|
126
|
+
__exportStar(require("./DomainTransferTldInformationDto"), exports);
|
|
127
|
+
__exportStar(require("./DomainTransferTldInformationResultDto"), exports);
|
|
126
128
|
__exportStar(require("./DomainTransferWorkflowDto"), exports);
|
|
127
129
|
__exportStar(require("./DomainUrlDto"), exports);
|
|
128
130
|
__exportStar(require("./EppBatchUpdateInput"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
DomainTransferTldInformationDto,
|
|
19
|
+
ThrottlerException,
|
|
20
|
+
ValidationException,
|
|
21
|
+
} from '../models/index';
|
|
22
|
+
import {
|
|
23
|
+
DomainTransferTldInformationDtoFromJSON,
|
|
24
|
+
DomainTransferTldInformationDtoToJSON,
|
|
25
|
+
ThrottlerExceptionFromJSON,
|
|
26
|
+
ThrottlerExceptionToJSON,
|
|
27
|
+
ValidationExceptionFromJSON,
|
|
28
|
+
ValidationExceptionToJSON,
|
|
29
|
+
} from '../models/index';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export class DomainTransfersApi extends runtime.BaseAPI {
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
async getDomainTransferTldsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTransferTldInformationDto>> {
|
|
40
|
+
const queryParameters: any = {};
|
|
41
|
+
|
|
42
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
43
|
+
|
|
44
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
45
|
+
const token = this.configuration.accessToken;
|
|
46
|
+
const tokenString = await token("bearer", []);
|
|
47
|
+
|
|
48
|
+
if (tokenString) {
|
|
49
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const response = await this.request({
|
|
53
|
+
path: `/private/domain-transfers/tlds`,
|
|
54
|
+
method: 'GET',
|
|
55
|
+
headers: headerParameters,
|
|
56
|
+
query: queryParameters,
|
|
57
|
+
}, initOverrides);
|
|
58
|
+
|
|
59
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DomainTransferTldInformationDtoFromJSON(jsonValue));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
async getDomainTransferTlds(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTransferTldInformationDto> {
|
|
66
|
+
const response = await this.getDomainTransferTldsRaw(initOverrides);
|
|
67
|
+
return await response.value();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './AdminApi';
|
|
|
6
6
|
export * from './BankAccountsApi';
|
|
7
7
|
export * from './BuyersApi';
|
|
8
8
|
export * from './BuyersPublicApi';
|
|
9
|
+
export * from './DomainTransfersApi';
|
|
9
10
|
export * from './DomainsApi';
|
|
10
11
|
export * from './DomainsPublicApi';
|
|
11
12
|
export * from './EppApi';
|
|
@@ -122,6 +122,12 @@ export interface AccountSettingsDto {
|
|
|
122
122
|
* @memberof AccountSettingsDto
|
|
123
123
|
*/
|
|
124
124
|
alias: AccountSettingsAliasDto;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {number}
|
|
128
|
+
* @memberof AccountSettingsDto
|
|
129
|
+
*/
|
|
130
|
+
transferCostPaymentMaxPercentage: number;
|
|
125
131
|
}
|
|
126
132
|
|
|
127
133
|
/**
|
|
@@ -138,6 +144,7 @@ export function instanceOfAccountSettingsDto(value: object): value is AccountSet
|
|
|
138
144
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
139
145
|
if (!('avatar' in value) || value['avatar'] === undefined) return false;
|
|
140
146
|
if (!('alias' in value) || value['alias'] === undefined) return false;
|
|
147
|
+
if (!('transferCostPaymentMaxPercentage' in value) || value['transferCostPaymentMaxPercentage'] === undefined) return false;
|
|
141
148
|
return true;
|
|
142
149
|
}
|
|
143
150
|
|
|
@@ -161,6 +168,7 @@ export function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
161
168
|
'description': json['description'],
|
|
162
169
|
'avatar': json['avatar'],
|
|
163
170
|
'alias': AccountSettingsAliasDtoFromJSON(json['alias']),
|
|
171
|
+
'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'],
|
|
164
172
|
};
|
|
165
173
|
}
|
|
166
174
|
|
|
@@ -185,6 +193,7 @@ export function AccountSettingsDtoToJSONTyped(value?: AccountSettingsDto | null,
|
|
|
185
193
|
'description': value['description'],
|
|
186
194
|
'avatar': value['avatar'],
|
|
187
195
|
'alias': AccountSettingsAliasDtoToJSON(value['alias']),
|
|
196
|
+
'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
|
|
188
197
|
};
|
|
189
198
|
}
|
|
190
199
|
|
|
@@ -128,6 +128,12 @@ export interface AccountSettingsInput {
|
|
|
128
128
|
* @memberof AccountSettingsInput
|
|
129
129
|
*/
|
|
130
130
|
alias?: AccountAliasInput;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {number}
|
|
134
|
+
* @memberof AccountSettingsInput
|
|
135
|
+
*/
|
|
136
|
+
transferCostPaymentMaxPercentage?: number;
|
|
131
137
|
}
|
|
132
138
|
|
|
133
139
|
/**
|
|
@@ -158,6 +164,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
158
164
|
'leadPriceNegotiatorAiAgent': json['leadPriceNegotiatorAiAgent'] == null ? undefined : LeadPriceNegotiatorAiAgentConfigurationInputFromJSON(json['leadPriceNegotiatorAiAgent']),
|
|
159
165
|
'timezone': json['timezone'] == null ? undefined : json['timezone'],
|
|
160
166
|
'alias': json['alias'] == null ? undefined : AccountAliasInputFromJSON(json['alias']),
|
|
167
|
+
'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'] == null ? undefined : json['transferCostPaymentMaxPercentage'],
|
|
161
168
|
};
|
|
162
169
|
}
|
|
163
170
|
|
|
@@ -183,6 +190,7 @@ export function AccountSettingsInputToJSONTyped(value?: AccountSettingsInput | n
|
|
|
183
190
|
'leadPriceNegotiatorAiAgent': LeadPriceNegotiatorAiAgentConfigurationInputToJSON(value['leadPriceNegotiatorAiAgent']),
|
|
184
191
|
'timezone': value['timezone'],
|
|
185
192
|
'alias': AccountAliasInputToJSON(value['alias']),
|
|
193
|
+
'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
|
|
186
194
|
};
|
|
187
195
|
}
|
|
188
196
|
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { DomainTransferTldInformationResultDto } from './DomainTransferTldInformationResultDto';
|
|
17
|
+
import {
|
|
18
|
+
DomainTransferTldInformationResultDtoFromJSON,
|
|
19
|
+
DomainTransferTldInformationResultDtoFromJSONTyped,
|
|
20
|
+
DomainTransferTldInformationResultDtoToJSON,
|
|
21
|
+
DomainTransferTldInformationResultDtoToJSONTyped,
|
|
22
|
+
} from './DomainTransferTldInformationResultDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DomainTransferTldInformationDto
|
|
28
|
+
*/
|
|
29
|
+
export interface DomainTransferTldInformationDto {
|
|
30
|
+
/**
|
|
31
|
+
* The exchange rates
|
|
32
|
+
* @type {{ [key: string]: number; }}
|
|
33
|
+
* @memberof DomainTransferTldInformationDto
|
|
34
|
+
*/
|
|
35
|
+
rates: { [key: string]: number; };
|
|
36
|
+
/**
|
|
37
|
+
* The TLD list
|
|
38
|
+
* @type {Array<DomainTransferTldInformationResultDto>}
|
|
39
|
+
* @memberof DomainTransferTldInformationDto
|
|
40
|
+
*/
|
|
41
|
+
results: Array<DomainTransferTldInformationResultDto>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the DomainTransferTldInformationDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfDomainTransferTldInformationDto(value: object): value is DomainTransferTldInformationDto {
|
|
48
|
+
if (!('rates' in value) || value['rates'] === undefined) return false;
|
|
49
|
+
if (!('results' in value) || value['results'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function DomainTransferTldInformationDtoFromJSON(json: any): DomainTransferTldInformationDto {
|
|
54
|
+
return DomainTransferTldInformationDtoFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function DomainTransferTldInformationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTransferTldInformationDto {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'rates': json['rates'],
|
|
64
|
+
'results': ((json['results'] as Array<any>).map(DomainTransferTldInformationResultDtoFromJSON)),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function DomainTransferTldInformationDtoToJSON(json: any): DomainTransferTldInformationDto {
|
|
69
|
+
return DomainTransferTldInformationDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function DomainTransferTldInformationDtoToJSONTyped(value?: DomainTransferTldInformationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'rates': value['rates'],
|
|
80
|
+
'results': ((value['results'] as Array<any>).map(DomainTransferTldInformationResultDtoToJSON)),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
MoneyDtoToJSONTyped,
|
|
22
|
+
} from './MoneyDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DomainTransferTldInformationResultDto
|
|
28
|
+
*/
|
|
29
|
+
export interface DomainTransferTldInformationResultDto {
|
|
30
|
+
/**
|
|
31
|
+
* The TLD name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DomainTransferTldInformationResultDto
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* The transfer price
|
|
38
|
+
* @type {MoneyDto}
|
|
39
|
+
* @memberof DomainTransferTldInformationResultDto
|
|
40
|
+
*/
|
|
41
|
+
transferPrice: MoneyDto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the DomainTransferTldInformationResultDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfDomainTransferTldInformationResultDto(value: object): value is DomainTransferTldInformationResultDto {
|
|
48
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
49
|
+
if (!('transferPrice' in value) || value['transferPrice'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function DomainTransferTldInformationResultDtoFromJSON(json: any): DomainTransferTldInformationResultDto {
|
|
54
|
+
return DomainTransferTldInformationResultDtoFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function DomainTransferTldInformationResultDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTransferTldInformationResultDto {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'transferPrice': MoneyDtoFromJSON(json['transferPrice']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function DomainTransferTldInformationResultDtoToJSON(json: any): DomainTransferTldInformationResultDto {
|
|
69
|
+
return DomainTransferTldInformationResultDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function DomainTransferTldInformationResultDtoToJSONTyped(value?: DomainTransferTldInformationResultDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'name': value['name'],
|
|
80
|
+
'transferPrice': MoneyDtoToJSON(value['transferPrice']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts
CHANGED
|
@@ -144,7 +144,8 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
|
|
|
144
144
|
LEAD_PRICE_NEGOTIATOR_AI_AGENT: 'LEAD_PRICE_NEGOTIATOR_AI_AGENT',
|
|
145
145
|
AFFILIATE_PROGRAM: 'AFFILIATE_PROGRAM',
|
|
146
146
|
DOMAIN_AFFILIATE_PROGRAM: 'DOMAIN_AFFILIATE_PROGRAM',
|
|
147
|
-
SELLER_STATS_DASHBOARD: 'SELLER_STATS_DASHBOARD'
|
|
147
|
+
SELLER_STATS_DASHBOARD: 'SELLER_STATS_DASHBOARD',
|
|
148
|
+
SELLER_TRANSFER_COSTS_PAYMENT: 'SELLER_TRANSFER_COSTS_PAYMENT'
|
|
148
149
|
} as const;
|
|
149
150
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
150
151
|
|
|
@@ -177,6 +177,12 @@ export interface WithSettingsInner {
|
|
|
177
177
|
* @memberof WithSettingsInner
|
|
178
178
|
*/
|
|
179
179
|
domainAffiliate: AccountSettingsAffiliateDto;
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
* @type {number}
|
|
183
|
+
* @memberof WithSettingsInner
|
|
184
|
+
*/
|
|
185
|
+
transferCostPaymentMaxPercentage: number;
|
|
180
186
|
}
|
|
181
187
|
|
|
182
188
|
/**
|
|
@@ -201,6 +207,7 @@ export function instanceOfWithSettingsInner(value: object): value is WithSetting
|
|
|
201
207
|
if (!('leadPriceNegotiatorAiAgent' in value) || value['leadPriceNegotiatorAiAgent'] === undefined) return false;
|
|
202
208
|
if (!('affiliate' in value) || value['affiliate'] === undefined) return false;
|
|
203
209
|
if (!('domainAffiliate' in value) || value['domainAffiliate'] === undefined) return false;
|
|
210
|
+
if (!('transferCostPaymentMaxPercentage' in value) || value['transferCostPaymentMaxPercentage'] === undefined) return false;
|
|
204
211
|
return true;
|
|
205
212
|
}
|
|
206
213
|
|
|
@@ -232,6 +239,7 @@ export function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
232
239
|
'leadPriceNegotiatorAiAgent': LeadPriceNegotiatorAiAgentConfigurationDtoFromJSON(json['leadPriceNegotiatorAiAgent']),
|
|
233
240
|
'affiliate': AccountSettingsAffiliateDtoFromJSON(json['affiliate']),
|
|
234
241
|
'domainAffiliate': AccountSettingsAffiliateDtoFromJSON(json['domainAffiliate']),
|
|
242
|
+
'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'],
|
|
235
243
|
};
|
|
236
244
|
}
|
|
237
245
|
|
|
@@ -264,6 +272,7 @@ export function WithSettingsInnerToJSONTyped(value?: WithSettingsInner | null, i
|
|
|
264
272
|
'leadPriceNegotiatorAiAgent': LeadPriceNegotiatorAiAgentConfigurationDtoToJSON(value['leadPriceNegotiatorAiAgent']),
|
|
265
273
|
'affiliate': AccountSettingsAffiliateDtoToJSON(value['affiliate']),
|
|
266
274
|
'domainAffiliate': AccountSettingsAffiliateDtoToJSON(value['domainAffiliate']),
|
|
275
|
+
'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
|
|
267
276
|
};
|
|
268
277
|
}
|
|
269
278
|
|
package/src/models/index.ts
CHANGED
|
@@ -107,6 +107,8 @@ export * from './DomainTransferDto';
|
|
|
107
107
|
export * from './DomainTransferOrderDto';
|
|
108
108
|
export * from './DomainTransferSellerAccountDto';
|
|
109
109
|
export * from './DomainTransferSubscriptionDto';
|
|
110
|
+
export * from './DomainTransferTldInformationDto';
|
|
111
|
+
export * from './DomainTransferTldInformationResultDto';
|
|
110
112
|
export * from './DomainTransferWorkflowDto';
|
|
111
113
|
export * from './DomainUrlDto';
|
|
112
114
|
export * from './EppBatchUpdateInput';
|