@randock/nameshift-api-client 0.0.396 → 0.0.398
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/models/AdminDashboardStatsDto.d.ts +7 -0
- package/dist/models/AdminDashboardStatsDto.js +5 -0
- package/dist/models/AuctionsStatsDto.d.ts +0 -12
- package/dist/models/AuctionsStatsDto.js +0 -8
- package/dist/models/TopAffiliateSellerDto.d.ts +44 -0
- package/dist/models/TopAffiliateSellerDto.js +59 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/AdminDashboardStatsDto.ts +16 -0
- package/src/models/AuctionsStatsDto.ts +0 -18
- package/src/models/TopAffiliateSellerDto.ts +84 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -452,6 +452,7 @@ src/models/TaskListLeadOfferDto.ts
|
|
|
452
452
|
src/models/TaskListLeadRentConfigurationDto.ts
|
|
453
453
|
src/models/TimeTableConfigurationDto.ts
|
|
454
454
|
src/models/TimeTableConfigurationInput.ts
|
|
455
|
+
src/models/TopAffiliateSellerDto.ts
|
|
455
456
|
src/models/TopSellerAccountDto.ts
|
|
456
457
|
src/models/UkBankAccountDetails.ts
|
|
457
458
|
src/models/UpdateAccountBillingInformationInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.398
|
|
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.398 --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
|
+
610be7fceb41aba8636e57f473774b453b12e59deff051fa34367e109fd0033b0d6d91dc2339cc48ec38bcd254a1ac51
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { CommissionsStatsDto } from './CommissionsStatsDto';
|
|
13
13
|
import type { AccountsStatsDto } from './AccountsStatsDto';
|
|
14
|
+
import type { TopAffiliateSellerDto } from './TopAffiliateSellerDto';
|
|
14
15
|
import type { AffiliatesStatsDto } from './AffiliatesStatsDto';
|
|
15
16
|
import type { AuctionsStatsDto } from './AuctionsStatsDto';
|
|
16
17
|
import type { AccountCountryStatsDto } from './AccountCountryStatsDto';
|
|
@@ -52,6 +53,12 @@ export interface AdminDashboardStatsDto {
|
|
|
52
53
|
* @memberof AdminDashboardStatsDto
|
|
53
54
|
*/
|
|
54
55
|
topSellerAccounts: Array<TopSellerAccountDto>;
|
|
56
|
+
/**
|
|
57
|
+
* Top affiliate accounts by number of paid buyer sales that used their affiliate code
|
|
58
|
+
* @type {Array<TopAffiliateSellerDto>}
|
|
59
|
+
* @memberof AdminDashboardStatsDto
|
|
60
|
+
*/
|
|
61
|
+
topAffiliateSellers: Array<TopAffiliateSellerDto>;
|
|
55
62
|
/**
|
|
56
63
|
* Total number of invoices with target buyer (with Bait state condition)
|
|
57
64
|
* @type {number}
|
|
@@ -20,6 +20,7 @@ exports.AdminDashboardStatsDtoToJSON = AdminDashboardStatsDtoToJSON;
|
|
|
20
20
|
exports.AdminDashboardStatsDtoToJSONTyped = AdminDashboardStatsDtoToJSONTyped;
|
|
21
21
|
var CommissionsStatsDto_1 = require("./CommissionsStatsDto");
|
|
22
22
|
var AccountsStatsDto_1 = require("./AccountsStatsDto");
|
|
23
|
+
var TopAffiliateSellerDto_1 = require("./TopAffiliateSellerDto");
|
|
23
24
|
var AffiliatesStatsDto_1 = require("./AffiliatesStatsDto");
|
|
24
25
|
var AuctionsStatsDto_1 = require("./AuctionsStatsDto");
|
|
25
26
|
var AccountCountryStatsDto_1 = require("./AccountCountryStatsDto");
|
|
@@ -39,6 +40,8 @@ function instanceOfAdminDashboardStatsDto(value) {
|
|
|
39
40
|
return false;
|
|
40
41
|
if (!('topSellerAccounts' in value) || value['topSellerAccounts'] === undefined)
|
|
41
42
|
return false;
|
|
43
|
+
if (!('topAffiliateSellers' in value) || value['topAffiliateSellers'] === undefined)
|
|
44
|
+
return false;
|
|
42
45
|
if (!('totalSalesNumber' in value) || value['totalSalesNumber'] === undefined)
|
|
43
46
|
return false;
|
|
44
47
|
if (!('averageSalePriceEur' in value) || value['averageSalePriceEur'] === undefined)
|
|
@@ -62,6 +65,7 @@ function AdminDashboardStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
65
|
'accounts': (0, AccountsStatsDto_1.AccountsStatsDtoFromJSON)(json['accounts']),
|
|
63
66
|
'accountCountries': (json['accountCountries'].map(AccountCountryStatsDto_1.AccountCountryStatsDtoFromJSON)),
|
|
64
67
|
'topSellerAccounts': (json['topSellerAccounts'].map(TopSellerAccountDto_1.TopSellerAccountDtoFromJSON)),
|
|
68
|
+
'topAffiliateSellers': (json['topAffiliateSellers'].map(TopAffiliateSellerDto_1.TopAffiliateSellerDtoFromJSON)),
|
|
65
69
|
'totalSalesNumber': json['totalSalesNumber'],
|
|
66
70
|
'averageSalePriceEur': json['averageSalePriceEur'],
|
|
67
71
|
'commissions': (0, CommissionsStatsDto_1.CommissionsStatsDtoFromJSON)(json['commissions']),
|
|
@@ -82,6 +86,7 @@ function AdminDashboardStatsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
82
86
|
'accounts': (0, AccountsStatsDto_1.AccountsStatsDtoToJSON)(value['accounts']),
|
|
83
87
|
'accountCountries': (value['accountCountries'].map(AccountCountryStatsDto_1.AccountCountryStatsDtoToJSON)),
|
|
84
88
|
'topSellerAccounts': (value['topSellerAccounts'].map(TopSellerAccountDto_1.TopSellerAccountDtoToJSON)),
|
|
89
|
+
'topAffiliateSellers': (value['topAffiliateSellers'].map(TopAffiliateSellerDto_1.TopAffiliateSellerDtoToJSON)),
|
|
85
90
|
'totalSalesNumber': value['totalSalesNumber'],
|
|
86
91
|
'averageSalePriceEur': value['averageSalePriceEur'],
|
|
87
92
|
'commissions': (0, CommissionsStatsDto_1.CommissionsStatsDtoToJSON)(value['commissions']),
|
|
@@ -27,18 +27,6 @@ export interface AuctionsStatsDto {
|
|
|
27
27
|
* @memberof AuctionsStatsDto
|
|
28
28
|
*/
|
|
29
29
|
totalAuctionsCount: number;
|
|
30
|
-
/**
|
|
31
|
-
* Number of finished auctions that ended with a sale (had a bid)
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof AuctionsStatsDto
|
|
34
|
-
*/
|
|
35
|
-
finishedAuctionsWithSaleCount: number;
|
|
36
|
-
/**
|
|
37
|
-
* Number of finished auctions that ended without a sale (no bid)
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof AuctionsStatsDto
|
|
40
|
-
*/
|
|
41
|
-
finishedAuctionsWithoutSaleCount: number;
|
|
42
30
|
/**
|
|
43
31
|
* Total number of distinct accounts that use paid auctions
|
|
44
32
|
* @type {number}
|
|
@@ -26,10 +26,6 @@ function instanceOfAuctionsStatsDto(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('totalAuctionsCount' in value) || value['totalAuctionsCount'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('finishedAuctionsWithSaleCount' in value) || value['finishedAuctionsWithSaleCount'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('finishedAuctionsWithoutSaleCount' in value) || value['finishedAuctionsWithoutSaleCount'] === undefined)
|
|
32
|
-
return false;
|
|
33
29
|
if (!('accountsUsingPaidAuctionsCount' in value) || value['accountsUsingPaidAuctionsCount'] === undefined)
|
|
34
30
|
return false;
|
|
35
31
|
return true;
|
|
@@ -44,8 +40,6 @@ function AuctionsStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
40
|
return {
|
|
45
41
|
'paidAuctionsCount': json['paidAuctionsCount'],
|
|
46
42
|
'totalAuctionsCount': json['totalAuctionsCount'],
|
|
47
|
-
'finishedAuctionsWithSaleCount': json['finishedAuctionsWithSaleCount'],
|
|
48
|
-
'finishedAuctionsWithoutSaleCount': json['finishedAuctionsWithoutSaleCount'],
|
|
49
43
|
'accountsUsingPaidAuctionsCount': json['accountsUsingPaidAuctionsCount'],
|
|
50
44
|
};
|
|
51
45
|
}
|
|
@@ -60,8 +54,6 @@ function AuctionsStatsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
60
54
|
return {
|
|
61
55
|
'paidAuctionsCount': value['paidAuctionsCount'],
|
|
62
56
|
'totalAuctionsCount': value['totalAuctionsCount'],
|
|
63
|
-
'finishedAuctionsWithSaleCount': value['finishedAuctionsWithSaleCount'],
|
|
64
|
-
'finishedAuctionsWithoutSaleCount': value['finishedAuctionsWithoutSaleCount'],
|
|
65
57
|
'accountsUsingPaidAuctionsCount': value['accountsUsingPaidAuctionsCount'],
|
|
66
58
|
};
|
|
67
59
|
}
|
|
@@ -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 TopAffiliateSellerDto
|
|
16
|
+
*/
|
|
17
|
+
export interface TopAffiliateSellerDto {
|
|
18
|
+
/**
|
|
19
|
+
* Account whose affiliate code was used (order or subscription affiliate_account_id)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TopAffiliateSellerDto
|
|
22
|
+
*/
|
|
23
|
+
identifier: string;
|
|
24
|
+
/**
|
|
25
|
+
* Affiliate account name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TopAffiliateSellerDto
|
|
28
|
+
*/
|
|
29
|
+
name: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Number of paid buyer invoices where this account is the attributed affiliate
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof TopAffiliateSellerDto
|
|
34
|
+
*/
|
|
35
|
+
affiliateSalesCount: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TopAffiliateSellerDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfTopAffiliateSellerDto(value: object): value is TopAffiliateSellerDto;
|
|
41
|
+
export declare function TopAffiliateSellerDtoFromJSON(json: any): TopAffiliateSellerDto;
|
|
42
|
+
export declare function TopAffiliateSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TopAffiliateSellerDto;
|
|
43
|
+
export declare function TopAffiliateSellerDtoToJSON(json: any): TopAffiliateSellerDto;
|
|
44
|
+
export declare function TopAffiliateSellerDtoToJSONTyped(value?: TopAffiliateSellerDto | 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.instanceOfTopAffiliateSellerDto = instanceOfTopAffiliateSellerDto;
|
|
17
|
+
exports.TopAffiliateSellerDtoFromJSON = TopAffiliateSellerDtoFromJSON;
|
|
18
|
+
exports.TopAffiliateSellerDtoFromJSONTyped = TopAffiliateSellerDtoFromJSONTyped;
|
|
19
|
+
exports.TopAffiliateSellerDtoToJSON = TopAffiliateSellerDtoToJSON;
|
|
20
|
+
exports.TopAffiliateSellerDtoToJSONTyped = TopAffiliateSellerDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TopAffiliateSellerDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTopAffiliateSellerDto(value) {
|
|
25
|
+
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('affiliateSalesCount' in value) || value['affiliateSalesCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function TopAffiliateSellerDtoFromJSON(json) {
|
|
34
|
+
return TopAffiliateSellerDtoFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function TopAffiliateSellerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'identifier': json['identifier'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'affiliateSalesCount': json['affiliateSalesCount'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function TopAffiliateSellerDtoToJSON(json) {
|
|
47
|
+
return TopAffiliateSellerDtoToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function TopAffiliateSellerDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'identifier': value['identifier'],
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'affiliateSalesCount': value['affiliateSalesCount'],
|
|
58
|
+
};
|
|
59
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -416,6 +416,7 @@ export * from './TaskListLeadOfferDto';
|
|
|
416
416
|
export * from './TaskListLeadRentConfigurationDto';
|
|
417
417
|
export * from './TimeTableConfigurationDto';
|
|
418
418
|
export * from './TimeTableConfigurationInput';
|
|
419
|
+
export * from './TopAffiliateSellerDto';
|
|
419
420
|
export * from './TopSellerAccountDto';
|
|
420
421
|
export * from './UkBankAccountDetails';
|
|
421
422
|
export * from './UpdateAccountBillingInformationInput';
|
package/dist/models/index.js
CHANGED
|
@@ -434,6 +434,7 @@ __exportStar(require("./TaskListLeadOfferDto"), exports);
|
|
|
434
434
|
__exportStar(require("./TaskListLeadRentConfigurationDto"), exports);
|
|
435
435
|
__exportStar(require("./TimeTableConfigurationDto"), exports);
|
|
436
436
|
__exportStar(require("./TimeTableConfigurationInput"), exports);
|
|
437
|
+
__exportStar(require("./TopAffiliateSellerDto"), exports);
|
|
437
438
|
__exportStar(require("./TopSellerAccountDto"), exports);
|
|
438
439
|
__exportStar(require("./UkBankAccountDetails"), exports);
|
|
439
440
|
__exportStar(require("./UpdateAccountBillingInformationInput"), exports);
|
package/package.json
CHANGED
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
AccountsStatsDtoToJSON,
|
|
28
28
|
AccountsStatsDtoToJSONTyped,
|
|
29
29
|
} from './AccountsStatsDto';
|
|
30
|
+
import type { TopAffiliateSellerDto } from './TopAffiliateSellerDto';
|
|
31
|
+
import {
|
|
32
|
+
TopAffiliateSellerDtoFromJSON,
|
|
33
|
+
TopAffiliateSellerDtoFromJSONTyped,
|
|
34
|
+
TopAffiliateSellerDtoToJSON,
|
|
35
|
+
TopAffiliateSellerDtoToJSONTyped,
|
|
36
|
+
} from './TopAffiliateSellerDto';
|
|
30
37
|
import type { AffiliatesStatsDto } from './AffiliatesStatsDto';
|
|
31
38
|
import {
|
|
32
39
|
AffiliatesStatsDtoFromJSON,
|
|
@@ -99,6 +106,12 @@ export interface AdminDashboardStatsDto {
|
|
|
99
106
|
* @memberof AdminDashboardStatsDto
|
|
100
107
|
*/
|
|
101
108
|
topSellerAccounts: Array<TopSellerAccountDto>;
|
|
109
|
+
/**
|
|
110
|
+
* Top affiliate accounts by number of paid buyer sales that used their affiliate code
|
|
111
|
+
* @type {Array<TopAffiliateSellerDto>}
|
|
112
|
+
* @memberof AdminDashboardStatsDto
|
|
113
|
+
*/
|
|
114
|
+
topAffiliateSellers: Array<TopAffiliateSellerDto>;
|
|
102
115
|
/**
|
|
103
116
|
* Total number of invoices with target buyer (with Bait state condition)
|
|
104
117
|
* @type {number}
|
|
@@ -134,6 +147,7 @@ export function instanceOfAdminDashboardStatsDto(value: object): value is AdminD
|
|
|
134
147
|
if (!('accounts' in value) || value['accounts'] === undefined) return false;
|
|
135
148
|
if (!('accountCountries' in value) || value['accountCountries'] === undefined) return false;
|
|
136
149
|
if (!('topSellerAccounts' in value) || value['topSellerAccounts'] === undefined) return false;
|
|
150
|
+
if (!('topAffiliateSellers' in value) || value['topAffiliateSellers'] === undefined) return false;
|
|
137
151
|
if (!('totalSalesNumber' in value) || value['totalSalesNumber'] === undefined) return false;
|
|
138
152
|
if (!('averageSalePriceEur' in value) || value['averageSalePriceEur'] === undefined) return false;
|
|
139
153
|
if (!('commissions' in value) || value['commissions'] === undefined) return false;
|
|
@@ -156,6 +170,7 @@ export function AdminDashboardStatsDtoFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
156
170
|
'accounts': AccountsStatsDtoFromJSON(json['accounts']),
|
|
157
171
|
'accountCountries': ((json['accountCountries'] as Array<any>).map(AccountCountryStatsDtoFromJSON)),
|
|
158
172
|
'topSellerAccounts': ((json['topSellerAccounts'] as Array<any>).map(TopSellerAccountDtoFromJSON)),
|
|
173
|
+
'topAffiliateSellers': ((json['topAffiliateSellers'] as Array<any>).map(TopAffiliateSellerDtoFromJSON)),
|
|
159
174
|
'totalSalesNumber': json['totalSalesNumber'],
|
|
160
175
|
'averageSalePriceEur': json['averageSalePriceEur'],
|
|
161
176
|
'commissions': CommissionsStatsDtoFromJSON(json['commissions']),
|
|
@@ -179,6 +194,7 @@ export function AdminDashboardStatsDtoToJSONTyped(value?: AdminDashboardStatsDto
|
|
|
179
194
|
'accounts': AccountsStatsDtoToJSON(value['accounts']),
|
|
180
195
|
'accountCountries': ((value['accountCountries'] as Array<any>).map(AccountCountryStatsDtoToJSON)),
|
|
181
196
|
'topSellerAccounts': ((value['topSellerAccounts'] as Array<any>).map(TopSellerAccountDtoToJSON)),
|
|
197
|
+
'topAffiliateSellers': ((value['topAffiliateSellers'] as Array<any>).map(TopAffiliateSellerDtoToJSON)),
|
|
182
198
|
'totalSalesNumber': value['totalSalesNumber'],
|
|
183
199
|
'averageSalePriceEur': value['averageSalePriceEur'],
|
|
184
200
|
'commissions': CommissionsStatsDtoToJSON(value['commissions']),
|
|
@@ -31,18 +31,6 @@ export interface AuctionsStatsDto {
|
|
|
31
31
|
* @memberof AuctionsStatsDto
|
|
32
32
|
*/
|
|
33
33
|
totalAuctionsCount: number;
|
|
34
|
-
/**
|
|
35
|
-
* Number of finished auctions that ended with a sale (had a bid)
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof AuctionsStatsDto
|
|
38
|
-
*/
|
|
39
|
-
finishedAuctionsWithSaleCount: number;
|
|
40
|
-
/**
|
|
41
|
-
* Number of finished auctions that ended without a sale (no bid)
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof AuctionsStatsDto
|
|
44
|
-
*/
|
|
45
|
-
finishedAuctionsWithoutSaleCount: number;
|
|
46
34
|
/**
|
|
47
35
|
* Total number of distinct accounts that use paid auctions
|
|
48
36
|
* @type {number}
|
|
@@ -57,8 +45,6 @@ export interface AuctionsStatsDto {
|
|
|
57
45
|
export function instanceOfAuctionsStatsDto(value: object): value is AuctionsStatsDto {
|
|
58
46
|
if (!('paidAuctionsCount' in value) || value['paidAuctionsCount'] === undefined) return false;
|
|
59
47
|
if (!('totalAuctionsCount' in value) || value['totalAuctionsCount'] === undefined) return false;
|
|
60
|
-
if (!('finishedAuctionsWithSaleCount' in value) || value['finishedAuctionsWithSaleCount'] === undefined) return false;
|
|
61
|
-
if (!('finishedAuctionsWithoutSaleCount' in value) || value['finishedAuctionsWithoutSaleCount'] === undefined) return false;
|
|
62
48
|
if (!('accountsUsingPaidAuctionsCount' in value) || value['accountsUsingPaidAuctionsCount'] === undefined) return false;
|
|
63
49
|
return true;
|
|
64
50
|
}
|
|
@@ -75,8 +61,6 @@ export function AuctionsStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
75
61
|
|
|
76
62
|
'paidAuctionsCount': json['paidAuctionsCount'],
|
|
77
63
|
'totalAuctionsCount': json['totalAuctionsCount'],
|
|
78
|
-
'finishedAuctionsWithSaleCount': json['finishedAuctionsWithSaleCount'],
|
|
79
|
-
'finishedAuctionsWithoutSaleCount': json['finishedAuctionsWithoutSaleCount'],
|
|
80
64
|
'accountsUsingPaidAuctionsCount': json['accountsUsingPaidAuctionsCount'],
|
|
81
65
|
};
|
|
82
66
|
}
|
|
@@ -94,8 +78,6 @@ export function AuctionsStatsDtoToJSONTyped(value?: AuctionsStatsDto | null, ign
|
|
|
94
78
|
|
|
95
79
|
'paidAuctionsCount': value['paidAuctionsCount'],
|
|
96
80
|
'totalAuctionsCount': value['totalAuctionsCount'],
|
|
97
|
-
'finishedAuctionsWithSaleCount': value['finishedAuctionsWithSaleCount'],
|
|
98
|
-
'finishedAuctionsWithoutSaleCount': value['finishedAuctionsWithoutSaleCount'],
|
|
99
81
|
'accountsUsingPaidAuctionsCount': value['accountsUsingPaidAuctionsCount'],
|
|
100
82
|
};
|
|
101
83
|
}
|
|
@@ -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 TopAffiliateSellerDto
|
|
20
|
+
*/
|
|
21
|
+
export interface TopAffiliateSellerDto {
|
|
22
|
+
/**
|
|
23
|
+
* Account whose affiliate code was used (order or subscription affiliate_account_id)
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TopAffiliateSellerDto
|
|
26
|
+
*/
|
|
27
|
+
identifier: string;
|
|
28
|
+
/**
|
|
29
|
+
* Affiliate account name
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TopAffiliateSellerDto
|
|
32
|
+
*/
|
|
33
|
+
name: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Number of paid buyer invoices where this account is the attributed affiliate
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof TopAffiliateSellerDto
|
|
38
|
+
*/
|
|
39
|
+
affiliateSalesCount: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the TopAffiliateSellerDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfTopAffiliateSellerDto(value: object): value is TopAffiliateSellerDto {
|
|
46
|
+
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('affiliateSalesCount' in value) || value['affiliateSalesCount'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function TopAffiliateSellerDtoFromJSON(json: any): TopAffiliateSellerDto {
|
|
53
|
+
return TopAffiliateSellerDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function TopAffiliateSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TopAffiliateSellerDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'identifier': json['identifier'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'affiliateSalesCount': json['affiliateSalesCount'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function TopAffiliateSellerDtoToJSON(json: any): TopAffiliateSellerDto {
|
|
69
|
+
return TopAffiliateSellerDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function TopAffiliateSellerDtoToJSONTyped(value?: TopAffiliateSellerDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'identifier': value['identifier'],
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'affiliateSalesCount': value['affiliateSalesCount'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -418,6 +418,7 @@ export * from './TaskListLeadOfferDto';
|
|
|
418
418
|
export * from './TaskListLeadRentConfigurationDto';
|
|
419
419
|
export * from './TimeTableConfigurationDto';
|
|
420
420
|
export * from './TimeTableConfigurationInput';
|
|
421
|
+
export * from './TopAffiliateSellerDto';
|
|
421
422
|
export * from './TopSellerAccountDto';
|
|
422
423
|
export * from './UkBankAccountDetails';
|
|
423
424
|
export * from './UpdateAccountBillingInformationInput';
|