@randock/nameshift-api-client 0.0.111 → 0.0.113
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 +4 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.js +1 -1
- package/dist/apis/AdminApi.d.ts +37 -2
- package/dist/apis/AdminApi.js +166 -3
- package/dist/apis/DomainsApi.d.ts +3 -3
- package/dist/apis/DomainsApi.js +1 -1
- package/dist/apis/LeadsApi.d.ts +3 -3
- package/dist/apis/LeadsApi.js +1 -1
- package/dist/models/AccountSettingsDto.d.ts +50 -0
- package/dist/models/AccountSettingsDto.js +59 -0
- package/dist/models/AdminAccountSettingsInput.d.ts +31 -0
- package/dist/models/AdminAccountSettingsInput.js +44 -0
- package/dist/models/DomainTransferDetailSellerPayoutInvoiceDto.d.ts +54 -0
- package/dist/models/DomainTransferDetailSellerPayoutInvoiceDto.js +65 -0
- package/dist/models/DomainTransferDetailsDto.d.ts +7 -0
- package/dist/models/DomainTransferDetailsDto.js +5 -0
- package/dist/models/List200Response.d.ts +3 -3
- package/dist/models/List200Response.js +3 -3
- package/dist/models/List200Response1.d.ts +3 -3
- package/dist/models/List200Response1.js +3 -3
- package/dist/models/ThrottlerException.d.ts +43 -0
- package/dist/models/ThrottlerException.js +54 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +4 -1
- package/src/apis/AccountsPublicApi.ts +3 -0
- package/src/apis/AdminApi.ts +166 -5
- package/src/apis/BuyersApi.ts +3 -0
- package/src/apis/BuyersPublicApi.ts +3 -0
- package/src/apis/DomainsApi.ts +9 -6
- package/src/apis/DomainsPublicApi.ts +3 -0
- package/src/apis/LeadsApi.ts +9 -6
- package/src/apis/LeadsPublicApi.ts +3 -0
- package/src/apis/OrdersPublicApi.ts +3 -0
- package/src/apis/StripePublicApi.ts +3 -0
- package/src/apis/UsersApi.ts +3 -0
- package/src/apis/UsersPublicApi.ts +3 -0
- package/src/models/AccountSettingsDto.ts +95 -0
- package/src/models/AdminAccountSettingsInput.ts +60 -0
- package/src/models/DomainTransferDetailSellerPayoutInvoiceDto.ts +99 -0
- package/src/models/DomainTransferDetailsDto.ts +15 -0
- package/src/models/List200Response.ts +9 -9
- package/src/models/List200Response1.ts +9 -9
- package/src/models/ThrottlerException.ts +79 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,65 @@
|
|
|
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.DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfDomainTransferDetailSellerPayoutInvoiceDto = instanceOfDomainTransferDetailSellerPayoutInvoiceDto;
|
|
18
|
+
exports.DomainTransferDetailSellerPayoutInvoiceDtoFromJSON = DomainTransferDetailSellerPayoutInvoiceDtoFromJSON;
|
|
19
|
+
exports.DomainTransferDetailSellerPayoutInvoiceDtoFromJSONTyped = DomainTransferDetailSellerPayoutInvoiceDtoFromJSONTyped;
|
|
20
|
+
exports.DomainTransferDetailSellerPayoutInvoiceDtoToJSON = DomainTransferDetailSellerPayoutInvoiceDtoToJSON;
|
|
21
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum = {
|
|
26
|
+
OPEN: 'open',
|
|
27
|
+
PAID: 'paid',
|
|
28
|
+
CANCELLED: 'cancelled',
|
|
29
|
+
REFUNDED: 'refunded'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DomainTransferDetailSellerPayoutInvoiceDto interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfDomainTransferDetailSellerPayoutInvoiceDto(value) {
|
|
35
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('price' in value) || value['price'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('transactionStatus' in value) || value['transactionStatus'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function DomainTransferDetailSellerPayoutInvoiceDtoFromJSON(json) {
|
|
44
|
+
return DomainTransferDetailSellerPayoutInvoiceDtoFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function DomainTransferDetailSellerPayoutInvoiceDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'price': (0, MoneyDto_1.MoneyDtoFromJSON)(json['price']),
|
|
53
|
+
'transactionStatus': json['transactionStatus'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function DomainTransferDetailSellerPayoutInvoiceDtoToJSON(value) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'price': (0, MoneyDto_1.MoneyDtoToJSON)(value['price']),
|
|
63
|
+
'transactionStatus': value['transactionStatus'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { DomainTransferDetailsOrderDto } from './DomainTransferDetailsOrderDto';
|
|
13
|
+
import type { DomainTransferDetailSellerPayoutInvoiceDto } from './DomainTransferDetailSellerPayoutInvoiceDto';
|
|
13
14
|
import type { DomainTransferDetailsValidationDto } from './DomainTransferDetailsValidationDto';
|
|
14
15
|
import type { DomainTransferDetailWorkflowStepDto } from './DomainTransferDetailWorkflowStepDto';
|
|
15
16
|
import type { DomainTransferDetailsAuthCodeDto } from './DomainTransferDetailsAuthCodeDto';
|
|
@@ -74,6 +75,12 @@ export interface DomainTransferDetailsDto {
|
|
|
74
75
|
* @memberof DomainTransferDetailsDto
|
|
75
76
|
*/
|
|
76
77
|
workflow: Array<DomainTransferDetailWorkflowStepDto>;
|
|
78
|
+
/**
|
|
79
|
+
* The domain seller payouts invoices
|
|
80
|
+
* @type {Array<DomainTransferDetailSellerPayoutInvoiceDto>}
|
|
81
|
+
* @memberof DomainTransferDetailsDto
|
|
82
|
+
*/
|
|
83
|
+
sellerPayoutInvoices: Array<DomainTransferDetailSellerPayoutInvoiceDto>;
|
|
77
84
|
}
|
|
78
85
|
/**
|
|
79
86
|
* @export
|
|
@@ -19,6 +19,7 @@ exports.DomainTransferDetailsDtoFromJSON = DomainTransferDetailsDtoFromJSON;
|
|
|
19
19
|
exports.DomainTransferDetailsDtoFromJSONTyped = DomainTransferDetailsDtoFromJSONTyped;
|
|
20
20
|
exports.DomainTransferDetailsDtoToJSON = DomainTransferDetailsDtoToJSON;
|
|
21
21
|
var DomainTransferDetailsOrderDto_1 = require("./DomainTransferDetailsOrderDto");
|
|
22
|
+
var DomainTransferDetailSellerPayoutInvoiceDto_1 = require("./DomainTransferDetailSellerPayoutInvoiceDto");
|
|
22
23
|
var DomainTransferDetailsValidationDto_1 = require("./DomainTransferDetailsValidationDto");
|
|
23
24
|
var DomainTransferDetailWorkflowStepDto_1 = require("./DomainTransferDetailWorkflowStepDto");
|
|
24
25
|
var DomainTransferDetailsAuthCodeDto_1 = require("./DomainTransferDetailsAuthCodeDto");
|
|
@@ -55,6 +56,8 @@ function instanceOfDomainTransferDetailsDto(value) {
|
|
|
55
56
|
return false;
|
|
56
57
|
if (!('workflow' in value) || value['workflow'] === undefined)
|
|
57
58
|
return false;
|
|
59
|
+
if (!('sellerPayoutInvoices' in value) || value['sellerPayoutInvoices'] === undefined)
|
|
60
|
+
return false;
|
|
58
61
|
return true;
|
|
59
62
|
}
|
|
60
63
|
function DomainTransferDetailsDtoFromJSON(json) {
|
|
@@ -74,6 +77,7 @@ function DomainTransferDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
77
|
'validations': (json['validations'].map(DomainTransferDetailsValidationDto_1.DomainTransferDetailsValidationDtoFromJSON)),
|
|
75
78
|
'createdAt': (new Date(json['createdAt'])),
|
|
76
79
|
'workflow': (json['workflow'].map(DomainTransferDetailWorkflowStepDto_1.DomainTransferDetailWorkflowStepDtoFromJSON)),
|
|
80
|
+
'sellerPayoutInvoices': (json['sellerPayoutInvoices'].map(DomainTransferDetailSellerPayoutInvoiceDto_1.DomainTransferDetailSellerPayoutInvoiceDtoFromJSON)),
|
|
77
81
|
};
|
|
78
82
|
}
|
|
79
83
|
function DomainTransferDetailsDtoToJSON(value) {
|
|
@@ -90,5 +94,6 @@ function DomainTransferDetailsDtoToJSON(value) {
|
|
|
90
94
|
'validations': (value['validations'].map(DomainTransferDetailsValidationDto_1.DomainTransferDetailsValidationDtoToJSON)),
|
|
91
95
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
92
96
|
'workflow': (value['workflow'].map(DomainTransferDetailWorkflowStepDto_1.DomainTransferDetailWorkflowStepDtoToJSON)),
|
|
97
|
+
'sellerPayoutInvoices': (value['sellerPayoutInvoices'].map(DomainTransferDetailSellerPayoutInvoiceDto_1.DomainTransferDetailSellerPayoutInvoiceDtoToJSON)),
|
|
93
98
|
};
|
|
94
99
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
-
import type {
|
|
13
|
+
import type { IntersectionLeadDtoWithListFieldsDto } from './IntersectionLeadDtoWithListFieldsDto';
|
|
14
14
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -20,10 +20,10 @@ import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
|
20
20
|
export interface List200Response {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* @type {Array<
|
|
23
|
+
* @type {Array<IntersectionLeadDtoWithListFieldsDto>}
|
|
24
24
|
* @memberof List200Response
|
|
25
25
|
*/
|
|
26
|
-
data: Array<
|
|
26
|
+
data: Array<IntersectionLeadDtoWithListFieldsDto>;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @type {PaginateResponseMeta}
|
|
@@ -18,7 +18,7 @@ exports.List200ResponseFromJSON = List200ResponseFromJSON;
|
|
|
18
18
|
exports.List200ResponseFromJSONTyped = List200ResponseFromJSONTyped;
|
|
19
19
|
exports.List200ResponseToJSON = List200ResponseToJSON;
|
|
20
20
|
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
21
|
-
var
|
|
21
|
+
var IntersectionLeadDtoWithListFieldsDto_1 = require("./IntersectionLeadDtoWithListFieldsDto");
|
|
22
22
|
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the List200Response interface.
|
|
@@ -40,7 +40,7 @@ function List200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
return json;
|
|
41
41
|
}
|
|
42
42
|
return {
|
|
43
|
-
'data': (json['data'].map(
|
|
43
|
+
'data': (json['data'].map(IntersectionLeadDtoWithListFieldsDto_1.IntersectionLeadDtoWithListFieldsDtoFromJSON)),
|
|
44
44
|
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
45
45
|
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
46
46
|
};
|
|
@@ -50,7 +50,7 @@ function List200ResponseToJSON(value) {
|
|
|
50
50
|
return value;
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
-
'data': (value['data'].map(
|
|
53
|
+
'data': (value['data'].map(IntersectionLeadDtoWithListFieldsDto_1.IntersectionLeadDtoWithListFieldsDtoToJSON)),
|
|
54
54
|
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
55
55
|
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
56
56
|
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
-
import type {
|
|
13
|
+
import type { IntersectionDomainDtoWithDomainUrlDto } from './IntersectionDomainDtoWithDomainUrlDto';
|
|
14
14
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -20,10 +20,10 @@ import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
|
20
20
|
export interface List200Response1 {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* @type {Array<
|
|
23
|
+
* @type {Array<IntersectionDomainDtoWithDomainUrlDto>}
|
|
24
24
|
* @memberof List200Response1
|
|
25
25
|
*/
|
|
26
|
-
data: Array<
|
|
26
|
+
data: Array<IntersectionDomainDtoWithDomainUrlDto>;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @type {PaginateResponseMeta}
|
|
@@ -18,7 +18,7 @@ exports.List200Response1FromJSON = List200Response1FromJSON;
|
|
|
18
18
|
exports.List200Response1FromJSONTyped = List200Response1FromJSONTyped;
|
|
19
19
|
exports.List200Response1ToJSON = List200Response1ToJSON;
|
|
20
20
|
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
21
|
-
var
|
|
21
|
+
var IntersectionDomainDtoWithDomainUrlDto_1 = require("./IntersectionDomainDtoWithDomainUrlDto");
|
|
22
22
|
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the List200Response1 interface.
|
|
@@ -40,7 +40,7 @@ function List200Response1FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
return json;
|
|
41
41
|
}
|
|
42
42
|
return {
|
|
43
|
-
'data': (json['data'].map(
|
|
43
|
+
'data': (json['data'].map(IntersectionDomainDtoWithDomainUrlDto_1.IntersectionDomainDtoWithDomainUrlDtoFromJSON)),
|
|
44
44
|
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
45
45
|
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
46
46
|
};
|
|
@@ -50,7 +50,7 @@ function List200Response1ToJSON(value) {
|
|
|
50
50
|
return value;
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
-
'data': (value['data'].map(
|
|
53
|
+
'data': (value['data'].map(IntersectionDomainDtoWithDomainUrlDto_1.IntersectionDomainDtoWithDomainUrlDtoToJSON)),
|
|
54
54
|
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
55
55
|
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
56
56
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ThrottlerException
|
|
16
|
+
*/
|
|
17
|
+
export interface ThrottlerException {
|
|
18
|
+
/**
|
|
19
|
+
* Exception name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ThrottlerException
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* http status code
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ThrottlerException
|
|
28
|
+
*/
|
|
29
|
+
statusCode: number;
|
|
30
|
+
/**
|
|
31
|
+
* error message
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ThrottlerException
|
|
34
|
+
*/
|
|
35
|
+
message: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ThrottlerException interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfThrottlerException(value: object): value is ThrottlerException;
|
|
41
|
+
export declare function ThrottlerExceptionFromJSON(json: any): ThrottlerException;
|
|
42
|
+
export declare function ThrottlerExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThrottlerException;
|
|
43
|
+
export declare function ThrottlerExceptionToJSON(value?: ThrottlerException | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfThrottlerException = instanceOfThrottlerException;
|
|
17
|
+
exports.ThrottlerExceptionFromJSON = ThrottlerExceptionFromJSON;
|
|
18
|
+
exports.ThrottlerExceptionFromJSONTyped = ThrottlerExceptionFromJSONTyped;
|
|
19
|
+
exports.ThrottlerExceptionToJSON = ThrottlerExceptionToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the ThrottlerException interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfThrottlerException(value) {
|
|
24
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function ThrottlerExceptionFromJSON(json) {
|
|
33
|
+
return ThrottlerExceptionFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function ThrottlerExceptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'statusCode': json['statusCode'],
|
|
42
|
+
'message': json['message'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function ThrottlerExceptionToJSON(value) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'statusCode': value['statusCode'],
|
|
52
|
+
'message': value['message'],
|
|
53
|
+
};
|
|
54
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './AccountDto';
|
|
2
2
|
export * from './AccountMetricsDto';
|
|
3
3
|
export * from './AccountPaymentProviderSessionDto';
|
|
4
|
+
export * from './AccountSettingsDto';
|
|
4
5
|
export * from './AccountSettingsInput';
|
|
5
6
|
export * from './AddressDto';
|
|
7
|
+
export * from './AdminAccountSettingsInput';
|
|
6
8
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
7
9
|
export * from './BadRequestException';
|
|
8
10
|
export * from './BatchReadBuyerLeadMessageInput';
|
|
@@ -30,6 +32,7 @@ export * from './DomainDto';
|
|
|
30
32
|
export * from './DomainSellerDto';
|
|
31
33
|
export * from './DomainStats';
|
|
32
34
|
export * from './DomainTransferAgentDto';
|
|
35
|
+
export * from './DomainTransferDetailSellerPayoutInvoiceDto';
|
|
33
36
|
export * from './DomainTransferDetailWorkflowStepActionDto';
|
|
34
37
|
export * from './DomainTransferDetailWorkflowStepDto';
|
|
35
38
|
export * from './DomainTransferDetailsAuthCodeDto';
|
|
@@ -108,6 +111,7 @@ export * from './SetDomainTransferConfirmationInput';
|
|
|
108
111
|
export * from './SetNewPasswordInput';
|
|
109
112
|
export * from './StoreBuyerLocaleInput';
|
|
110
113
|
export * from './StoreUserLocaleInput';
|
|
114
|
+
export * from './ThrottlerException';
|
|
111
115
|
export * from './UpdateDomainInput';
|
|
112
116
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
113
117
|
export * from './UpdateLeadInput';
|
package/dist/models/index.js
CHANGED
|
@@ -19,8 +19,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./AccountDto"), exports);
|
|
20
20
|
__exportStar(require("./AccountMetricsDto"), exports);
|
|
21
21
|
__exportStar(require("./AccountPaymentProviderSessionDto"), exports);
|
|
22
|
+
__exportStar(require("./AccountSettingsDto"), exports);
|
|
22
23
|
__exportStar(require("./AccountSettingsInput"), exports);
|
|
23
24
|
__exportStar(require("./AddressDto"), exports);
|
|
25
|
+
__exportStar(require("./AdminAccountSettingsInput"), exports);
|
|
24
26
|
__exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
|
|
25
27
|
__exportStar(require("./BadRequestException"), exports);
|
|
26
28
|
__exportStar(require("./BatchReadBuyerLeadMessageInput"), exports);
|
|
@@ -48,6 +50,7 @@ __exportStar(require("./DomainDto"), exports);
|
|
|
48
50
|
__exportStar(require("./DomainSellerDto"), exports);
|
|
49
51
|
__exportStar(require("./DomainStats"), exports);
|
|
50
52
|
__exportStar(require("./DomainTransferAgentDto"), exports);
|
|
53
|
+
__exportStar(require("./DomainTransferDetailSellerPayoutInvoiceDto"), exports);
|
|
51
54
|
__exportStar(require("./DomainTransferDetailWorkflowStepActionDto"), exports);
|
|
52
55
|
__exportStar(require("./DomainTransferDetailWorkflowStepDto"), exports);
|
|
53
56
|
__exportStar(require("./DomainTransferDetailsAuthCodeDto"), exports);
|
|
@@ -126,6 +129,7 @@ __exportStar(require("./SetDomainTransferConfirmationInput"), exports);
|
|
|
126
129
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
127
130
|
__exportStar(require("./StoreBuyerLocaleInput"), exports);
|
|
128
131
|
__exportStar(require("./StoreUserLocaleInput"), exports);
|
|
132
|
+
__exportStar(require("./ThrottlerException"), exports);
|
|
129
133
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
130
134
|
__exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
|
|
131
135
|
__exportStar(require("./UpdateLeadInput"), exports);
|
package/package.json
CHANGED
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
CreateAccountPaymentProviderInput,
|
|
21
21
|
IntersectionAccountDtoWithSettingsDto,
|
|
22
22
|
NotFoundException,
|
|
23
|
+
ThrottlerException,
|
|
23
24
|
ValidationException,
|
|
24
25
|
} from '../models/index';
|
|
25
26
|
import {
|
|
@@ -33,6 +34,8 @@ import {
|
|
|
33
34
|
IntersectionAccountDtoWithSettingsDtoToJSON,
|
|
34
35
|
NotFoundExceptionFromJSON,
|
|
35
36
|
NotFoundExceptionToJSON,
|
|
37
|
+
ThrottlerExceptionFromJSON,
|
|
38
|
+
ThrottlerExceptionToJSON,
|
|
36
39
|
ValidationExceptionFromJSON,
|
|
37
40
|
ValidationExceptionToJSON,
|
|
38
41
|
} from '../models/index';
|
|
@@ -215,7 +218,7 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
215
218
|
}
|
|
216
219
|
const response = await this.request({
|
|
217
220
|
path: `/private/accounts/{accountId}/settings`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
218
|
-
method: '
|
|
221
|
+
method: 'PATCH',
|
|
219
222
|
headers: headerParameters,
|
|
220
223
|
query: queryParameters,
|
|
221
224
|
body: AccountSettingsInputToJSON(requestParameters['accountSettingsInput']),
|
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
ConflictException,
|
|
19
19
|
RegisterAccountInput,
|
|
20
|
+
ThrottlerException,
|
|
20
21
|
ValidationException,
|
|
21
22
|
} from '../models/index';
|
|
22
23
|
import {
|
|
@@ -24,6 +25,8 @@ import {
|
|
|
24
25
|
ConflictExceptionToJSON,
|
|
25
26
|
RegisterAccountInputFromJSON,
|
|
26
27
|
RegisterAccountInputToJSON,
|
|
28
|
+
ThrottlerExceptionFromJSON,
|
|
29
|
+
ThrottlerExceptionToJSON,
|
|
27
30
|
ValidationExceptionFromJSON,
|
|
28
31
|
ValidationExceptionToJSON,
|
|
29
32
|
} from '../models/index';
|
package/src/apis/AdminApi.ts
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AccountSettingsDto,
|
|
19
|
+
AdminAccountSettingsInput,
|
|
18
20
|
AdminGetAllDomainTransfers200Response,
|
|
19
21
|
BadRequestException,
|
|
20
22
|
ChangeOrderStatusInput,
|
|
@@ -23,9 +25,14 @@ import type {
|
|
|
23
25
|
GetAllOwnedDomains200Response,
|
|
24
26
|
ListAccounts200Response,
|
|
25
27
|
NotFoundException,
|
|
28
|
+
ThrottlerException,
|
|
26
29
|
ValidationException,
|
|
27
30
|
} from '../models/index';
|
|
28
31
|
import {
|
|
32
|
+
AccountSettingsDtoFromJSON,
|
|
33
|
+
AccountSettingsDtoToJSON,
|
|
34
|
+
AdminAccountSettingsInputFromJSON,
|
|
35
|
+
AdminAccountSettingsInputToJSON,
|
|
29
36
|
AdminGetAllDomainTransfers200ResponseFromJSON,
|
|
30
37
|
AdminGetAllDomainTransfers200ResponseToJSON,
|
|
31
38
|
BadRequestExceptionFromJSON,
|
|
@@ -42,6 +49,8 @@ import {
|
|
|
42
49
|
ListAccounts200ResponseToJSON,
|
|
43
50
|
NotFoundExceptionFromJSON,
|
|
44
51
|
NotFoundExceptionToJSON,
|
|
52
|
+
ThrottlerExceptionFromJSON,
|
|
53
|
+
ThrottlerExceptionToJSON,
|
|
45
54
|
ValidationExceptionFromJSON,
|
|
46
55
|
ValidationExceptionToJSON,
|
|
47
56
|
} from '../models/index';
|
|
@@ -58,8 +67,12 @@ export interface AdminApiChangeOrderStatusRequest {
|
|
|
58
67
|
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
59
68
|
}
|
|
60
69
|
|
|
70
|
+
export interface AdminApiGetAccountSettingsRequest {
|
|
71
|
+
accountId: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
61
74
|
export interface AdminApiGetAdminDomainTransferDetailsRequest {
|
|
62
|
-
|
|
75
|
+
domainTransferId: string;
|
|
63
76
|
}
|
|
64
77
|
|
|
65
78
|
export interface AdminApiGetAdminExecuteDomainTransferStepActionRequest {
|
|
@@ -89,6 +102,16 @@ export interface AdminApiListAccountsRequest {
|
|
|
89
102
|
sortBy?: Array<string>;
|
|
90
103
|
}
|
|
91
104
|
|
|
105
|
+
export interface AdminApiPayDomainTransferSellerInvoiceRequest {
|
|
106
|
+
transferId: string;
|
|
107
|
+
invoiceId: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface AdminApiUpdateAccountSettingsRequest {
|
|
111
|
+
accountId: string;
|
|
112
|
+
adminAccountSettingsInput: AdminAccountSettingsInput;
|
|
113
|
+
}
|
|
114
|
+
|
|
92
115
|
/**
|
|
93
116
|
*
|
|
94
117
|
*/
|
|
@@ -194,14 +217,55 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
194
217
|
await this.changeOrderStatusRaw(requestParameters, initOverrides);
|
|
195
218
|
}
|
|
196
219
|
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
*/
|
|
223
|
+
async getAccountSettingsRaw(requestParameters: AdminApiGetAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountSettingsDto>> {
|
|
224
|
+
if (requestParameters['accountId'] == null) {
|
|
225
|
+
throw new runtime.RequiredError(
|
|
226
|
+
'accountId',
|
|
227
|
+
'Required parameter "accountId" was null or undefined when calling getAccountSettings().'
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
const queryParameters: any = {};
|
|
232
|
+
|
|
233
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
234
|
+
|
|
235
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
236
|
+
const token = this.configuration.accessToken;
|
|
237
|
+
const tokenString = await token("bearer", []);
|
|
238
|
+
|
|
239
|
+
if (tokenString) {
|
|
240
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
const response = await this.request({
|
|
244
|
+
path: `/admin/accounts/{accountId}/settings`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
245
|
+
method: 'GET',
|
|
246
|
+
headers: headerParameters,
|
|
247
|
+
query: queryParameters,
|
|
248
|
+
}, initOverrides);
|
|
249
|
+
|
|
250
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountSettingsDtoFromJSON(jsonValue));
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
*
|
|
255
|
+
*/
|
|
256
|
+
async getAccountSettings(requestParameters: AdminApiGetAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountSettingsDto> {
|
|
257
|
+
const response = await this.getAccountSettingsRaw(requestParameters, initOverrides);
|
|
258
|
+
return await response.value();
|
|
259
|
+
}
|
|
260
|
+
|
|
197
261
|
/**
|
|
198
262
|
*
|
|
199
263
|
*/
|
|
200
264
|
async getAdminDomainTransferDetailsRaw(requestParameters: AdminApiGetAdminDomainTransferDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTransferDetailsDto>> {
|
|
201
|
-
if (requestParameters['
|
|
265
|
+
if (requestParameters['domainTransferId'] == null) {
|
|
202
266
|
throw new runtime.RequiredError(
|
|
203
|
-
'
|
|
204
|
-
'Required parameter "
|
|
267
|
+
'domainTransferId',
|
|
268
|
+
'Required parameter "domainTransferId" was null or undefined when calling getAdminDomainTransferDetails().'
|
|
205
269
|
);
|
|
206
270
|
}
|
|
207
271
|
|
|
@@ -218,7 +282,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
218
282
|
}
|
|
219
283
|
}
|
|
220
284
|
const response = await this.request({
|
|
221
|
-
path: `/admin/domain-transfers/{
|
|
285
|
+
path: `/admin/domain-transfers/{domainTransferId}`.replace(`{${"domainTransferId"}}`, encodeURIComponent(String(requestParameters['domainTransferId']))),
|
|
222
286
|
method: 'GET',
|
|
223
287
|
headers: headerParameters,
|
|
224
288
|
query: queryParameters,
|
|
@@ -439,4 +503,101 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
439
503
|
return await response.value();
|
|
440
504
|
}
|
|
441
505
|
|
|
506
|
+
/**
|
|
507
|
+
*
|
|
508
|
+
*/
|
|
509
|
+
async payDomainTransferSellerInvoiceRaw(requestParameters: AdminApiPayDomainTransferSellerInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
510
|
+
if (requestParameters['transferId'] == null) {
|
|
511
|
+
throw new runtime.RequiredError(
|
|
512
|
+
'transferId',
|
|
513
|
+
'Required parameter "transferId" was null or undefined when calling payDomainTransferSellerInvoice().'
|
|
514
|
+
);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
if (requestParameters['invoiceId'] == null) {
|
|
518
|
+
throw new runtime.RequiredError(
|
|
519
|
+
'invoiceId',
|
|
520
|
+
'Required parameter "invoiceId" was null or undefined when calling payDomainTransferSellerInvoice().'
|
|
521
|
+
);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
const queryParameters: any = {};
|
|
525
|
+
|
|
526
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
527
|
+
|
|
528
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
529
|
+
const token = this.configuration.accessToken;
|
|
530
|
+
const tokenString = await token("bearer", []);
|
|
531
|
+
|
|
532
|
+
if (tokenString) {
|
|
533
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
const response = await this.request({
|
|
537
|
+
path: `/admin/domain-transfers/{transferId}/seller-invoices/{invoiceId}/pay`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))).replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
538
|
+
method: 'POST',
|
|
539
|
+
headers: headerParameters,
|
|
540
|
+
query: queryParameters,
|
|
541
|
+
}, initOverrides);
|
|
542
|
+
|
|
543
|
+
return new runtime.VoidApiResponse(response);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
*
|
|
548
|
+
*/
|
|
549
|
+
async payDomainTransferSellerInvoice(requestParameters: AdminApiPayDomainTransferSellerInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
550
|
+
await this.payDomainTransferSellerInvoiceRaw(requestParameters, initOverrides);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
555
|
+
*/
|
|
556
|
+
async updateAccountSettingsRaw(requestParameters: AdminApiUpdateAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
557
|
+
if (requestParameters['accountId'] == null) {
|
|
558
|
+
throw new runtime.RequiredError(
|
|
559
|
+
'accountId',
|
|
560
|
+
'Required parameter "accountId" was null or undefined when calling updateAccountSettings().'
|
|
561
|
+
);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
if (requestParameters['adminAccountSettingsInput'] == null) {
|
|
565
|
+
throw new runtime.RequiredError(
|
|
566
|
+
'adminAccountSettingsInput',
|
|
567
|
+
'Required parameter "adminAccountSettingsInput" was null or undefined when calling updateAccountSettings().'
|
|
568
|
+
);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
const queryParameters: any = {};
|
|
572
|
+
|
|
573
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
574
|
+
|
|
575
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
576
|
+
|
|
577
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
578
|
+
const token = this.configuration.accessToken;
|
|
579
|
+
const tokenString = await token("bearer", []);
|
|
580
|
+
|
|
581
|
+
if (tokenString) {
|
|
582
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
const response = await this.request({
|
|
586
|
+
path: `/admin/accounts/{accountId}/settings`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
587
|
+
method: 'PATCH',
|
|
588
|
+
headers: headerParameters,
|
|
589
|
+
query: queryParameters,
|
|
590
|
+
body: AdminAccountSettingsInputToJSON(requestParameters['adminAccountSettingsInput']),
|
|
591
|
+
}, initOverrides);
|
|
592
|
+
|
|
593
|
+
return new runtime.VoidApiResponse(response);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
*
|
|
598
|
+
*/
|
|
599
|
+
async updateAccountSettings(requestParameters: AdminApiUpdateAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
600
|
+
await this.updateAccountSettingsRaw(requestParameters, initOverrides);
|
|
601
|
+
}
|
|
602
|
+
|
|
442
603
|
}
|