@randock/nameshift-api-client 0.0.347 → 0.0.349
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 +9 -1
- package/README.md +3 -3
- package/dist/apis/AuctionsPublicApi.d.ts +16 -1
- package/dist/apis/AuctionsPublicApi.js +57 -0
- package/dist/apis/PartnerApi.d.ts +43 -0
- package/dist/apis/{PartnerDomainsApi.js → PartnerApi.js} +78 -16
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/List200Response4.d.ts +65 -0
- package/dist/models/List200Response4.js +74 -0
- package/dist/models/ListAuctions200Response.d.ts +59 -0
- package/dist/models/ListAuctions200Response.js +70 -0
- package/dist/models/PartnerAuctionDto.d.ts +69 -0
- package/dist/models/PartnerAuctionDto.js +76 -0
- package/dist/models/PublicAuctionListItemDto.d.ts +93 -0
- package/dist/models/PublicAuctionListItemDto.js +96 -0
- package/dist/models/PublicAuctionListItemDtoDomainInformation.d.ts +63 -0
- package/dist/models/PublicAuctionListItemDtoDomainInformation.js +72 -0
- package/dist/models/PublicAuctionListItemDtoDomainMozMetrics.d.ts +56 -0
- package/dist/models/PublicAuctionListItemDtoDomainMozMetrics.js +67 -0
- package/dist/models/PublicAuctionListItemDtoDomainSeo.d.ts +33 -0
- package/dist/models/PublicAuctionListItemDtoDomainSeo.js +52 -0
- package/dist/models/PublicDomainDto.d.ts +7 -0
- package/dist/models/PublicDomainDto.js +5 -0
- package/dist/models/PublicDomainDtoAuction.d.ts +39 -0
- package/dist/models/PublicDomainDtoAuction.js +56 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/AuctionsPublicApi.ts +63 -0
- package/src/apis/{PartnerDomainsApi.ts → PartnerApi.ts} +54 -4
- package/src/apis/index.ts +1 -1
- package/src/models/List200Response4.ts +126 -0
- package/src/models/ListAuctions200Response.ts +117 -0
- package/src/models/PartnerAuctionDto.ts +128 -0
- package/src/models/PublicAuctionListItemDto.ts +167 -0
- package/src/models/PublicAuctionListItemDtoDomainInformation.ts +119 -0
- package/src/models/PublicAuctionListItemDtoDomainMozMetrics.ts +102 -0
- package/src/models/PublicAuctionListItemDtoDomainSeo.ts +74 -0
- package/src/models/PublicDomainDto.ts +16 -0
- package/src/models/PublicDomainDtoAuction.ts +83 -0
- package/src/models/index.ts +8 -0
- package/dist/apis/PartnerDomainsApi.d.ts +0 -31
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PublicDomainDtoSeo } from './PublicDomainDtoSeo';
|
|
13
|
+
import type { PublicDomainDtoAuction } from './PublicDomainDtoAuction';
|
|
13
14
|
import type { MoneyDto } from './MoneyDto';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -41,6 +42,12 @@ export interface PublicDomainDto {
|
|
|
41
42
|
* @memberof PublicDomainDto
|
|
42
43
|
*/
|
|
43
44
|
seo: PublicDomainDtoSeo;
|
|
45
|
+
/**
|
|
46
|
+
* The auction data if the domain has an auction
|
|
47
|
+
* @type {PublicDomainDtoAuction}
|
|
48
|
+
* @memberof PublicDomainDto
|
|
49
|
+
*/
|
|
50
|
+
auction: PublicDomainDtoAuction | null;
|
|
44
51
|
/**
|
|
45
52
|
* The TLD for this domain.
|
|
46
53
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.PublicDomainDtoFromJSONTyped = PublicDomainDtoFromJSONTyped;
|
|
|
19
19
|
exports.PublicDomainDtoToJSON = PublicDomainDtoToJSON;
|
|
20
20
|
exports.PublicDomainDtoToJSONTyped = PublicDomainDtoToJSONTyped;
|
|
21
21
|
var PublicDomainDtoSeo_1 = require("./PublicDomainDtoSeo");
|
|
22
|
+
var PublicDomainDtoAuction_1 = require("./PublicDomainDtoAuction");
|
|
22
23
|
var MoneyDto_1 = require("./MoneyDto");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the PublicDomainDto interface.
|
|
@@ -32,6 +33,8 @@ function instanceOfPublicDomainDto(value) {
|
|
|
32
33
|
return false;
|
|
33
34
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
34
35
|
return false;
|
|
36
|
+
if (!('auction' in value) || value['auction'] === undefined)
|
|
37
|
+
return false;
|
|
35
38
|
if (!('tld' in value) || value['tld'] === undefined)
|
|
36
39
|
return false;
|
|
37
40
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -58,6 +61,7 @@ function PublicDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
61
|
'seller': json['seller'],
|
|
59
62
|
'url': json['url'],
|
|
60
63
|
'seo': (0, PublicDomainDtoSeo_1.PublicDomainDtoSeoFromJSON)(json['seo']),
|
|
64
|
+
'auction': (0, PublicDomainDtoAuction_1.PublicDomainDtoAuctionFromJSON)(json['auction']),
|
|
61
65
|
'tld': json['tld'],
|
|
62
66
|
'name': json['name'],
|
|
63
67
|
'displayName': json['displayName'],
|
|
@@ -79,6 +83,7 @@ function PublicDomainDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
79
83
|
'seller': value['seller'],
|
|
80
84
|
'url': value['url'],
|
|
81
85
|
'seo': (0, PublicDomainDtoSeo_1.PublicDomainDtoSeoToJSON)(value['seo']),
|
|
86
|
+
'auction': (0, PublicDomainDtoAuction_1.PublicDomainDtoAuctionToJSON)(value['auction']),
|
|
82
87
|
'tld': value['tld'],
|
|
83
88
|
'name': value['name'],
|
|
84
89
|
'displayName': value['displayName'],
|
|
@@ -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 PublicDomainDtoAuction
|
|
17
|
+
*/
|
|
18
|
+
export interface PublicDomainDtoAuction {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PublicDomainDtoAuction
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {MoneyDto}
|
|
28
|
+
* @memberof PublicDomainDtoAuction
|
|
29
|
+
*/
|
|
30
|
+
highestBid: MoneyDto | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the PublicDomainDtoAuction interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfPublicDomainDtoAuction(value: object): value is PublicDomainDtoAuction;
|
|
36
|
+
export declare function PublicDomainDtoAuctionFromJSON(json: any): PublicDomainDtoAuction;
|
|
37
|
+
export declare function PublicDomainDtoAuctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicDomainDtoAuction;
|
|
38
|
+
export declare function PublicDomainDtoAuctionToJSON(json: any): PublicDomainDtoAuction;
|
|
39
|
+
export declare function PublicDomainDtoAuctionToJSONTyped(value?: PublicDomainDtoAuction | 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.instanceOfPublicDomainDtoAuction = instanceOfPublicDomainDtoAuction;
|
|
17
|
+
exports.PublicDomainDtoAuctionFromJSON = PublicDomainDtoAuctionFromJSON;
|
|
18
|
+
exports.PublicDomainDtoAuctionFromJSONTyped = PublicDomainDtoAuctionFromJSONTyped;
|
|
19
|
+
exports.PublicDomainDtoAuctionToJSON = PublicDomainDtoAuctionToJSON;
|
|
20
|
+
exports.PublicDomainDtoAuctionToJSONTyped = PublicDomainDtoAuctionToJSONTyped;
|
|
21
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PublicDomainDtoAuction interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPublicDomainDtoAuction(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('highestBid' in value) || value['highestBid'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function PublicDomainDtoAuctionFromJSON(json) {
|
|
33
|
+
return PublicDomainDtoAuctionFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function PublicDomainDtoAuctionFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
'highestBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['highestBid']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function PublicDomainDtoAuctionToJSON(json) {
|
|
45
|
+
return PublicDomainDtoAuctionToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function PublicDomainDtoAuctionToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'id': value['id'],
|
|
54
|
+
'highestBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['highestBid']),
|
|
55
|
+
};
|
|
56
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -198,9 +198,11 @@ export * from './List200Response';
|
|
|
198
198
|
export * from './List200Response1';
|
|
199
199
|
export * from './List200Response2';
|
|
200
200
|
export * from './List200Response3';
|
|
201
|
+
export * from './List200Response4';
|
|
201
202
|
export * from './ListAccountMetricsDto';
|
|
202
203
|
export * from './ListAccountUserDto';
|
|
203
204
|
export * from './ListAccounts200Response';
|
|
205
|
+
export * from './ListAuctions200Response';
|
|
204
206
|
export * from './ListBankAccounts200Response';
|
|
205
207
|
export * from './ListBuyerNotifications200Response';
|
|
206
208
|
export * from './ListDomains200Response';
|
|
@@ -234,9 +236,15 @@ export * from './PaginateResponse';
|
|
|
234
236
|
export * from './PaginateResponseLinks';
|
|
235
237
|
export * from './PaginateResponseMeta';
|
|
236
238
|
export * from './ParsedDomainDto';
|
|
239
|
+
export * from './PartnerAuctionDto';
|
|
237
240
|
export * from './PrivateAccountGetMeResponse';
|
|
238
241
|
export * from './PublicAccountInformationDto';
|
|
242
|
+
export * from './PublicAuctionListItemDto';
|
|
243
|
+
export * from './PublicAuctionListItemDtoDomainInformation';
|
|
244
|
+
export * from './PublicAuctionListItemDtoDomainMozMetrics';
|
|
245
|
+
export * from './PublicAuctionListItemDtoDomainSeo';
|
|
239
246
|
export * from './PublicDomainDto';
|
|
247
|
+
export * from './PublicDomainDtoAuction';
|
|
240
248
|
export * from './PublicDomainDtoSeo';
|
|
241
249
|
export * from './PublicDomainDtoSeoMoz';
|
|
242
250
|
export * from './PublicLeadBuyerDto';
|
package/dist/models/index.js
CHANGED
|
@@ -216,9 +216,11 @@ __exportStar(require("./List200Response"), exports);
|
|
|
216
216
|
__exportStar(require("./List200Response1"), exports);
|
|
217
217
|
__exportStar(require("./List200Response2"), exports);
|
|
218
218
|
__exportStar(require("./List200Response3"), exports);
|
|
219
|
+
__exportStar(require("./List200Response4"), exports);
|
|
219
220
|
__exportStar(require("./ListAccountMetricsDto"), exports);
|
|
220
221
|
__exportStar(require("./ListAccountUserDto"), exports);
|
|
221
222
|
__exportStar(require("./ListAccounts200Response"), exports);
|
|
223
|
+
__exportStar(require("./ListAuctions200Response"), exports);
|
|
222
224
|
__exportStar(require("./ListBankAccounts200Response"), exports);
|
|
223
225
|
__exportStar(require("./ListBuyerNotifications200Response"), exports);
|
|
224
226
|
__exportStar(require("./ListDomains200Response"), exports);
|
|
@@ -252,9 +254,15 @@ __exportStar(require("./PaginateResponse"), exports);
|
|
|
252
254
|
__exportStar(require("./PaginateResponseLinks"), exports);
|
|
253
255
|
__exportStar(require("./PaginateResponseMeta"), exports);
|
|
254
256
|
__exportStar(require("./ParsedDomainDto"), exports);
|
|
257
|
+
__exportStar(require("./PartnerAuctionDto"), exports);
|
|
255
258
|
__exportStar(require("./PrivateAccountGetMeResponse"), exports);
|
|
256
259
|
__exportStar(require("./PublicAccountInformationDto"), exports);
|
|
260
|
+
__exportStar(require("./PublicAuctionListItemDto"), exports);
|
|
261
|
+
__exportStar(require("./PublicAuctionListItemDtoDomainInformation"), exports);
|
|
262
|
+
__exportStar(require("./PublicAuctionListItemDtoDomainMozMetrics"), exports);
|
|
263
|
+
__exportStar(require("./PublicAuctionListItemDtoDomainSeo"), exports);
|
|
257
264
|
__exportStar(require("./PublicDomainDto"), exports);
|
|
265
|
+
__exportStar(require("./PublicDomainDtoAuction"), exports);
|
|
258
266
|
__exportStar(require("./PublicDomainDtoSeo"), exports);
|
|
259
267
|
__exportStar(require("./PublicDomainDtoSeoMoz"), exports);
|
|
260
268
|
__exportStar(require("./PublicLeadBuyerDto"), exports);
|
package/package.json
CHANGED
|
@@ -16,16 +16,33 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
AuctionDto,
|
|
19
|
+
List200Response4,
|
|
20
|
+
SortDto,
|
|
21
|
+
ValidationException,
|
|
19
22
|
} from '../models/index';
|
|
20
23
|
import {
|
|
21
24
|
AuctionDtoFromJSON,
|
|
22
25
|
AuctionDtoToJSON,
|
|
26
|
+
List200Response4FromJSON,
|
|
27
|
+
List200Response4ToJSON,
|
|
28
|
+
SortDtoFromJSON,
|
|
29
|
+
SortDtoToJSON,
|
|
30
|
+
ValidationExceptionFromJSON,
|
|
31
|
+
ValidationExceptionToJSON,
|
|
23
32
|
} from '../models/index';
|
|
24
33
|
|
|
25
34
|
export interface AuctionsPublicApiGetAuctionRequest {
|
|
26
35
|
auctionId: string;
|
|
27
36
|
}
|
|
28
37
|
|
|
38
|
+
export interface AuctionsPublicApiListRequest {
|
|
39
|
+
limit?: number;
|
|
40
|
+
sort?: Array<SortDto>;
|
|
41
|
+
filter?: string;
|
|
42
|
+
search?: string;
|
|
43
|
+
cursor?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
29
46
|
/**
|
|
30
47
|
*
|
|
31
48
|
*/
|
|
@@ -64,4 +81,50 @@ export class AuctionsPublicApi extends runtime.BaseAPI {
|
|
|
64
81
|
return await response.value();
|
|
65
82
|
}
|
|
66
83
|
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
async listRaw(requestParameters: AuctionsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response4>> {
|
|
88
|
+
const queryParameters: any = {};
|
|
89
|
+
|
|
90
|
+
if (requestParameters['limit'] != null) {
|
|
91
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (requestParameters['sort'] != null) {
|
|
95
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (requestParameters['filter'] != null) {
|
|
99
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (requestParameters['search'] != null) {
|
|
103
|
+
queryParameters['search'] = requestParameters['search'];
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (requestParameters['cursor'] != null) {
|
|
107
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
111
|
+
|
|
112
|
+
const response = await this.request({
|
|
113
|
+
path: `/auctions`,
|
|
114
|
+
method: 'GET',
|
|
115
|
+
headers: headerParameters,
|
|
116
|
+
query: queryParameters,
|
|
117
|
+
}, initOverrides);
|
|
118
|
+
|
|
119
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => List200Response4FromJSON(jsonValue));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
async list(requestParameters: AuctionsPublicApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response4> {
|
|
126
|
+
const response = await this.listRaw(requestParameters, initOverrides);
|
|
127
|
+
return await response.value();
|
|
128
|
+
}
|
|
129
|
+
|
|
67
130
|
}
|
|
@@ -15,17 +15,25 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ListAuctions200Response,
|
|
18
19
|
ListDomainsWithUpdatedPricing200Response,
|
|
19
20
|
ValidationException,
|
|
20
21
|
} from '../models/index';
|
|
21
22
|
import {
|
|
23
|
+
ListAuctions200ResponseFromJSON,
|
|
24
|
+
ListAuctions200ResponseToJSON,
|
|
22
25
|
ListDomainsWithUpdatedPricing200ResponseFromJSON,
|
|
23
26
|
ListDomainsWithUpdatedPricing200ResponseToJSON,
|
|
24
27
|
ValidationExceptionFromJSON,
|
|
25
28
|
ValidationExceptionToJSON,
|
|
26
29
|
} from '../models/index';
|
|
27
30
|
|
|
28
|
-
export interface
|
|
31
|
+
export interface PartnerApiListAuctionsRequest {
|
|
32
|
+
limit?: number;
|
|
33
|
+
cursor?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface PartnerApiListDomainsWithUpdatedPricingRequest {
|
|
29
37
|
dateFrom: string;
|
|
30
38
|
limit?: number;
|
|
31
39
|
cursor?: string;
|
|
@@ -34,12 +42,50 @@ export interface PartnerDomainsApiListDomainsWithUpdatedPricingRequest {
|
|
|
34
42
|
/**
|
|
35
43
|
*
|
|
36
44
|
*/
|
|
37
|
-
export class
|
|
45
|
+
export class PartnerApi extends runtime.BaseAPI {
|
|
38
46
|
|
|
39
47
|
/**
|
|
40
48
|
*
|
|
41
49
|
*/
|
|
42
|
-
async
|
|
50
|
+
async listAuctionsRaw(requestParameters: PartnerApiListAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAuctions200Response>> {
|
|
51
|
+
const queryParameters: any = {};
|
|
52
|
+
|
|
53
|
+
if (requestParameters['limit'] != null) {
|
|
54
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (requestParameters['cursor'] != null) {
|
|
58
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
62
|
+
|
|
63
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
64
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const response = await this.request({
|
|
68
|
+
path: `/partner/auctions`,
|
|
69
|
+
method: 'GET',
|
|
70
|
+
headers: headerParameters,
|
|
71
|
+
query: queryParameters,
|
|
72
|
+
}, initOverrides);
|
|
73
|
+
|
|
74
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListAuctions200ResponseFromJSON(jsonValue));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
async listAuctions(requestParameters: PartnerApiListAuctionsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAuctions200Response> {
|
|
81
|
+
const response = await this.listAuctionsRaw(requestParameters, initOverrides);
|
|
82
|
+
return await response.value();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
async listDomainsWithUpdatedPricingRaw(requestParameters: PartnerApiListDomainsWithUpdatedPricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDomainsWithUpdatedPricing200Response>> {
|
|
43
89
|
if (requestParameters['dateFrom'] == null) {
|
|
44
90
|
throw new runtime.RequiredError(
|
|
45
91
|
'dateFrom',
|
|
@@ -63,6 +109,10 @@ export class PartnerDomainsApi extends runtime.BaseAPI {
|
|
|
63
109
|
|
|
64
110
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
65
111
|
|
|
112
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
113
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
114
|
+
}
|
|
115
|
+
|
|
66
116
|
const response = await this.request({
|
|
67
117
|
path: `/partner/domains/updated-prices`,
|
|
68
118
|
method: 'GET',
|
|
@@ -76,7 +126,7 @@ export class PartnerDomainsApi extends runtime.BaseAPI {
|
|
|
76
126
|
/**
|
|
77
127
|
*
|
|
78
128
|
*/
|
|
79
|
-
async listDomainsWithUpdatedPricing(requestParameters:
|
|
129
|
+
async listDomainsWithUpdatedPricing(requestParameters: PartnerApiListDomainsWithUpdatedPricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDomainsWithUpdatedPricing200Response> {
|
|
80
130
|
const response = await this.listDomainsWithUpdatedPricingRaw(requestParameters, initOverrides);
|
|
81
131
|
return await response.value();
|
|
82
132
|
}
|
package/src/apis/index.ts
CHANGED
|
@@ -17,7 +17,7 @@ export * from './LeadsApi';
|
|
|
17
17
|
export * from './LeadsPublicApi';
|
|
18
18
|
export * from './NotificationsApi';
|
|
19
19
|
export * from './OrdersPublicApi';
|
|
20
|
-
export * from './
|
|
20
|
+
export * from './PartnerApi';
|
|
21
21
|
export * from './SalesPublicApi';
|
|
22
22
|
export * from './StatsApi';
|
|
23
23
|
export * from './StripePublicApi';
|
|
@@ -0,0 +1,126 @@
|
|
|
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 { CursorBasedPageInfo } from './CursorBasedPageInfo';
|
|
17
|
+
import {
|
|
18
|
+
CursorBasedPageInfoFromJSON,
|
|
19
|
+
CursorBasedPageInfoFromJSONTyped,
|
|
20
|
+
CursorBasedPageInfoToJSON,
|
|
21
|
+
CursorBasedPageInfoToJSONTyped,
|
|
22
|
+
} from './CursorBasedPageInfo';
|
|
23
|
+
import type { PublicAuctionListItemDto } from './PublicAuctionListItemDto';
|
|
24
|
+
import {
|
|
25
|
+
PublicAuctionListItemDtoFromJSON,
|
|
26
|
+
PublicAuctionListItemDtoFromJSONTyped,
|
|
27
|
+
PublicAuctionListItemDtoToJSON,
|
|
28
|
+
PublicAuctionListItemDtoToJSONTyped,
|
|
29
|
+
} from './PublicAuctionListItemDto';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface List200Response4
|
|
35
|
+
*/
|
|
36
|
+
export interface List200Response4 {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof List200Response4
|
|
41
|
+
*/
|
|
42
|
+
limit: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof List200Response4
|
|
47
|
+
*/
|
|
48
|
+
type: List200Response4TypeEnum;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {CursorBasedPageInfo}
|
|
52
|
+
* @memberof List200Response4
|
|
53
|
+
*/
|
|
54
|
+
pagination: CursorBasedPageInfo;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {object}
|
|
58
|
+
* @memberof List200Response4
|
|
59
|
+
*/
|
|
60
|
+
aggregations: object;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<PublicAuctionListItemDto>}
|
|
64
|
+
* @memberof List200Response4
|
|
65
|
+
*/
|
|
66
|
+
data?: Array<PublicAuctionListItemDto>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export const List200Response4TypeEnum = {
|
|
74
|
+
CURSOR: 'cursor'
|
|
75
|
+
} as const;
|
|
76
|
+
export type List200Response4TypeEnum = typeof List200Response4TypeEnum[keyof typeof List200Response4TypeEnum];
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the List200Response4 interface.
|
|
81
|
+
*/
|
|
82
|
+
export function instanceOfList200Response4(value: object): value is List200Response4 {
|
|
83
|
+
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
84
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
85
|
+
if (!('pagination' in value) || value['pagination'] === undefined) return false;
|
|
86
|
+
if (!('aggregations' in value) || value['aggregations'] === undefined) return false;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function List200Response4FromJSON(json: any): List200Response4 {
|
|
91
|
+
return List200Response4FromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function List200Response4FromJSONTyped(json: any, ignoreDiscriminator: boolean): List200Response4 {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'limit': json['limit'],
|
|
101
|
+
'type': json['type'],
|
|
102
|
+
'pagination': CursorBasedPageInfoFromJSON(json['pagination']),
|
|
103
|
+
'aggregations': json['aggregations'],
|
|
104
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(PublicAuctionListItemDtoFromJSON)),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function List200Response4ToJSON(json: any): List200Response4 {
|
|
109
|
+
return List200Response4ToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function List200Response4ToJSONTyped(value?: List200Response4 | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'limit': value['limit'],
|
|
120
|
+
'type': value['type'],
|
|
121
|
+
'pagination': CursorBasedPageInfoToJSON(value['pagination']),
|
|
122
|
+
'aggregations': value['aggregations'],
|
|
123
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(PublicAuctionListItemDtoToJSON)),
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
@@ -0,0 +1,117 @@
|
|
|
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 { CursorBasedPageInfo } from './CursorBasedPageInfo';
|
|
17
|
+
import {
|
|
18
|
+
CursorBasedPageInfoFromJSON,
|
|
19
|
+
CursorBasedPageInfoFromJSONTyped,
|
|
20
|
+
CursorBasedPageInfoToJSON,
|
|
21
|
+
CursorBasedPageInfoToJSONTyped,
|
|
22
|
+
} from './CursorBasedPageInfo';
|
|
23
|
+
import type { PartnerAuctionDto } from './PartnerAuctionDto';
|
|
24
|
+
import {
|
|
25
|
+
PartnerAuctionDtoFromJSON,
|
|
26
|
+
PartnerAuctionDtoFromJSONTyped,
|
|
27
|
+
PartnerAuctionDtoToJSON,
|
|
28
|
+
PartnerAuctionDtoToJSONTyped,
|
|
29
|
+
} from './PartnerAuctionDto';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ListAuctions200Response
|
|
35
|
+
*/
|
|
36
|
+
export interface ListAuctions200Response {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ListAuctions200Response
|
|
41
|
+
*/
|
|
42
|
+
limit: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ListAuctions200Response
|
|
47
|
+
*/
|
|
48
|
+
type: ListAuctions200ResponseTypeEnum;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {CursorBasedPageInfo}
|
|
52
|
+
* @memberof ListAuctions200Response
|
|
53
|
+
*/
|
|
54
|
+
pagination: CursorBasedPageInfo;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<PartnerAuctionDto>}
|
|
58
|
+
* @memberof ListAuctions200Response
|
|
59
|
+
*/
|
|
60
|
+
data?: Array<PartnerAuctionDto>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @export
|
|
66
|
+
*/
|
|
67
|
+
export const ListAuctions200ResponseTypeEnum = {
|
|
68
|
+
CURSOR: 'cursor'
|
|
69
|
+
} as const;
|
|
70
|
+
export type ListAuctions200ResponseTypeEnum = typeof ListAuctions200ResponseTypeEnum[keyof typeof ListAuctions200ResponseTypeEnum];
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the ListAuctions200Response interface.
|
|
75
|
+
*/
|
|
76
|
+
export function instanceOfListAuctions200Response(value: object): value is ListAuctions200Response {
|
|
77
|
+
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
78
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
79
|
+
if (!('pagination' in value) || value['pagination'] === undefined) return false;
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ListAuctions200ResponseFromJSON(json: any): ListAuctions200Response {
|
|
84
|
+
return ListAuctions200ResponseFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ListAuctions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAuctions200Response {
|
|
88
|
+
if (json == null) {
|
|
89
|
+
return json;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'limit': json['limit'],
|
|
94
|
+
'type': json['type'],
|
|
95
|
+
'pagination': CursorBasedPageInfoFromJSON(json['pagination']),
|
|
96
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(PartnerAuctionDtoFromJSON)),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function ListAuctions200ResponseToJSON(json: any): ListAuctions200Response {
|
|
101
|
+
return ListAuctions200ResponseToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function ListAuctions200ResponseToJSONTyped(value?: ListAuctions200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'limit': value['limit'],
|
|
112
|
+
'type': value['type'],
|
|
113
|
+
'pagination': CursorBasedPageInfoToJSON(value['pagination']),
|
|
114
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(PartnerAuctionDtoToJSON)),
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|