@randock/nameshift-api-client 0.0.335 → 0.0.337
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 +13 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +15 -1
- package/dist/apis/AdminApi.js +63 -0
- package/dist/apis/AuctionsApi.d.ts +32 -0
- package/dist/apis/AuctionsApi.js +143 -0
- package/dist/apis/BuyersApi.d.ts +15 -1
- package/dist/apis/BuyersApi.js +67 -4
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AuctionListItemDto.d.ts +119 -0
- package/dist/models/AuctionListItemDto.js +114 -0
- package/dist/models/AuctionListItemDtoDomainInformation.d.ts +44 -0
- package/dist/models/AuctionListItemDtoDomainInformation.js +59 -0
- package/dist/models/AuctionListItemDtoSellerAccount.d.ts +50 -0
- package/dist/models/AuctionListItemDtoSellerAccount.js +63 -0
- package/dist/models/BuyerAuctionListItemDto.d.ts +125 -0
- package/dist/models/BuyerAuctionListItemDto.js +118 -0
- package/dist/models/BuyerAuctionListItemDtoDomainInformation.d.ts +44 -0
- package/dist/models/BuyerAuctionListItemDtoDomainInformation.js +59 -0
- package/dist/models/BuyerAuctionListItemDtoSellerAccount.d.ts +50 -0
- package/dist/models/BuyerAuctionListItemDtoSellerAccount.js +63 -0
- package/dist/models/BuyerSessionDto.d.ts +6 -0
- package/dist/models/BuyerSessionDto.js +4 -0
- package/dist/models/GetAllAuctions200Response.d.ts +47 -0
- package/dist/models/GetAllAuctions200Response.js +62 -0
- package/dist/models/GetAllAuctions200Response1.d.ts +47 -0
- package/dist/models/GetAllAuctions200Response1.js +62 -0
- package/dist/models/GetBuyerAuctions200Response.d.ts +47 -0
- package/dist/models/GetBuyerAuctions200Response.js +62 -0
- package/dist/models/SellerAuctionListItemDto.d.ts +119 -0
- package/dist/models/SellerAuctionListItemDto.js +114 -0
- package/dist/models/SellerAuctionListItemDtoDomainInformation.d.ts +44 -0
- package/dist/models/SellerAuctionListItemDtoDomainInformation.js +59 -0
- package/dist/models/SellerAuctionListItemDtoSellerAccount.d.ts +50 -0
- package/dist/models/SellerAuctionListItemDtoSellerAccount.js +63 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +60 -0
- package/src/apis/AuctionsApi.ts +90 -0
- package/src/apis/BuyersApi.ts +64 -4
- package/src/apis/index.ts +1 -0
- package/src/models/AuctionListItemDto.ts +217 -0
- package/src/models/AuctionListItemDtoDomainInformation.ts +84 -0
- package/src/models/AuctionListItemDtoSellerAccount.ts +93 -0
- package/src/models/BuyerAuctionListItemDto.ts +226 -0
- package/src/models/BuyerAuctionListItemDtoDomainInformation.ts +84 -0
- package/src/models/BuyerAuctionListItemDtoSellerAccount.ts +93 -0
- package/src/models/BuyerSessionDto.ts +9 -0
- package/src/models/GetAllAuctions200Response.ts +106 -0
- package/src/models/GetAllAuctions200Response1.ts +106 -0
- package/src/models/GetBuyerAuctions200Response.ts +106 -0
- package/src/models/SellerAuctionListItemDto.ts +217 -0
- package/src/models/SellerAuctionListItemDtoDomainInformation.ts +84 -0
- package/src/models/SellerAuctionListItemDtoSellerAccount.ts +93 -0
- package/src/models/index.ts +12 -0
|
@@ -0,0 +1,114 @@
|
|
|
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.SellerAuctionListItemDtoStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfSellerAuctionListItemDto = instanceOfSellerAuctionListItemDto;
|
|
18
|
+
exports.SellerAuctionListItemDtoFromJSON = SellerAuctionListItemDtoFromJSON;
|
|
19
|
+
exports.SellerAuctionListItemDtoFromJSONTyped = SellerAuctionListItemDtoFromJSONTyped;
|
|
20
|
+
exports.SellerAuctionListItemDtoToJSON = SellerAuctionListItemDtoToJSON;
|
|
21
|
+
exports.SellerAuctionListItemDtoToJSONTyped = SellerAuctionListItemDtoToJSONTyped;
|
|
22
|
+
var AuctionBidDto_1 = require("./AuctionBidDto");
|
|
23
|
+
var SellerAuctionListItemDtoSellerAccount_1 = require("./SellerAuctionListItemDtoSellerAccount");
|
|
24
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
25
|
+
var SellerAuctionListItemDtoDomainInformation_1 = require("./SellerAuctionListItemDtoDomainInformation");
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.SellerAuctionListItemDtoStatusEnum = {
|
|
30
|
+
SCHEDULED: 'scheduled',
|
|
31
|
+
ACTIVE: 'active',
|
|
32
|
+
ENDED: 'ended',
|
|
33
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
34
|
+
FINISHED: 'finished'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SellerAuctionListItemDto interface.
|
|
38
|
+
*/
|
|
39
|
+
function instanceOfSellerAuctionListItemDto(value) {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('minimumBid' in value) || value['minimumBid'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('reservePrice' in value) || value['reservePrice'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('highestBid' in value) || value['highestBid'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('startDate' in value) || value['startDate'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('endDate' in value) || value['endDate'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('finishedAt' in value) || value['finishedAt'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('domain' in value) || value['domain'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('sellerAccount' in value) || value['sellerAccount'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('numberOfBids' in value) || value['numberOfBids'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('bids' in value) || value['bids'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
function SellerAuctionListItemDtoFromJSON(json) {
|
|
69
|
+
return SellerAuctionListItemDtoFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
function SellerAuctionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'status': json['status'],
|
|
78
|
+
'minimumBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minimumBid']),
|
|
79
|
+
'reservePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['reservePrice']),
|
|
80
|
+
'highestBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['highestBid']),
|
|
81
|
+
'startDate': (new Date(json['startDate'])),
|
|
82
|
+
'endDate': (new Date(json['endDate'])),
|
|
83
|
+
'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
|
|
84
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
85
|
+
'domain': (0, SellerAuctionListItemDtoDomainInformation_1.SellerAuctionListItemDtoDomainInformationFromJSON)(json['domain']),
|
|
86
|
+
'sellerAccount': (0, SellerAuctionListItemDtoSellerAccount_1.SellerAuctionListItemDtoSellerAccountFromJSON)(json['sellerAccount']),
|
|
87
|
+
'numberOfBids': json['numberOfBids'],
|
|
88
|
+
'bids': (json['bids'].map(AuctionBidDto_1.AuctionBidDtoFromJSON)),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function SellerAuctionListItemDtoToJSON(json) {
|
|
92
|
+
return SellerAuctionListItemDtoToJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
function SellerAuctionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
95
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
96
|
+
if (value == null) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
'id': value['id'],
|
|
101
|
+
'status': value['status'],
|
|
102
|
+
'minimumBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['minimumBid']),
|
|
103
|
+
'reservePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['reservePrice']),
|
|
104
|
+
'highestBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['highestBid']),
|
|
105
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
106
|
+
'endDate': ((value['endDate']).toISOString()),
|
|
107
|
+
'finishedAt': (value['finishedAt'] == null ? null : value['finishedAt'].toISOString()),
|
|
108
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
109
|
+
'domain': (0, SellerAuctionListItemDtoDomainInformation_1.SellerAuctionListItemDtoDomainInformationToJSON)(value['domain']),
|
|
110
|
+
'sellerAccount': (0, SellerAuctionListItemDtoSellerAccount_1.SellerAuctionListItemDtoSellerAccountToJSON)(value['sellerAccount']),
|
|
111
|
+
'numberOfBids': value['numberOfBids'],
|
|
112
|
+
'bids': (value['bids'].map(AuctionBidDto_1.AuctionBidDtoToJSON)),
|
|
113
|
+
};
|
|
114
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 SellerAuctionListItemDtoDomainInformation
|
|
16
|
+
*/
|
|
17
|
+
export interface SellerAuctionListItemDtoDomainInformation {
|
|
18
|
+
/**
|
|
19
|
+
* Domain TLD
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SellerAuctionListItemDtoDomainInformation
|
|
22
|
+
*/
|
|
23
|
+
tld: string;
|
|
24
|
+
/**
|
|
25
|
+
* Domain name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SellerAuctionListItemDtoDomainInformation
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Domain display name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SellerAuctionListItemDtoDomainInformation
|
|
34
|
+
*/
|
|
35
|
+
displayName: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SellerAuctionListItemDtoDomainInformation interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfSellerAuctionListItemDtoDomainInformation(value: object): value is SellerAuctionListItemDtoDomainInformation;
|
|
41
|
+
export declare function SellerAuctionListItemDtoDomainInformationFromJSON(json: any): SellerAuctionListItemDtoDomainInformation;
|
|
42
|
+
export declare function SellerAuctionListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerAuctionListItemDtoDomainInformation;
|
|
43
|
+
export declare function SellerAuctionListItemDtoDomainInformationToJSON(json: any): SellerAuctionListItemDtoDomainInformation;
|
|
44
|
+
export declare function SellerAuctionListItemDtoDomainInformationToJSONTyped(value?: SellerAuctionListItemDtoDomainInformation | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfSellerAuctionListItemDtoDomainInformation = instanceOfSellerAuctionListItemDtoDomainInformation;
|
|
17
|
+
exports.SellerAuctionListItemDtoDomainInformationFromJSON = SellerAuctionListItemDtoDomainInformationFromJSON;
|
|
18
|
+
exports.SellerAuctionListItemDtoDomainInformationFromJSONTyped = SellerAuctionListItemDtoDomainInformationFromJSONTyped;
|
|
19
|
+
exports.SellerAuctionListItemDtoDomainInformationToJSON = SellerAuctionListItemDtoDomainInformationToJSON;
|
|
20
|
+
exports.SellerAuctionListItemDtoDomainInformationToJSONTyped = SellerAuctionListItemDtoDomainInformationToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SellerAuctionListItemDtoDomainInformation interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSellerAuctionListItemDtoDomainInformation(value) {
|
|
25
|
+
if (!('tld' in value) || value['tld'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function SellerAuctionListItemDtoDomainInformationFromJSON(json) {
|
|
34
|
+
return SellerAuctionListItemDtoDomainInformationFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function SellerAuctionListItemDtoDomainInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'tld': json['tld'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'displayName': json['displayName'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function SellerAuctionListItemDtoDomainInformationToJSON(json) {
|
|
47
|
+
return SellerAuctionListItemDtoDomainInformationToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function SellerAuctionListItemDtoDomainInformationToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'tld': value['tld'],
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'displayName': value['displayName'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 SellerAuctionListItemDtoSellerAccount
|
|
16
|
+
*/
|
|
17
|
+
export interface SellerAuctionListItemDtoSellerAccount {
|
|
18
|
+
/**
|
|
19
|
+
* Account ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SellerAuctionListItemDtoSellerAccount
|
|
22
|
+
*/
|
|
23
|
+
accountId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Account identifier
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SellerAuctionListItemDtoSellerAccount
|
|
28
|
+
*/
|
|
29
|
+
identifier: string;
|
|
30
|
+
/**
|
|
31
|
+
* Account name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SellerAuctionListItemDtoSellerAccount
|
|
34
|
+
*/
|
|
35
|
+
name: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates if account is a business or not
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof SellerAuctionListItemDtoSellerAccount
|
|
40
|
+
*/
|
|
41
|
+
isBusiness: boolean | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the SellerAuctionListItemDtoSellerAccount interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfSellerAuctionListItemDtoSellerAccount(value: object): value is SellerAuctionListItemDtoSellerAccount;
|
|
47
|
+
export declare function SellerAuctionListItemDtoSellerAccountFromJSON(json: any): SellerAuctionListItemDtoSellerAccount;
|
|
48
|
+
export declare function SellerAuctionListItemDtoSellerAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerAuctionListItemDtoSellerAccount;
|
|
49
|
+
export declare function SellerAuctionListItemDtoSellerAccountToJSON(json: any): SellerAuctionListItemDtoSellerAccount;
|
|
50
|
+
export declare function SellerAuctionListItemDtoSellerAccountToJSONTyped(value?: SellerAuctionListItemDtoSellerAccount | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfSellerAuctionListItemDtoSellerAccount = instanceOfSellerAuctionListItemDtoSellerAccount;
|
|
17
|
+
exports.SellerAuctionListItemDtoSellerAccountFromJSON = SellerAuctionListItemDtoSellerAccountFromJSON;
|
|
18
|
+
exports.SellerAuctionListItemDtoSellerAccountFromJSONTyped = SellerAuctionListItemDtoSellerAccountFromJSONTyped;
|
|
19
|
+
exports.SellerAuctionListItemDtoSellerAccountToJSON = SellerAuctionListItemDtoSellerAccountToJSON;
|
|
20
|
+
exports.SellerAuctionListItemDtoSellerAccountToJSONTyped = SellerAuctionListItemDtoSellerAccountToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SellerAuctionListItemDtoSellerAccount interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSellerAuctionListItemDtoSellerAccount(value) {
|
|
25
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('isBusiness' in value) || value['isBusiness'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function SellerAuctionListItemDtoSellerAccountFromJSON(json) {
|
|
36
|
+
return SellerAuctionListItemDtoSellerAccountFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function SellerAuctionListItemDtoSellerAccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'accountId': json['accountId'],
|
|
44
|
+
'identifier': json['identifier'],
|
|
45
|
+
'name': json['name'],
|
|
46
|
+
'isBusiness': json['isBusiness'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function SellerAuctionListItemDtoSellerAccountToJSON(json) {
|
|
50
|
+
return SellerAuctionListItemDtoSellerAccountToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function SellerAuctionListItemDtoSellerAccountToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'accountId': value['accountId'],
|
|
59
|
+
'identifier': value['identifier'],
|
|
60
|
+
'name': value['name'],
|
|
61
|
+
'isBusiness': value['isBusiness'],
|
|
62
|
+
};
|
|
63
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -45,6 +45,9 @@ export * from './AuctionBidMetricsDto';
|
|
|
45
45
|
export * from './AuctionBuyerDto';
|
|
46
46
|
export * from './AuctionBuyerWithTokenDto';
|
|
47
47
|
export * from './AuctionDto';
|
|
48
|
+
export * from './AuctionListItemDto';
|
|
49
|
+
export * from './AuctionListItemDtoDomainInformation';
|
|
50
|
+
export * from './AuctionListItemDtoSellerAccount';
|
|
48
51
|
export * from './BadRequestException';
|
|
49
52
|
export * from './BatchDeleteBuyerLeadsInput';
|
|
50
53
|
export * from './BatchImportPreviewDto';
|
|
@@ -56,6 +59,9 @@ export * from './BillingInformationDto';
|
|
|
56
59
|
export * from './BulkMarkBuyerNotificationsAsReadInputDto';
|
|
57
60
|
export * from './BulkMarkNotificationsAsReadInputDto';
|
|
58
61
|
export * from './BulkUpdateDomainsWithFiltersInput';
|
|
62
|
+
export * from './BuyerAuctionListItemDto';
|
|
63
|
+
export * from './BuyerAuctionListItemDtoDomainInformation';
|
|
64
|
+
export * from './BuyerAuctionListItemDtoSellerAccount';
|
|
59
65
|
export * from './BuyerDomainTransferAuthCodeDto';
|
|
60
66
|
export * from './BuyerDomainTransferListItemDomainDto';
|
|
61
67
|
export * from './BuyerDomainTransferListItemDto';
|
|
@@ -131,6 +137,8 @@ export * from './DomainUrlDto';
|
|
|
131
137
|
export * from './EppBatchUpdateInput';
|
|
132
138
|
export * from './ForgotPasswordRequestInput';
|
|
133
139
|
export * from './GetAllAffiliateCommissions200Response';
|
|
140
|
+
export * from './GetAllAuctions200Response';
|
|
141
|
+
export * from './GetAllAuctions200Response1';
|
|
134
142
|
export * from './GetAllDomainTransfers200Response';
|
|
135
143
|
export * from './GetAllInvoices200Response';
|
|
136
144
|
export * from './GetAllOrders200Response';
|
|
@@ -138,6 +146,7 @@ export * from './GetAllOwnedDomains200Response';
|
|
|
138
146
|
export * from './GetAllReferrals200Response';
|
|
139
147
|
export * from './GetAllSubscriptions200Response';
|
|
140
148
|
export * from './GetAllSubscriptions200Response1';
|
|
149
|
+
export * from './GetBuyerAuctions200Response';
|
|
141
150
|
export * from './GetBuyerInvoices200Response';
|
|
142
151
|
export * from './GetBuyerLeads200Response';
|
|
143
152
|
export * from './GetBuyerSubscriptions200Response';
|
|
@@ -243,6 +252,9 @@ export * from './RequestAccessTokenInput';
|
|
|
243
252
|
export * from './RequestEmailOtpInput';
|
|
244
253
|
export * from './SellerAccountReferralListItemDto';
|
|
245
254
|
export * from './SellerAffiliateCommissionDto';
|
|
255
|
+
export * from './SellerAuctionListItemDto';
|
|
256
|
+
export * from './SellerAuctionListItemDtoDomainInformation';
|
|
257
|
+
export * from './SellerAuctionListItemDtoSellerAccount';
|
|
246
258
|
export * from './SellerDomainAffiliateCommissionDto';
|
|
247
259
|
export * from './SellerDomainAffiliateCommissionDtoDomain';
|
|
248
260
|
export * from './SellerDomainTransferAuthCodeDto';
|
package/dist/models/index.js
CHANGED
|
@@ -63,6 +63,9 @@ __exportStar(require("./AuctionBidMetricsDto"), exports);
|
|
|
63
63
|
__exportStar(require("./AuctionBuyerDto"), exports);
|
|
64
64
|
__exportStar(require("./AuctionBuyerWithTokenDto"), exports);
|
|
65
65
|
__exportStar(require("./AuctionDto"), exports);
|
|
66
|
+
__exportStar(require("./AuctionListItemDto"), exports);
|
|
67
|
+
__exportStar(require("./AuctionListItemDtoDomainInformation"), exports);
|
|
68
|
+
__exportStar(require("./AuctionListItemDtoSellerAccount"), exports);
|
|
66
69
|
__exportStar(require("./BadRequestException"), exports);
|
|
67
70
|
__exportStar(require("./BatchDeleteBuyerLeadsInput"), exports);
|
|
68
71
|
__exportStar(require("./BatchImportPreviewDto"), exports);
|
|
@@ -74,6 +77,9 @@ __exportStar(require("./BillingInformationDto"), exports);
|
|
|
74
77
|
__exportStar(require("./BulkMarkBuyerNotificationsAsReadInputDto"), exports);
|
|
75
78
|
__exportStar(require("./BulkMarkNotificationsAsReadInputDto"), exports);
|
|
76
79
|
__exportStar(require("./BulkUpdateDomainsWithFiltersInput"), exports);
|
|
80
|
+
__exportStar(require("./BuyerAuctionListItemDto"), exports);
|
|
81
|
+
__exportStar(require("./BuyerAuctionListItemDtoDomainInformation"), exports);
|
|
82
|
+
__exportStar(require("./BuyerAuctionListItemDtoSellerAccount"), exports);
|
|
77
83
|
__exportStar(require("./BuyerDomainTransferAuthCodeDto"), exports);
|
|
78
84
|
__exportStar(require("./BuyerDomainTransferListItemDomainDto"), exports);
|
|
79
85
|
__exportStar(require("./BuyerDomainTransferListItemDto"), exports);
|
|
@@ -149,6 +155,8 @@ __exportStar(require("./DomainUrlDto"), exports);
|
|
|
149
155
|
__exportStar(require("./EppBatchUpdateInput"), exports);
|
|
150
156
|
__exportStar(require("./ForgotPasswordRequestInput"), exports);
|
|
151
157
|
__exportStar(require("./GetAllAffiliateCommissions200Response"), exports);
|
|
158
|
+
__exportStar(require("./GetAllAuctions200Response"), exports);
|
|
159
|
+
__exportStar(require("./GetAllAuctions200Response1"), exports);
|
|
152
160
|
__exportStar(require("./GetAllDomainTransfers200Response"), exports);
|
|
153
161
|
__exportStar(require("./GetAllInvoices200Response"), exports);
|
|
154
162
|
__exportStar(require("./GetAllOrders200Response"), exports);
|
|
@@ -156,6 +164,7 @@ __exportStar(require("./GetAllOwnedDomains200Response"), exports);
|
|
|
156
164
|
__exportStar(require("./GetAllReferrals200Response"), exports);
|
|
157
165
|
__exportStar(require("./GetAllSubscriptions200Response"), exports);
|
|
158
166
|
__exportStar(require("./GetAllSubscriptions200Response1"), exports);
|
|
167
|
+
__exportStar(require("./GetBuyerAuctions200Response"), exports);
|
|
159
168
|
__exportStar(require("./GetBuyerInvoices200Response"), exports);
|
|
160
169
|
__exportStar(require("./GetBuyerLeads200Response"), exports);
|
|
161
170
|
__exportStar(require("./GetBuyerSubscriptions200Response"), exports);
|
|
@@ -261,6 +270,9 @@ __exportStar(require("./RequestAccessTokenInput"), exports);
|
|
|
261
270
|
__exportStar(require("./RequestEmailOtpInput"), exports);
|
|
262
271
|
__exportStar(require("./SellerAccountReferralListItemDto"), exports);
|
|
263
272
|
__exportStar(require("./SellerAffiliateCommissionDto"), exports);
|
|
273
|
+
__exportStar(require("./SellerAuctionListItemDto"), exports);
|
|
274
|
+
__exportStar(require("./SellerAuctionListItemDtoDomainInformation"), exports);
|
|
275
|
+
__exportStar(require("./SellerAuctionListItemDtoSellerAccount"), exports);
|
|
264
276
|
__exportStar(require("./SellerDomainAffiliateCommissionDto"), exports);
|
|
265
277
|
__exportStar(require("./SellerDomainAffiliateCommissionDtoDomain"), exports);
|
|
266
278
|
__exportStar(require("./SellerDomainTransferAuthCodeDto"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -24,6 +24,7 @@ import type {
|
|
|
24
24
|
ChangeOrderStatusInput,
|
|
25
25
|
ChangeSubscriptionStatusInput,
|
|
26
26
|
DomainTransferDetailsDto,
|
|
27
|
+
GetAllAuctions200Response,
|
|
27
28
|
GetAllInvoices200Response,
|
|
28
29
|
GetAllOrders200Response,
|
|
29
30
|
GetAllOwnedDomains200Response,
|
|
@@ -60,6 +61,8 @@ import {
|
|
|
60
61
|
ChangeSubscriptionStatusInputToJSON,
|
|
61
62
|
DomainTransferDetailsDtoFromJSON,
|
|
62
63
|
DomainTransferDetailsDtoToJSON,
|
|
64
|
+
GetAllAuctions200ResponseFromJSON,
|
|
65
|
+
GetAllAuctions200ResponseToJSON,
|
|
63
66
|
GetAllInvoices200ResponseFromJSON,
|
|
64
67
|
GetAllInvoices200ResponseToJSON,
|
|
65
68
|
GetAllOrders200ResponseFromJSON,
|
|
@@ -135,6 +138,13 @@ export interface AdminApiGetAllAccountsSalesCountRequest {
|
|
|
135
138
|
dateRange?: any | null;
|
|
136
139
|
}
|
|
137
140
|
|
|
141
|
+
export interface AdminApiGetAllAuctionsRequest {
|
|
142
|
+
filter?: object;
|
|
143
|
+
page?: number;
|
|
144
|
+
limit?: number;
|
|
145
|
+
sortBy?: Array<string>;
|
|
146
|
+
}
|
|
147
|
+
|
|
138
148
|
export interface AdminApiGetAllInvoicesRequest {
|
|
139
149
|
filter?: object;
|
|
140
150
|
page?: number;
|
|
@@ -637,6 +647,56 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
637
647
|
return await response.value();
|
|
638
648
|
}
|
|
639
649
|
|
|
650
|
+
/**
|
|
651
|
+
*
|
|
652
|
+
*/
|
|
653
|
+
async getAllAuctionsRaw(requestParameters: AdminApiGetAllAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllAuctions200Response>> {
|
|
654
|
+
const queryParameters: any = {};
|
|
655
|
+
|
|
656
|
+
if (requestParameters['filter'] != null) {
|
|
657
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
if (requestParameters['page'] != null) {
|
|
661
|
+
queryParameters['page'] = requestParameters['page'];
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
if (requestParameters['limit'] != null) {
|
|
665
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
if (requestParameters['sortBy'] != null) {
|
|
669
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
673
|
+
|
|
674
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
675
|
+
const token = this.configuration.accessToken;
|
|
676
|
+
const tokenString = await token("bearer", []);
|
|
677
|
+
|
|
678
|
+
if (tokenString) {
|
|
679
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
const response = await this.request({
|
|
683
|
+
path: `/admin/auctions`,
|
|
684
|
+
method: 'GET',
|
|
685
|
+
headers: headerParameters,
|
|
686
|
+
query: queryParameters,
|
|
687
|
+
}, initOverrides);
|
|
688
|
+
|
|
689
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetAllAuctions200ResponseFromJSON(jsonValue));
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
*
|
|
694
|
+
*/
|
|
695
|
+
async getAllAuctions(requestParameters: AdminApiGetAllAuctionsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAuctions200Response> {
|
|
696
|
+
const response = await this.getAllAuctionsRaw(requestParameters, initOverrides);
|
|
697
|
+
return await response.value();
|
|
698
|
+
}
|
|
699
|
+
|
|
640
700
|
/**
|
|
641
701
|
*
|
|
642
702
|
*/
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
GetAllAuctions200Response1,
|
|
19
|
+
ValidationException,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
GetAllAuctions200Response1FromJSON,
|
|
23
|
+
GetAllAuctions200Response1ToJSON,
|
|
24
|
+
ValidationExceptionFromJSON,
|
|
25
|
+
ValidationExceptionToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface AuctionsApiGetAllAuctionsRequest {
|
|
29
|
+
filter?: object;
|
|
30
|
+
page?: number;
|
|
31
|
+
limit?: number;
|
|
32
|
+
sortBy?: Array<string>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
export class AuctionsApi extends runtime.BaseAPI {
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
async getAllAuctionsRaw(requestParameters: AuctionsApiGetAllAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllAuctions200Response1>> {
|
|
44
|
+
const queryParameters: any = {};
|
|
45
|
+
|
|
46
|
+
if (requestParameters['filter'] != null) {
|
|
47
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (requestParameters['page'] != null) {
|
|
51
|
+
queryParameters['page'] = requestParameters['page'];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (requestParameters['limit'] != null) {
|
|
55
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (requestParameters['sortBy'] != null) {
|
|
59
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
63
|
+
|
|
64
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
65
|
+
const token = this.configuration.accessToken;
|
|
66
|
+
const tokenString = await token("bearer", []);
|
|
67
|
+
|
|
68
|
+
if (tokenString) {
|
|
69
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
const response = await this.request({
|
|
73
|
+
path: `/private/auctions`,
|
|
74
|
+
method: 'GET',
|
|
75
|
+
headers: headerParameters,
|
|
76
|
+
query: queryParameters,
|
|
77
|
+
}, initOverrides);
|
|
78
|
+
|
|
79
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetAllAuctions200Response1FromJSON(jsonValue));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
async getAllAuctions(requestParameters: AuctionsApiGetAllAuctionsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAuctions200Response1> {
|
|
86
|
+
const response = await this.getAllAuctionsRaw(requestParameters, initOverrides);
|
|
87
|
+
return await response.value();
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
}
|