@randock/nameshift-api-client 0.0.397 → 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.
@@ -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.397
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.397 --save
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
- 582690c719875a7b8b63fa164d06ca2cb0ab4f64886b99a254b06266cc50c828a1ea71a2f6b91125f56cc3528abbd788
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']),
@@ -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
+ }
@@ -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';
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.397",
3
+ "version": "0.0.398",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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']),
@@ -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
+
@@ -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';