@randock/nameshift-api-client 0.0.358 → 0.0.359
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 -1
- package/README.md +3 -3
- package/dist/models/AdminAccountSettingsInput.d.ts +3 -3
- package/dist/models/AdminAccountSettingsInput.js +3 -3
- package/dist/models/AdminAuctionCommissionByDateRangeInput.d.ts +44 -0
- package/dist/models/AdminAuctionCommissionByDateRangeInput.js +57 -0
- package/dist/models/AdminAuctionConfigurationInput.d.ts +59 -0
- package/dist/models/AdminAuctionConfigurationInput.js +60 -0
- package/dist/models/AuctionCommissionByDateRangeDto.d.ts +44 -0
- package/dist/models/AuctionCommissionByDateRangeDto.js +59 -0
- package/dist/models/AuctionConfigurationDto.d.ts +13 -0
- package/dist/models/AuctionConfigurationDto.js +9 -0
- package/dist/models/MoneyDecimalDto.d.ts +38 -0
- package/dist/models/MoneyDecimalDto.js +55 -0
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- package/package.json +1 -1
- package/src/models/AdminAccountSettingsInput.ts +10 -10
- package/src/models/AdminAuctionCommissionByDateRangeInput.ts +83 -0
- package/src/models/AdminAuctionConfigurationInput.ts +119 -0
- package/src/models/AuctionCommissionByDateRangeDto.ts +84 -0
- package/src/models/AuctionConfigurationDto.ts +25 -0
- package/src/models/MoneyDecimalDto.ts +75 -0
- package/src/models/index.ts +4 -1
- package/dist/models/UpdateAuctionConfigurationDto.d.ts +0 -46
- package/dist/models/UpdateAuctionConfigurationDto.js +0 -55
- package/src/models/UpdateAuctionConfigurationDto.ts +0 -96
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
AdminAccountCommissionByDateRangeInputToJSON,
|
|
28
28
|
AdminAccountCommissionByDateRangeInputToJSONTyped,
|
|
29
29
|
} from './AdminAccountCommissionByDateRangeInput';
|
|
30
|
-
import type {
|
|
30
|
+
import type { AdminAuctionConfigurationInput } from './AdminAuctionConfigurationInput';
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from './
|
|
32
|
+
AdminAuctionConfigurationInputFromJSON,
|
|
33
|
+
AdminAuctionConfigurationInputFromJSONTyped,
|
|
34
|
+
AdminAuctionConfigurationInputToJSON,
|
|
35
|
+
AdminAuctionConfigurationInputToJSONTyped,
|
|
36
|
+
} from './AdminAuctionConfigurationInput';
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
@@ -79,10 +79,10 @@ export interface AdminAccountSettingsInput {
|
|
|
79
79
|
domainAffiliate?: AdminAccountSettingsAffiliateInput;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
|
-
* @type {
|
|
82
|
+
* @type {AdminAuctionConfigurationInput}
|
|
83
83
|
* @memberof AdminAccountSettingsInput
|
|
84
84
|
*/
|
|
85
|
-
auctionConfiguration?:
|
|
85
|
+
auctionConfiguration?: AdminAuctionConfigurationInput;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/**
|
|
@@ -108,7 +108,7 @@ export function AdminAccountSettingsInputFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
108
108
|
'commissionsByDateRange': json['commissionsByDateRange'] == null ? undefined : ((json['commissionsByDateRange'] as Array<any>).map(AdminAccountCommissionByDateRangeInputFromJSON)),
|
|
109
109
|
'affiliate': json['affiliate'] == null ? undefined : AdminAccountSettingsAffiliateInputFromJSON(json['affiliate']),
|
|
110
110
|
'domainAffiliate': json['domainAffiliate'] == null ? undefined : AdminAccountSettingsAffiliateInputFromJSON(json['domainAffiliate']),
|
|
111
|
-
'auctionConfiguration': json['auctionConfiguration'] == null ? undefined :
|
|
111
|
+
'auctionConfiguration': json['auctionConfiguration'] == null ? undefined : AdminAuctionConfigurationInputFromJSON(json['auctionConfiguration']),
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -129,7 +129,7 @@ export function AdminAccountSettingsInputToJSONTyped(value?: AdminAccountSetting
|
|
|
129
129
|
'commissionsByDateRange': value['commissionsByDateRange'] == null ? undefined : ((value['commissionsByDateRange'] as Array<any>).map(AdminAccountCommissionByDateRangeInputToJSON)),
|
|
130
130
|
'affiliate': AdminAccountSettingsAffiliateInputToJSON(value['affiliate']),
|
|
131
131
|
'domainAffiliate': AdminAccountSettingsAffiliateInputToJSON(value['domainAffiliate']),
|
|
132
|
-
'auctionConfiguration':
|
|
132
|
+
'auctionConfiguration': AdminAuctionConfigurationInputToJSON(value['auctionConfiguration']),
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AdminAuctionCommissionByDateRangeInput
|
|
20
|
+
*/
|
|
21
|
+
export interface AdminAuctionCommissionByDateRangeInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AdminAuctionCommissionByDateRangeInput
|
|
26
|
+
*/
|
|
27
|
+
startDate: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AdminAuctionCommissionByDateRangeInput
|
|
32
|
+
*/
|
|
33
|
+
endDate?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof AdminAuctionCommissionByDateRangeInput
|
|
38
|
+
*/
|
|
39
|
+
commissionPercentage: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the AdminAuctionCommissionByDateRangeInput interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfAdminAuctionCommissionByDateRangeInput(value: object): value is AdminAuctionCommissionByDateRangeInput {
|
|
46
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
47
|
+
if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined) return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function AdminAuctionCommissionByDateRangeInputFromJSON(json: any): AdminAuctionCommissionByDateRangeInput {
|
|
52
|
+
return AdminAuctionCommissionByDateRangeInputFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function AdminAuctionCommissionByDateRangeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAuctionCommissionByDateRangeInput {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'startDate': json['startDate'],
|
|
62
|
+
'endDate': json['endDate'] == null ? undefined : json['endDate'],
|
|
63
|
+
'commissionPercentage': json['commissionPercentage'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function AdminAuctionCommissionByDateRangeInputToJSON(json: any): AdminAuctionCommissionByDateRangeInput {
|
|
68
|
+
return AdminAuctionCommissionByDateRangeInputToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function AdminAuctionCommissionByDateRangeInputToJSONTyped(value?: AdminAuctionCommissionByDateRangeInput | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'startDate': value['startDate'],
|
|
79
|
+
'endDate': value['endDate'],
|
|
80
|
+
'commissionPercentage': value['commissionPercentage'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
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 { AuctionDurationDto } from './AuctionDurationDto';
|
|
17
|
+
import {
|
|
18
|
+
AuctionDurationDtoFromJSON,
|
|
19
|
+
AuctionDurationDtoFromJSONTyped,
|
|
20
|
+
AuctionDurationDtoToJSON,
|
|
21
|
+
AuctionDurationDtoToJSONTyped,
|
|
22
|
+
} from './AuctionDurationDto';
|
|
23
|
+
import type { AdminAuctionCommissionByDateRangeInput } from './AdminAuctionCommissionByDateRangeInput';
|
|
24
|
+
import {
|
|
25
|
+
AdminAuctionCommissionByDateRangeInputFromJSON,
|
|
26
|
+
AdminAuctionCommissionByDateRangeInputFromJSONTyped,
|
|
27
|
+
AdminAuctionCommissionByDateRangeInputToJSON,
|
|
28
|
+
AdminAuctionCommissionByDateRangeInputToJSONTyped,
|
|
29
|
+
} from './AdminAuctionCommissionByDateRangeInput';
|
|
30
|
+
import type { MoneyDecimalDto } from './MoneyDecimalDto';
|
|
31
|
+
import {
|
|
32
|
+
MoneyDecimalDtoFromJSON,
|
|
33
|
+
MoneyDecimalDtoFromJSONTyped,
|
|
34
|
+
MoneyDecimalDtoToJSON,
|
|
35
|
+
MoneyDecimalDtoToJSONTyped,
|
|
36
|
+
} from './MoneyDecimalDto';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface AdminAuctionConfigurationInput
|
|
42
|
+
*/
|
|
43
|
+
export interface AdminAuctionConfigurationInput {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {AuctionDurationDto}
|
|
47
|
+
* @memberof AdminAuctionConfigurationInput
|
|
48
|
+
*/
|
|
49
|
+
defaultDurationFromLead?: AuctionDurationDto;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof AdminAuctionConfigurationInput
|
|
54
|
+
*/
|
|
55
|
+
defaultInitialBidAmount?: number;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {MoneyDecimalDto}
|
|
59
|
+
* @memberof AdminAuctionConfigurationInput
|
|
60
|
+
*/
|
|
61
|
+
paidAuctionPrice?: MoneyDecimalDto;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof AdminAuctionConfigurationInput
|
|
66
|
+
*/
|
|
67
|
+
commissionPercentage?: number;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<AdminAuctionCommissionByDateRangeInput>}
|
|
71
|
+
* @memberof AdminAuctionConfigurationInput
|
|
72
|
+
*/
|
|
73
|
+
commissionsByDateRange?: Array<AdminAuctionCommissionByDateRangeInput>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the AdminAuctionConfigurationInput interface.
|
|
78
|
+
*/
|
|
79
|
+
export function instanceOfAdminAuctionConfigurationInput(value: object): value is AdminAuctionConfigurationInput {
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function AdminAuctionConfigurationInputFromJSON(json: any): AdminAuctionConfigurationInput {
|
|
84
|
+
return AdminAuctionConfigurationInputFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function AdminAuctionConfigurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAuctionConfigurationInput {
|
|
88
|
+
if (json == null) {
|
|
89
|
+
return json;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'defaultDurationFromLead': json['defaultDurationFromLead'] == null ? undefined : AuctionDurationDtoFromJSON(json['defaultDurationFromLead']),
|
|
94
|
+
'defaultInitialBidAmount': json['defaultInitialBidAmount'] == null ? undefined : json['defaultInitialBidAmount'],
|
|
95
|
+
'paidAuctionPrice': json['paidAuctionPrice'] == null ? undefined : MoneyDecimalDtoFromJSON(json['paidAuctionPrice']),
|
|
96
|
+
'commissionPercentage': json['commissionPercentage'] == null ? undefined : json['commissionPercentage'],
|
|
97
|
+
'commissionsByDateRange': json['commissionsByDateRange'] == null ? undefined : ((json['commissionsByDateRange'] as Array<any>).map(AdminAuctionCommissionByDateRangeInputFromJSON)),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function AdminAuctionConfigurationInputToJSON(json: any): AdminAuctionConfigurationInput {
|
|
102
|
+
return AdminAuctionConfigurationInputToJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function AdminAuctionConfigurationInputToJSONTyped(value?: AdminAuctionConfigurationInput | null, ignoreDiscriminator: boolean = false): any {
|
|
106
|
+
if (value == null) {
|
|
107
|
+
return value;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'defaultDurationFromLead': AuctionDurationDtoToJSON(value['defaultDurationFromLead']),
|
|
113
|
+
'defaultInitialBidAmount': value['defaultInitialBidAmount'],
|
|
114
|
+
'paidAuctionPrice': MoneyDecimalDtoToJSON(value['paidAuctionPrice']),
|
|
115
|
+
'commissionPercentage': value['commissionPercentage'],
|
|
116
|
+
'commissionsByDateRange': value['commissionsByDateRange'] == null ? undefined : ((value['commissionsByDateRange'] as Array<any>).map(AdminAuctionCommissionByDateRangeInputToJSON)),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AuctionCommissionByDateRangeDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AuctionCommissionByDateRangeDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AuctionCommissionByDateRangeDto
|
|
26
|
+
*/
|
|
27
|
+
start: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AuctionCommissionByDateRangeDto
|
|
32
|
+
*/
|
|
33
|
+
end: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof AuctionCommissionByDateRangeDto
|
|
38
|
+
*/
|
|
39
|
+
commissionPercentage: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the AuctionCommissionByDateRangeDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfAuctionCommissionByDateRangeDto(value: object): value is AuctionCommissionByDateRangeDto {
|
|
46
|
+
if (!('start' in value) || value['start'] === undefined) return false;
|
|
47
|
+
if (!('end' in value) || value['end'] === undefined) return false;
|
|
48
|
+
if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AuctionCommissionByDateRangeDtoFromJSON(json: any): AuctionCommissionByDateRangeDto {
|
|
53
|
+
return AuctionCommissionByDateRangeDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AuctionCommissionByDateRangeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionCommissionByDateRangeDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'start': json['start'],
|
|
63
|
+
'end': json['end'],
|
|
64
|
+
'commissionPercentage': json['commissionPercentage'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function AuctionCommissionByDateRangeDtoToJSON(json: any): AuctionCommissionByDateRangeDto {
|
|
69
|
+
return AuctionCommissionByDateRangeDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function AuctionCommissionByDateRangeDtoToJSONTyped(value?: AuctionCommissionByDateRangeDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'start': value['start'],
|
|
80
|
+
'end': value['end'],
|
|
81
|
+
'commissionPercentage': value['commissionPercentage'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
AuctionDurationDtoToJSON,
|
|
21
21
|
AuctionDurationDtoToJSONTyped,
|
|
22
22
|
} from './AuctionDurationDto';
|
|
23
|
+
import type { AuctionCommissionByDateRangeDto } from './AuctionCommissionByDateRangeDto';
|
|
24
|
+
import {
|
|
25
|
+
AuctionCommissionByDateRangeDtoFromJSON,
|
|
26
|
+
AuctionCommissionByDateRangeDtoFromJSONTyped,
|
|
27
|
+
AuctionCommissionByDateRangeDtoToJSON,
|
|
28
|
+
AuctionCommissionByDateRangeDtoToJSONTyped,
|
|
29
|
+
} from './AuctionCommissionByDateRangeDto';
|
|
23
30
|
import type { MoneyDto } from './MoneyDto';
|
|
24
31
|
import {
|
|
25
32
|
MoneyDtoFromJSON,
|
|
@@ -52,6 +59,18 @@ export interface AuctionConfigurationDto {
|
|
|
52
59
|
* @memberof AuctionConfigurationDto
|
|
53
60
|
*/
|
|
54
61
|
paidAuctionPrice: MoneyDto;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof AuctionConfigurationDto
|
|
66
|
+
*/
|
|
67
|
+
commissionPercentage: number;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<AuctionCommissionByDateRangeDto>}
|
|
71
|
+
* @memberof AuctionConfigurationDto
|
|
72
|
+
*/
|
|
73
|
+
commissionsByDateRange: Array<AuctionCommissionByDateRangeDto>;
|
|
55
74
|
}
|
|
56
75
|
|
|
57
76
|
/**
|
|
@@ -61,6 +80,8 @@ export function instanceOfAuctionConfigurationDto(value: object): value is Aucti
|
|
|
61
80
|
if (!('defaultDurationFromLead' in value) || value['defaultDurationFromLead'] === undefined) return false;
|
|
62
81
|
if (!('defaultInitialBidAmount' in value) || value['defaultInitialBidAmount'] === undefined) return false;
|
|
63
82
|
if (!('paidAuctionPrice' in value) || value['paidAuctionPrice'] === undefined) return false;
|
|
83
|
+
if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined) return false;
|
|
84
|
+
if (!('commissionsByDateRange' in value) || value['commissionsByDateRange'] === undefined) return false;
|
|
64
85
|
return true;
|
|
65
86
|
}
|
|
66
87
|
|
|
@@ -77,6 +98,8 @@ export function AuctionConfigurationDtoFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
77
98
|
'defaultDurationFromLead': AuctionDurationDtoFromJSON(json['defaultDurationFromLead']),
|
|
78
99
|
'defaultInitialBidAmount': json['defaultInitialBidAmount'],
|
|
79
100
|
'paidAuctionPrice': MoneyDtoFromJSON(json['paidAuctionPrice']),
|
|
101
|
+
'commissionPercentage': json['commissionPercentage'],
|
|
102
|
+
'commissionsByDateRange': ((json['commissionsByDateRange'] as Array<any>).map(AuctionCommissionByDateRangeDtoFromJSON)),
|
|
80
103
|
};
|
|
81
104
|
}
|
|
82
105
|
|
|
@@ -94,6 +117,8 @@ export function AuctionConfigurationDtoToJSONTyped(value?: AuctionConfigurationD
|
|
|
94
117
|
'defaultDurationFromLead': AuctionDurationDtoToJSON(value['defaultDurationFromLead']),
|
|
95
118
|
'defaultInitialBidAmount': value['defaultInitialBidAmount'],
|
|
96
119
|
'paidAuctionPrice': MoneyDtoToJSON(value['paidAuctionPrice']),
|
|
120
|
+
'commissionPercentage': value['commissionPercentage'],
|
|
121
|
+
'commissionsByDateRange': ((value['commissionsByDateRange'] as Array<any>).map(AuctionCommissionByDateRangeDtoToJSON)),
|
|
97
122
|
};
|
|
98
123
|
}
|
|
99
124
|
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface MoneyDecimalDto
|
|
20
|
+
*/
|
|
21
|
+
export interface MoneyDecimalDto {
|
|
22
|
+
/**
|
|
23
|
+
* Monetary amount, represented as an integer without scale/decimals.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof MoneyDecimalDto
|
|
26
|
+
*/
|
|
27
|
+
amount: number;
|
|
28
|
+
/**
|
|
29
|
+
* Three letter ISO currency code
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MoneyDecimalDto
|
|
32
|
+
*/
|
|
33
|
+
currencyCode: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the MoneyDecimalDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfMoneyDecimalDto(value: object): value is MoneyDecimalDto {
|
|
40
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
41
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function MoneyDecimalDtoFromJSON(json: any): MoneyDecimalDto {
|
|
46
|
+
return MoneyDecimalDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function MoneyDecimalDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyDecimalDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'amount': json['amount'],
|
|
56
|
+
'currencyCode': json['currencyCode'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function MoneyDecimalDtoToJSON(json: any): MoneyDecimalDto {
|
|
61
|
+
return MoneyDecimalDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function MoneyDecimalDtoToJSONTyped(value?: MoneyDecimalDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'amount': value['amount'],
|
|
72
|
+
'currencyCode': value['currencyCode'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -31,6 +31,8 @@ export * from './AdminAccountSettingsAffiliateCommissionInput';
|
|
|
31
31
|
export * from './AdminAccountSettingsAffiliateInput';
|
|
32
32
|
export * from './AdminAccountSettingsAffiliateReferralDurationInput';
|
|
33
33
|
export * from './AdminAccountSettingsInput';
|
|
34
|
+
export * from './AdminAuctionCommissionByDateRangeInput';
|
|
35
|
+
export * from './AdminAuctionConfigurationInput';
|
|
34
36
|
export * from './AdminBankAccountDto';
|
|
35
37
|
export * from './AdminCompanyStatsDto';
|
|
36
38
|
export * from './AdminCompanyStatsLedger';
|
|
@@ -49,6 +51,7 @@ export * from './AuctionBidInput';
|
|
|
49
51
|
export * from './AuctionBidMetricsDto';
|
|
50
52
|
export * from './AuctionBuyerDto';
|
|
51
53
|
export * from './AuctionBuyerWithTokenDto';
|
|
54
|
+
export * from './AuctionCommissionByDateRangeDto';
|
|
52
55
|
export * from './AuctionConfigurationDto';
|
|
53
56
|
export * from './AuctionDto';
|
|
54
57
|
export * from './AuctionDurationDto';
|
|
@@ -226,6 +229,7 @@ export * from './MajesticMetrics';
|
|
|
226
229
|
export * from './MajesticTopicTrustFlow';
|
|
227
230
|
export * from './ManualLeadBuyerDto';
|
|
228
231
|
export * from './ManualLeadLeaseToOwnDto';
|
|
232
|
+
export * from './MoneyDecimalDto';
|
|
229
233
|
export * from './MoneyDto';
|
|
230
234
|
export * from './MoneyInput';
|
|
231
235
|
export * from './MozMetrics';
|
|
@@ -341,7 +345,6 @@ export * from './TimeTableConfigurationDto';
|
|
|
341
345
|
export * from './TimeTableConfigurationInput';
|
|
342
346
|
export * from './UkBankAccountDetails';
|
|
343
347
|
export * from './UpdateAccountBillingInformationInput';
|
|
344
|
-
export * from './UpdateAuctionConfigurationDto';
|
|
345
348
|
export * from './UpdateAuctionMuteStatusInput';
|
|
346
349
|
export * from './UpdateBuyerDomainTransferIpsTagInputDto';
|
|
347
350
|
export * from './UpdateBuyerNotificationSettingsInput';
|
|
@@ -1,46 +0,0 @@
|
|
|
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 { AuctionDurationDto } from './AuctionDurationDto';
|
|
13
|
-
import type { MoneyDto } from './MoneyDto';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface UpdateAuctionConfigurationDto
|
|
18
|
-
*/
|
|
19
|
-
export interface UpdateAuctionConfigurationDto {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {AuctionDurationDto}
|
|
23
|
-
* @memberof UpdateAuctionConfigurationDto
|
|
24
|
-
*/
|
|
25
|
-
defaultDurationFromLead?: AuctionDurationDto;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {number}
|
|
29
|
-
* @memberof UpdateAuctionConfigurationDto
|
|
30
|
-
*/
|
|
31
|
-
defaultInitialBidAmount?: number;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {MoneyDto}
|
|
35
|
-
* @memberof UpdateAuctionConfigurationDto
|
|
36
|
-
*/
|
|
37
|
-
paidAuctionPrice?: MoneyDto;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Check if a given object implements the UpdateAuctionConfigurationDto interface.
|
|
41
|
-
*/
|
|
42
|
-
export declare function instanceOfUpdateAuctionConfigurationDto(value: object): value is UpdateAuctionConfigurationDto;
|
|
43
|
-
export declare function UpdateAuctionConfigurationDtoFromJSON(json: any): UpdateAuctionConfigurationDto;
|
|
44
|
-
export declare function UpdateAuctionConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAuctionConfigurationDto;
|
|
45
|
-
export declare function UpdateAuctionConfigurationDtoToJSON(json: any): UpdateAuctionConfigurationDto;
|
|
46
|
-
export declare function UpdateAuctionConfigurationDtoToJSONTyped(value?: UpdateAuctionConfigurationDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,55 +0,0 @@
|
|
|
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.instanceOfUpdateAuctionConfigurationDto = instanceOfUpdateAuctionConfigurationDto;
|
|
17
|
-
exports.UpdateAuctionConfigurationDtoFromJSON = UpdateAuctionConfigurationDtoFromJSON;
|
|
18
|
-
exports.UpdateAuctionConfigurationDtoFromJSONTyped = UpdateAuctionConfigurationDtoFromJSONTyped;
|
|
19
|
-
exports.UpdateAuctionConfigurationDtoToJSON = UpdateAuctionConfigurationDtoToJSON;
|
|
20
|
-
exports.UpdateAuctionConfigurationDtoToJSONTyped = UpdateAuctionConfigurationDtoToJSONTyped;
|
|
21
|
-
var AuctionDurationDto_1 = require("./AuctionDurationDto");
|
|
22
|
-
var MoneyDto_1 = require("./MoneyDto");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the UpdateAuctionConfigurationDto interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfUpdateAuctionConfigurationDto(value) {
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function UpdateAuctionConfigurationDtoFromJSON(json) {
|
|
30
|
-
return UpdateAuctionConfigurationDtoFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function UpdateAuctionConfigurationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'defaultDurationFromLead': json['defaultDurationFromLead'] == null ? undefined : (0, AuctionDurationDto_1.AuctionDurationDtoFromJSON)(json['defaultDurationFromLead']),
|
|
38
|
-
'defaultInitialBidAmount': json['defaultInitialBidAmount'] == null ? undefined : json['defaultInitialBidAmount'],
|
|
39
|
-
'paidAuctionPrice': json['paidAuctionPrice'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['paidAuctionPrice']),
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
function UpdateAuctionConfigurationDtoToJSON(json) {
|
|
43
|
-
return UpdateAuctionConfigurationDtoToJSONTyped(json, false);
|
|
44
|
-
}
|
|
45
|
-
function UpdateAuctionConfigurationDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
-
if (value == null) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'defaultDurationFromLead': (0, AuctionDurationDto_1.AuctionDurationDtoToJSON)(value['defaultDurationFromLead']),
|
|
52
|
-
'defaultInitialBidAmount': value['defaultInitialBidAmount'],
|
|
53
|
-
'paidAuctionPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['paidAuctionPrice']),
|
|
54
|
-
};
|
|
55
|
-
}
|