@randock/nameshift-api-client 0.0.402 → 0.0.403
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 +1 -0
- package/README.md +3 -3
- package/dist/apis/PartnerApi.d.ts +3 -3
- package/dist/apis/PartnerApi.js +1 -1
- package/dist/models/PartnerDomainFindDto.d.ts +82 -0
- package/dist/models/PartnerDomainFindDto.js +85 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/PartnerApi.ts +6 -6
- package/src/models/PartnerDomainFindDto.ts +153 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -349,6 +349,7 @@ src/models/PaginateResponseLinks.ts
|
|
|
349
349
|
src/models/PaginateResponseMeta.ts
|
|
350
350
|
src/models/ParsedDomainDto.ts
|
|
351
351
|
src/models/PartnerAuctionDto.ts
|
|
352
|
+
src/models/PartnerDomainFindDto.ts
|
|
352
353
|
src/models/PayAccountPaymentInput.ts
|
|
353
354
|
src/models/PaymentMethodsStatsDto.ts
|
|
354
355
|
src/models/PrivateAccountGetMeResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.403
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.403 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
ee865367022d33b285bf22d2cd675a97e801e9860cc68a761f360bb0d8a8f007d166c34588838d3a2e3749c0a21e65d6
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
13
|
+
import type { ListAuctions200Response, ListDomainsWithUpdatedPricing200Response, PartnerDomainFindDto } from '../models/index';
|
|
14
14
|
export interface PartnerApiDomainsFindRequest {
|
|
15
15
|
rootName: string;
|
|
16
16
|
tld?: string;
|
|
@@ -31,11 +31,11 @@ export declare class PartnerApi extends runtime.BaseAPI {
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
*/
|
|
34
|
-
domainsFindRaw(requestParameters: PartnerApiDomainsFindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
34
|
+
domainsFindRaw(requestParameters: PartnerApiDomainsFindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PartnerDomainFindDto>>>;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
*/
|
|
38
|
-
domainsFind(requestParameters: PartnerApiDomainsFindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
38
|
+
domainsFind(requestParameters: PartnerApiDomainsFindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PartnerDomainFindDto>>;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
*/
|
package/dist/apis/PartnerApi.js
CHANGED
|
@@ -107,7 +107,7 @@ var PartnerApi = /** @class */ (function (_super) {
|
|
|
107
107
|
}, initOverrides)];
|
|
108
108
|
case 3:
|
|
109
109
|
response = _c.sent();
|
|
110
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.
|
|
110
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.PartnerDomainFindDtoFromJSON); })];
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
});
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
import type { DomainCategoryItemDto } from './DomainCategoryItemDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PartnerDomainFindDto
|
|
18
|
+
*/
|
|
19
|
+
export interface PartnerDomainFindDto {
|
|
20
|
+
/**
|
|
21
|
+
* The uuid for this domain.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof PartnerDomainFindDto
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The root domain name without TLD
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof PartnerDomainFindDto
|
|
30
|
+
*/
|
|
31
|
+
rootName: string;
|
|
32
|
+
/**
|
|
33
|
+
* The domain TLD
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof PartnerDomainFindDto
|
|
36
|
+
*/
|
|
37
|
+
tld: string;
|
|
38
|
+
/**
|
|
39
|
+
* Categories of the domain (parent + subcategory)
|
|
40
|
+
* @type {Array<DomainCategoryItemDto>}
|
|
41
|
+
* @memberof PartnerDomainFindDto
|
|
42
|
+
*/
|
|
43
|
+
categories: Array<DomainCategoryItemDto>;
|
|
44
|
+
/**
|
|
45
|
+
* The ASCII domain name (example.com, xn--maana-pta.com)
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof PartnerDomainFindDto
|
|
48
|
+
*/
|
|
49
|
+
name: string;
|
|
50
|
+
/**
|
|
51
|
+
* The unicode domain name (example.com, manana.com)
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof PartnerDomainFindDto
|
|
54
|
+
*/
|
|
55
|
+
displayName: string;
|
|
56
|
+
/**
|
|
57
|
+
* The buy now price
|
|
58
|
+
* @type {MoneyDto}
|
|
59
|
+
* @memberof PartnerDomainFindDto
|
|
60
|
+
*/
|
|
61
|
+
buyNow: MoneyDto | null;
|
|
62
|
+
/**
|
|
63
|
+
* The minimum offer price
|
|
64
|
+
* @type {MoneyDto}
|
|
65
|
+
* @memberof PartnerDomainFindDto
|
|
66
|
+
*/
|
|
67
|
+
minOffer: MoneyDto | null;
|
|
68
|
+
/**
|
|
69
|
+
* The updated date
|
|
70
|
+
* @type {Date}
|
|
71
|
+
* @memberof PartnerDomainFindDto
|
|
72
|
+
*/
|
|
73
|
+
updatedAt: Date;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the PartnerDomainFindDto interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfPartnerDomainFindDto(value: object): value is PartnerDomainFindDto;
|
|
79
|
+
export declare function PartnerDomainFindDtoFromJSON(json: any): PartnerDomainFindDto;
|
|
80
|
+
export declare function PartnerDomainFindDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerDomainFindDto;
|
|
81
|
+
export declare function PartnerDomainFindDtoToJSON(json: any): PartnerDomainFindDto;
|
|
82
|
+
export declare function PartnerDomainFindDtoToJSONTyped(value?: PartnerDomainFindDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,85 @@
|
|
|
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.instanceOfPartnerDomainFindDto = instanceOfPartnerDomainFindDto;
|
|
17
|
+
exports.PartnerDomainFindDtoFromJSON = PartnerDomainFindDtoFromJSON;
|
|
18
|
+
exports.PartnerDomainFindDtoFromJSONTyped = PartnerDomainFindDtoFromJSONTyped;
|
|
19
|
+
exports.PartnerDomainFindDtoToJSON = PartnerDomainFindDtoToJSON;
|
|
20
|
+
exports.PartnerDomainFindDtoToJSONTyped = PartnerDomainFindDtoToJSONTyped;
|
|
21
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
var DomainCategoryItemDto_1 = require("./DomainCategoryItemDto");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PartnerDomainFindDto interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPartnerDomainFindDto(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('rootName' in value) || value['rootName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('tld' in value) || value['tld'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('categories' in value) || value['categories'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('buyNow' in value) || value['buyNow'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('minOffer' in value) || value['minOffer'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function PartnerDomainFindDtoFromJSON(json) {
|
|
48
|
+
return PartnerDomainFindDtoFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function PartnerDomainFindDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'rootName': json['rootName'],
|
|
57
|
+
'tld': json['tld'],
|
|
58
|
+
'categories': (json['categories'].map(DomainCategoryItemDto_1.DomainCategoryItemDtoFromJSON)),
|
|
59
|
+
'name': json['name'],
|
|
60
|
+
'displayName': json['displayName'],
|
|
61
|
+
'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
62
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
63
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function PartnerDomainFindDtoToJSON(json) {
|
|
67
|
+
return PartnerDomainFindDtoToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function PartnerDomainFindDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
70
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'id': value['id'],
|
|
76
|
+
'rootName': value['rootName'],
|
|
77
|
+
'tld': value['tld'],
|
|
78
|
+
'categories': (value['categories'].map(DomainCategoryItemDto_1.DomainCategoryItemDtoToJSON)),
|
|
79
|
+
'name': value['name'],
|
|
80
|
+
'displayName': value['displayName'],
|
|
81
|
+
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
82
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
83
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
84
|
+
};
|
|
85
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -313,6 +313,7 @@ export * from './PaginateResponseLinks';
|
|
|
313
313
|
export * from './PaginateResponseMeta';
|
|
314
314
|
export * from './ParsedDomainDto';
|
|
315
315
|
export * from './PartnerAuctionDto';
|
|
316
|
+
export * from './PartnerDomainFindDto';
|
|
316
317
|
export * from './PayAccountPaymentInput';
|
|
317
318
|
export * from './PaymentMethodsStatsDto';
|
|
318
319
|
export * from './PrivateAccountGetMeResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -331,6 +331,7 @@ __exportStar(require("./PaginateResponseLinks"), exports);
|
|
|
331
331
|
__exportStar(require("./PaginateResponseMeta"), exports);
|
|
332
332
|
__exportStar(require("./ParsedDomainDto"), exports);
|
|
333
333
|
__exportStar(require("./PartnerAuctionDto"), exports);
|
|
334
|
+
__exportStar(require("./PartnerDomainFindDto"), exports);
|
|
334
335
|
__exportStar(require("./PayAccountPaymentInput"), exports);
|
|
335
336
|
__exportStar(require("./PaymentMethodsStatsDto"), exports);
|
|
336
337
|
__exportStar(require("./PrivateAccountGetMeResponse"), exports);
|
package/package.json
CHANGED
package/src/apis/PartnerApi.ts
CHANGED
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
DomainPricesChangeDto,
|
|
19
18
|
ListAuctions200Response,
|
|
20
19
|
ListDomainsWithUpdatedPricing200Response,
|
|
20
|
+
PartnerDomainFindDto,
|
|
21
21
|
ValidationException,
|
|
22
22
|
} from '../models/index';
|
|
23
23
|
import {
|
|
24
|
-
DomainPricesChangeDtoFromJSON,
|
|
25
|
-
DomainPricesChangeDtoToJSON,
|
|
26
24
|
ListAuctions200ResponseFromJSON,
|
|
27
25
|
ListAuctions200ResponseToJSON,
|
|
28
26
|
ListDomainsWithUpdatedPricing200ResponseFromJSON,
|
|
29
27
|
ListDomainsWithUpdatedPricing200ResponseToJSON,
|
|
28
|
+
PartnerDomainFindDtoFromJSON,
|
|
29
|
+
PartnerDomainFindDtoToJSON,
|
|
30
30
|
ValidationExceptionFromJSON,
|
|
31
31
|
ValidationExceptionToJSON,
|
|
32
32
|
} from '../models/index';
|
|
@@ -55,7 +55,7 @@ export class PartnerApi extends runtime.BaseAPI {
|
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
*/
|
|
58
|
-
async domainsFindRaw(requestParameters: PartnerApiDomainsFindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
58
|
+
async domainsFindRaw(requestParameters: PartnerApiDomainsFindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PartnerDomainFindDto>>> {
|
|
59
59
|
if (requestParameters['rootName'] == null) {
|
|
60
60
|
throw new runtime.RequiredError(
|
|
61
61
|
'rootName',
|
|
@@ -82,13 +82,13 @@ export class PartnerApi extends runtime.BaseAPI {
|
|
|
82
82
|
query: queryParameters,
|
|
83
83
|
}, initOverrides);
|
|
84
84
|
|
|
85
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
85
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PartnerDomainFindDtoFromJSON));
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
89
|
*
|
|
90
90
|
*/
|
|
91
|
-
async domainsFind(requestParameters: PartnerApiDomainsFindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
91
|
+
async domainsFind(requestParameters: PartnerApiDomainsFindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PartnerDomainFindDto>> {
|
|
92
92
|
const response = await this.domainsFindRaw(requestParameters, initOverrides);
|
|
93
93
|
return await response.value();
|
|
94
94
|
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
MoneyDtoToJSONTyped,
|
|
22
|
+
} from './MoneyDto';
|
|
23
|
+
import type { DomainCategoryItemDto } from './DomainCategoryItemDto';
|
|
24
|
+
import {
|
|
25
|
+
DomainCategoryItemDtoFromJSON,
|
|
26
|
+
DomainCategoryItemDtoFromJSONTyped,
|
|
27
|
+
DomainCategoryItemDtoToJSON,
|
|
28
|
+
DomainCategoryItemDtoToJSONTyped,
|
|
29
|
+
} from './DomainCategoryItemDto';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PartnerDomainFindDto
|
|
35
|
+
*/
|
|
36
|
+
export interface PartnerDomainFindDto {
|
|
37
|
+
/**
|
|
38
|
+
* The uuid for this domain.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PartnerDomainFindDto
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* The root domain name without TLD
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PartnerDomainFindDto
|
|
47
|
+
*/
|
|
48
|
+
rootName: string;
|
|
49
|
+
/**
|
|
50
|
+
* The domain TLD
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PartnerDomainFindDto
|
|
53
|
+
*/
|
|
54
|
+
tld: string;
|
|
55
|
+
/**
|
|
56
|
+
* Categories of the domain (parent + subcategory)
|
|
57
|
+
* @type {Array<DomainCategoryItemDto>}
|
|
58
|
+
* @memberof PartnerDomainFindDto
|
|
59
|
+
*/
|
|
60
|
+
categories: Array<DomainCategoryItemDto>;
|
|
61
|
+
/**
|
|
62
|
+
* The ASCII domain name (example.com, xn--maana-pta.com)
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PartnerDomainFindDto
|
|
65
|
+
*/
|
|
66
|
+
name: string;
|
|
67
|
+
/**
|
|
68
|
+
* The unicode domain name (example.com, manana.com)
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof PartnerDomainFindDto
|
|
71
|
+
*/
|
|
72
|
+
displayName: string;
|
|
73
|
+
/**
|
|
74
|
+
* The buy now price
|
|
75
|
+
* @type {MoneyDto}
|
|
76
|
+
* @memberof PartnerDomainFindDto
|
|
77
|
+
*/
|
|
78
|
+
buyNow: MoneyDto | null;
|
|
79
|
+
/**
|
|
80
|
+
* The minimum offer price
|
|
81
|
+
* @type {MoneyDto}
|
|
82
|
+
* @memberof PartnerDomainFindDto
|
|
83
|
+
*/
|
|
84
|
+
minOffer: MoneyDto | null;
|
|
85
|
+
/**
|
|
86
|
+
* The updated date
|
|
87
|
+
* @type {Date}
|
|
88
|
+
* @memberof PartnerDomainFindDto
|
|
89
|
+
*/
|
|
90
|
+
updatedAt: Date;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Check if a given object implements the PartnerDomainFindDto interface.
|
|
95
|
+
*/
|
|
96
|
+
export function instanceOfPartnerDomainFindDto(value: object): value is PartnerDomainFindDto {
|
|
97
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
98
|
+
if (!('rootName' in value) || value['rootName'] === undefined) return false;
|
|
99
|
+
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
100
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
101
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
102
|
+
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
103
|
+
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
104
|
+
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
105
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function PartnerDomainFindDtoFromJSON(json: any): PartnerDomainFindDto {
|
|
110
|
+
return PartnerDomainFindDtoFromJSONTyped(json, false);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function PartnerDomainFindDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerDomainFindDto {
|
|
114
|
+
if (json == null) {
|
|
115
|
+
return json;
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'id': json['id'],
|
|
120
|
+
'rootName': json['rootName'],
|
|
121
|
+
'tld': json['tld'],
|
|
122
|
+
'categories': ((json['categories'] as Array<any>).map(DomainCategoryItemDtoFromJSON)),
|
|
123
|
+
'name': json['name'],
|
|
124
|
+
'displayName': json['displayName'],
|
|
125
|
+
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
126
|
+
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
127
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function PartnerDomainFindDtoToJSON(json: any): PartnerDomainFindDto {
|
|
132
|
+
return PartnerDomainFindDtoToJSONTyped(json, false);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function PartnerDomainFindDtoToJSONTyped(value?: PartnerDomainFindDto | null, ignoreDiscriminator: boolean = false): any {
|
|
136
|
+
if (value == null) {
|
|
137
|
+
return value;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return {
|
|
141
|
+
|
|
142
|
+
'id': value['id'],
|
|
143
|
+
'rootName': value['rootName'],
|
|
144
|
+
'tld': value['tld'],
|
|
145
|
+
'categories': ((value['categories'] as Array<any>).map(DomainCategoryItemDtoToJSON)),
|
|
146
|
+
'name': value['name'],
|
|
147
|
+
'displayName': value['displayName'],
|
|
148
|
+
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
149
|
+
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
150
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -315,6 +315,7 @@ export * from './PaginateResponseLinks';
|
|
|
315
315
|
export * from './PaginateResponseMeta';
|
|
316
316
|
export * from './ParsedDomainDto';
|
|
317
317
|
export * from './PartnerAuctionDto';
|
|
318
|
+
export * from './PartnerDomainFindDto';
|
|
318
319
|
export * from './PayAccountPaymentInput';
|
|
319
320
|
export * from './PaymentMethodsStatsDto';
|
|
320
321
|
export * from './PrivateAccountGetMeResponse';
|