@randock/nameshift-api-client 0.0.528 → 0.0.530

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.
Files changed (39) hide show
  1. package/.openapi-generator/FILES +3 -1
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +73 -8
  4. package/dist/apis/AdminApi.js +289 -9
  5. package/dist/models/AccountsStatsDto.d.ts +21 -0
  6. package/dist/models/AccountsStatsDto.js +15 -0
  7. package/dist/models/AffiliatesStatsDto.d.ts +6 -0
  8. package/dist/models/AffiliatesStatsDto.js +4 -0
  9. package/dist/models/AuctionsStatsDto.d.ts +6 -0
  10. package/dist/models/AuctionsStatsDto.js +4 -0
  11. package/dist/models/CreateNewsletterInput.d.ts +4 -21
  12. package/dist/models/CreateNewsletterInput.js +3 -8
  13. package/dist/models/NewsletterDto.d.ts +4 -21
  14. package/dist/models/NewsletterDto.js +4 -15
  15. package/dist/models/NewsletterEventDto.d.ts +68 -0
  16. package/dist/models/NewsletterEventDto.js +75 -0
  17. package/dist/models/NewsletterEventInput.d.ts +68 -0
  18. package/dist/models/NewsletterEventInput.js +75 -0
  19. package/dist/models/SalesStatsDto.d.ts +38 -0
  20. package/dist/models/SalesStatsDto.js +55 -0
  21. package/dist/models/UpdateNewsletterInput.d.ts +4 -21
  22. package/dist/models/UpdateNewsletterInput.js +3 -8
  23. package/dist/models/index.d.ts +3 -1
  24. package/dist/models/index.js +3 -1
  25. package/package.json +1 -1
  26. package/src/apis/AdminApi.ts +248 -13
  27. package/src/models/AccountsStatsDto.ts +49 -0
  28. package/src/models/AffiliatesStatsDto.ts +9 -0
  29. package/src/models/AuctionsStatsDto.ts +9 -0
  30. package/src/models/CreateNewsletterInput.ts +12 -29
  31. package/src/models/NewsletterDto.ts +13 -33
  32. package/src/models/NewsletterEventDto.ts +120 -0
  33. package/src/models/NewsletterEventInput.ts +120 -0
  34. package/src/models/SalesStatsDto.ts +75 -0
  35. package/src/models/UpdateNewsletterInput.ts +12 -29
  36. package/src/models/index.ts +3 -1
  37. package/dist/models/AdminDashboardStatsDto.d.ts +0 -94
  38. package/dist/models/AdminDashboardStatsDto.js +0 -95
  39. package/src/models/AdminDashboardStatsDto.ts +0 -204
@@ -0,0 +1,120 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 NewsletterEventDto
20
+ */
21
+ export interface NewsletterEventDto {
22
+ /**
23
+ * Event name, e.g. "NamesCon Global".
24
+ * @type {string}
25
+ * @memberof NewsletterEventDto
26
+ */
27
+ title: string;
28
+ /**
29
+ * First day (YYYY-MM-DD); draws the date tile.
30
+ * @type {string}
31
+ * @memberof NewsletterEventDto
32
+ */
33
+ startsOn: string | null;
34
+ /**
35
+ * Last day of a multi-day event (YYYY-MM-DD).
36
+ * @type {string}
37
+ * @memberof NewsletterEventDto
38
+ */
39
+ endsOn: string | null;
40
+ /**
41
+ * City, venue or "Online".
42
+ * @type {string}
43
+ * @memberof NewsletterEventDto
44
+ */
45
+ location: string;
46
+ /**
47
+ * One or two sentences, e.g. "We are at booth 214."
48
+ * @type {string}
49
+ * @memberof NewsletterEventDto
50
+ */
51
+ text: string;
52
+ /**
53
+ * Event link URL.
54
+ * @type {string}
55
+ * @memberof NewsletterEventDto
56
+ */
57
+ url: string;
58
+ /**
59
+ * Button text, 2 to 5 words.
60
+ * @type {string}
61
+ * @memberof NewsletterEventDto
62
+ */
63
+ link: string;
64
+ }
65
+
66
+ /**
67
+ * Check if a given object implements the NewsletterEventDto interface.
68
+ */
69
+ export function instanceOfNewsletterEventDto(value: object): value is NewsletterEventDto {
70
+ if (!('title' in value) || value['title'] === undefined) return false;
71
+ if (!('startsOn' in value) || value['startsOn'] === undefined) return false;
72
+ if (!('endsOn' in value) || value['endsOn'] === undefined) return false;
73
+ if (!('location' in value) || value['location'] === undefined) return false;
74
+ if (!('text' in value) || value['text'] === undefined) return false;
75
+ if (!('url' in value) || value['url'] === undefined) return false;
76
+ if (!('link' in value) || value['link'] === undefined) return false;
77
+ return true;
78
+ }
79
+
80
+ export function NewsletterEventDtoFromJSON(json: any): NewsletterEventDto {
81
+ return NewsletterEventDtoFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function NewsletterEventDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NewsletterEventDto {
85
+ if (json == null) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'title': json['title'],
91
+ 'startsOn': json['startsOn'],
92
+ 'endsOn': json['endsOn'],
93
+ 'location': json['location'],
94
+ 'text': json['text'],
95
+ 'url': json['url'],
96
+ 'link': json['link'],
97
+ };
98
+ }
99
+
100
+ export function NewsletterEventDtoToJSON(json: any): NewsletterEventDto {
101
+ return NewsletterEventDtoToJSONTyped(json, false);
102
+ }
103
+
104
+ export function NewsletterEventDtoToJSONTyped(value?: NewsletterEventDto | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'title': value['title'],
112
+ 'startsOn': value['startsOn'],
113
+ 'endsOn': value['endsOn'],
114
+ 'location': value['location'],
115
+ 'text': value['text'],
116
+ 'url': value['url'],
117
+ 'link': value['link'],
118
+ };
119
+ }
120
+
@@ -0,0 +1,120 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 NewsletterEventInput
20
+ */
21
+ export interface NewsletterEventInput {
22
+ /**
23
+ * Event name, e.g. "NamesCon Global".
24
+ * @type {string}
25
+ * @memberof NewsletterEventInput
26
+ */
27
+ title: string;
28
+ /**
29
+ * First day (YYYY-MM-DD); draws the date tile.
30
+ * @type {string}
31
+ * @memberof NewsletterEventInput
32
+ */
33
+ startsOn: string | null;
34
+ /**
35
+ * Last day of a multi-day event (YYYY-MM-DD).
36
+ * @type {string}
37
+ * @memberof NewsletterEventInput
38
+ */
39
+ endsOn: string | null;
40
+ /**
41
+ * City, venue or "Online".
42
+ * @type {string}
43
+ * @memberof NewsletterEventInput
44
+ */
45
+ location: string;
46
+ /**
47
+ * One or two sentences, e.g. "We are at booth 214."
48
+ * @type {string}
49
+ * @memberof NewsletterEventInput
50
+ */
51
+ text: string;
52
+ /**
53
+ * Event link URL.
54
+ * @type {string}
55
+ * @memberof NewsletterEventInput
56
+ */
57
+ url: string;
58
+ /**
59
+ * Button text, 2 to 5 words.
60
+ * @type {string}
61
+ * @memberof NewsletterEventInput
62
+ */
63
+ link: string;
64
+ }
65
+
66
+ /**
67
+ * Check if a given object implements the NewsletterEventInput interface.
68
+ */
69
+ export function instanceOfNewsletterEventInput(value: object): value is NewsletterEventInput {
70
+ if (!('title' in value) || value['title'] === undefined) return false;
71
+ if (!('startsOn' in value) || value['startsOn'] === undefined) return false;
72
+ if (!('endsOn' in value) || value['endsOn'] === undefined) return false;
73
+ if (!('location' in value) || value['location'] === undefined) return false;
74
+ if (!('text' in value) || value['text'] === undefined) return false;
75
+ if (!('url' in value) || value['url'] === undefined) return false;
76
+ if (!('link' in value) || value['link'] === undefined) return false;
77
+ return true;
78
+ }
79
+
80
+ export function NewsletterEventInputFromJSON(json: any): NewsletterEventInput {
81
+ return NewsletterEventInputFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function NewsletterEventInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): NewsletterEventInput {
85
+ if (json == null) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'title': json['title'],
91
+ 'startsOn': json['startsOn'],
92
+ 'endsOn': json['endsOn'],
93
+ 'location': json['location'],
94
+ 'text': json['text'],
95
+ 'url': json['url'],
96
+ 'link': json['link'],
97
+ };
98
+ }
99
+
100
+ export function NewsletterEventInputToJSON(json: any): NewsletterEventInput {
101
+ return NewsletterEventInputToJSONTyped(json, false);
102
+ }
103
+
104
+ export function NewsletterEventInputToJSONTyped(value?: NewsletterEventInput | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'title': value['title'],
112
+ 'startsOn': value['startsOn'],
113
+ 'endsOn': value['endsOn'],
114
+ 'location': value['location'],
115
+ 'text': value['text'],
116
+ 'url': value['url'],
117
+ 'link': value['link'],
118
+ };
119
+ }
120
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 SalesStatsDto
20
+ */
21
+ export interface SalesStatsDto {
22
+ /**
23
+ * Number of paid buyer invoices
24
+ * @type {number}
25
+ * @memberof SalesStatsDto
26
+ */
27
+ totalSalesNumber: number;
28
+ /**
29
+ * Average sale price in EUR of the paid buyer invoices
30
+ * @type {number}
31
+ * @memberof SalesStatsDto
32
+ */
33
+ averageSalePriceEur: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the SalesStatsDto interface.
38
+ */
39
+ export function instanceOfSalesStatsDto(value: object): value is SalesStatsDto {
40
+ if (!('totalSalesNumber' in value) || value['totalSalesNumber'] === undefined) return false;
41
+ if (!('averageSalePriceEur' in value) || value['averageSalePriceEur'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function SalesStatsDtoFromJSON(json: any): SalesStatsDto {
46
+ return SalesStatsDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SalesStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SalesStatsDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'totalSalesNumber': json['totalSalesNumber'],
56
+ 'averageSalePriceEur': json['averageSalePriceEur'],
57
+ };
58
+ }
59
+
60
+ export function SalesStatsDtoToJSON(json: any): SalesStatsDto {
61
+ return SalesStatsDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SalesStatsDtoToJSONTyped(value?: SalesStatsDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'totalSalesNumber': value['totalSalesNumber'],
72
+ 'averageSalePriceEur': value['averageSalePriceEur'],
73
+ };
74
+ }
75
+
@@ -20,6 +20,13 @@ import {
20
20
  NewsletterSecondaryStoryInputToJSON,
21
21
  NewsletterSecondaryStoryInputToJSONTyped,
22
22
  } from './NewsletterSecondaryStoryInput';
23
+ import type { NewsletterEventInput } from './NewsletterEventInput';
24
+ import {
25
+ NewsletterEventInputFromJSON,
26
+ NewsletterEventInputFromJSONTyped,
27
+ NewsletterEventInputToJSON,
28
+ NewsletterEventInputToJSONTyped,
29
+ } from './NewsletterEventInput';
23
30
 
24
31
  /**
25
32
  *
@@ -100,29 +107,11 @@ export interface UpdateNewsletterInput {
100
107
  */
101
108
  featureLink?: string;
102
109
  /**
103
- * Event lead line.
104
- * @type {string}
105
- * @memberof UpdateNewsletterInput
106
- */
107
- eventLead?: string | null;
108
- /**
109
- * Event text.
110
- * @type {string}
111
- * @memberof UpdateNewsletterInput
112
- */
113
- eventText?: string | null;
114
- /**
115
- * Event link URL.
116
- * @type {string}
117
- * @memberof UpdateNewsletterInput
118
- */
119
- eventUrl?: string | null;
120
- /**
121
- * Event link text.
122
- * @type {string}
110
+ * Events, in order.
111
+ * @type {Array<NewsletterEventInput>}
123
112
  * @memberof UpdateNewsletterInput
124
113
  */
125
- eventLink?: string | null;
114
+ events?: Array<NewsletterEventInput>;
126
115
  /**
127
116
  * Whether the recent-sales module is in the issue.
128
117
  * @type {boolean}
@@ -202,10 +191,7 @@ export function UpdateNewsletterInputFromJSONTyped(json: any, ignoreDiscriminato
202
191
  'featureStoryUuid': json['featureStoryUuid'] == null ? undefined : json['featureStoryUuid'],
203
192
  'featureText': json['featureText'] == null ? undefined : json['featureText'],
204
193
  'featureLink': json['featureLink'] == null ? undefined : json['featureLink'],
205
- 'eventLead': json['eventLead'] == null ? undefined : json['eventLead'],
206
- 'eventText': json['eventText'] == null ? undefined : json['eventText'],
207
- 'eventUrl': json['eventUrl'] == null ? undefined : json['eventUrl'],
208
- 'eventLink': json['eventLink'] == null ? undefined : json['eventLink'],
194
+ 'events': json['events'] == null ? undefined : ((json['events'] as Array<any>).map(NewsletterEventInputFromJSON)),
209
195
  'salesEnabled': json['salesEnabled'] == null ? undefined : json['salesEnabled'],
210
196
  'salesFrom': json['salesFrom'] == null ? undefined : json['salesFrom'],
211
197
  'salesTo': json['salesTo'] == null ? undefined : json['salesTo'],
@@ -240,10 +226,7 @@ export function UpdateNewsletterInputToJSONTyped(value?: UpdateNewsletterInput |
240
226
  'featureStoryUuid': value['featureStoryUuid'],
241
227
  'featureText': value['featureText'],
242
228
  'featureLink': value['featureLink'],
243
- 'eventLead': value['eventLead'],
244
- 'eventText': value['eventText'],
245
- 'eventUrl': value['eventUrl'],
246
- 'eventLink': value['eventLink'],
229
+ 'events': value['events'] == null ? undefined : ((value['events'] as Array<any>).map(NewsletterEventInputToJSON)),
247
230
  'salesEnabled': value['salesEnabled'],
248
231
  'salesFrom': value['salesFrom'],
249
232
  'salesTo': value['salesTo'],
@@ -67,7 +67,6 @@ export * from './AdminChallengeListDto';
67
67
  export * from './AdminChallengeListItemDto';
68
68
  export * from './AdminCompanyStatsDto';
69
69
  export * from './AdminCompanyStatsLedger';
70
- export * from './AdminDashboardStatsDto';
71
70
  export * from './AdminDomainAppraisalRequestListItemDto';
72
71
  export * from './AdminDomainListItemDto';
73
72
  export * from './AdminGetAllDomainTransfers200Response';
@@ -436,6 +435,8 @@ export * from './MoneyInput';
436
435
  export * from './MozMetrics';
437
436
  export * from './NewsStoryDto';
438
437
  export * from './NewsletterDto';
438
+ export * from './NewsletterEventDto';
439
+ export * from './NewsletterEventInput';
439
440
  export * from './NewsletterPreviewDto';
440
441
  export * from './NewsletterSecondaryStoryDto';
441
442
  export * from './NewsletterSecondaryStoryInput';
@@ -519,6 +520,7 @@ export * from './SalesCountCommissionPayloadDto';
519
520
  export * from './SalesCountCommissionPayloadInput';
520
521
  export * from './SalesCountCommissionPayloadSimulationInput';
521
522
  export * from './SalesCountCommissionReasonPayloadDto';
523
+ export * from './SalesStatsDto';
522
524
  export * from './SearchBankAccountInstitutionsInput';
523
525
  export * from './SecondFactorMethod';
524
526
  export * from './SellerAccountReferralListItemDto';
@@ -1,94 +0,0 @@
1
- /**
2
- * Nameshift
3
- * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 { CommissionsStatsDto } from './CommissionsStatsDto';
13
- import type { AccountsStatsDto } from './AccountsStatsDto';
14
- import type { TopAffiliateSellerDto } from './TopAffiliateSellerDto';
15
- import type { AffiliatesStatsDto } from './AffiliatesStatsDto';
16
- import type { AuctionsStatsDto } from './AuctionsStatsDto';
17
- import type { AccountCountryStatsDto } from './AccountCountryStatsDto';
18
- import type { PaymentMethodsStatsDto } from './PaymentMethodsStatsDto';
19
- import type { TopSellerAccountDto } from './TopSellerAccountDto';
20
- /**
21
- *
22
- * @export
23
- * @interface AdminDashboardStatsDto
24
- */
25
- export interface AdminDashboardStatsDto {
26
- /**
27
- * Payment methods statistics
28
- * @type {PaymentMethodsStatsDto}
29
- * @memberof AdminDashboardStatsDto
30
- */
31
- paymentMethods: PaymentMethodsStatsDto;
32
- /**
33
- * Affiliates statistics
34
- * @type {AffiliatesStatsDto}
35
- * @memberof AdminDashboardStatsDto
36
- */
37
- affiliates: AffiliatesStatsDto;
38
- /**
39
- * Accounts statistics
40
- * @type {AccountsStatsDto}
41
- * @memberof AdminDashboardStatsDto
42
- */
43
- accounts: AccountsStatsDto;
44
- /**
45
- * List of account countries with count
46
- * @type {Array<AccountCountryStatsDto>}
47
- * @memberof AdminDashboardStatsDto
48
- */
49
- accountCountries: Array<AccountCountryStatsDto>;
50
- /**
51
- * Top 10 accounts with most sold domains
52
- * @type {Array<TopSellerAccountDto>}
53
- * @memberof AdminDashboardStatsDto
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>;
62
- /**
63
- * Total number of invoices with target buyer (with Bait state condition)
64
- * @type {number}
65
- * @memberof AdminDashboardStatsDto
66
- */
67
- totalSalesNumber: number;
68
- /**
69
- * Average price of sale in EUR for invoices paid with target buyer
70
- * @type {number}
71
- * @memberof AdminDashboardStatsDto
72
- */
73
- averageSalePriceEur: number;
74
- /**
75
- * Commissions statistics
76
- * @type {CommissionsStatsDto}
77
- * @memberof AdminDashboardStatsDto
78
- */
79
- commissions: CommissionsStatsDto;
80
- /**
81
- * Auctions statistics
82
- * @type {AuctionsStatsDto}
83
- * @memberof AdminDashboardStatsDto
84
- */
85
- auctions: AuctionsStatsDto;
86
- }
87
- /**
88
- * Check if a given object implements the AdminDashboardStatsDto interface.
89
- */
90
- export declare function instanceOfAdminDashboardStatsDto(value: object): value is AdminDashboardStatsDto;
91
- export declare function AdminDashboardStatsDtoFromJSON(json: any): AdminDashboardStatsDto;
92
- export declare function AdminDashboardStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminDashboardStatsDto;
93
- export declare function AdminDashboardStatsDtoToJSON(json: any): AdminDashboardStatsDto;
94
- export declare function AdminDashboardStatsDtoToJSONTyped(value?: AdminDashboardStatsDto | null, ignoreDiscriminator?: boolean): any;
@@ -1,95 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Nameshift
6
- * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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.instanceOfAdminDashboardStatsDto = instanceOfAdminDashboardStatsDto;
17
- exports.AdminDashboardStatsDtoFromJSON = AdminDashboardStatsDtoFromJSON;
18
- exports.AdminDashboardStatsDtoFromJSONTyped = AdminDashboardStatsDtoFromJSONTyped;
19
- exports.AdminDashboardStatsDtoToJSON = AdminDashboardStatsDtoToJSON;
20
- exports.AdminDashboardStatsDtoToJSONTyped = AdminDashboardStatsDtoToJSONTyped;
21
- var CommissionsStatsDto_1 = require("./CommissionsStatsDto");
22
- var AccountsStatsDto_1 = require("./AccountsStatsDto");
23
- var TopAffiliateSellerDto_1 = require("./TopAffiliateSellerDto");
24
- var AffiliatesStatsDto_1 = require("./AffiliatesStatsDto");
25
- var AuctionsStatsDto_1 = require("./AuctionsStatsDto");
26
- var AccountCountryStatsDto_1 = require("./AccountCountryStatsDto");
27
- var PaymentMethodsStatsDto_1 = require("./PaymentMethodsStatsDto");
28
- var TopSellerAccountDto_1 = require("./TopSellerAccountDto");
29
- /**
30
- * Check if a given object implements the AdminDashboardStatsDto interface.
31
- */
32
- function instanceOfAdminDashboardStatsDto(value) {
33
- if (!('paymentMethods' in value) || value['paymentMethods'] === undefined)
34
- return false;
35
- if (!('affiliates' in value) || value['affiliates'] === undefined)
36
- return false;
37
- if (!('accounts' in value) || value['accounts'] === undefined)
38
- return false;
39
- if (!('accountCountries' in value) || value['accountCountries'] === undefined)
40
- return false;
41
- if (!('topSellerAccounts' in value) || value['topSellerAccounts'] === undefined)
42
- return false;
43
- if (!('topAffiliateSellers' in value) || value['topAffiliateSellers'] === undefined)
44
- return false;
45
- if (!('totalSalesNumber' in value) || value['totalSalesNumber'] === undefined)
46
- return false;
47
- if (!('averageSalePriceEur' in value) || value['averageSalePriceEur'] === undefined)
48
- return false;
49
- if (!('commissions' in value) || value['commissions'] === undefined)
50
- return false;
51
- if (!('auctions' in value) || value['auctions'] === undefined)
52
- return false;
53
- return true;
54
- }
55
- function AdminDashboardStatsDtoFromJSON(json) {
56
- return AdminDashboardStatsDtoFromJSONTyped(json, false);
57
- }
58
- function AdminDashboardStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
59
- if (json == null) {
60
- return json;
61
- }
62
- return {
63
- 'paymentMethods': (0, PaymentMethodsStatsDto_1.PaymentMethodsStatsDtoFromJSON)(json['paymentMethods']),
64
- 'affiliates': (0, AffiliatesStatsDto_1.AffiliatesStatsDtoFromJSON)(json['affiliates']),
65
- 'accounts': (0, AccountsStatsDto_1.AccountsStatsDtoFromJSON)(json['accounts']),
66
- 'accountCountries': (json['accountCountries'].map(AccountCountryStatsDto_1.AccountCountryStatsDtoFromJSON)),
67
- 'topSellerAccounts': (json['topSellerAccounts'].map(TopSellerAccountDto_1.TopSellerAccountDtoFromJSON)),
68
- 'topAffiliateSellers': (json['topAffiliateSellers'].map(TopAffiliateSellerDto_1.TopAffiliateSellerDtoFromJSON)),
69
- 'totalSalesNumber': json['totalSalesNumber'],
70
- 'averageSalePriceEur': json['averageSalePriceEur'],
71
- 'commissions': (0, CommissionsStatsDto_1.CommissionsStatsDtoFromJSON)(json['commissions']),
72
- 'auctions': (0, AuctionsStatsDto_1.AuctionsStatsDtoFromJSON)(json['auctions']),
73
- };
74
- }
75
- function AdminDashboardStatsDtoToJSON(json) {
76
- return AdminDashboardStatsDtoToJSONTyped(json, false);
77
- }
78
- function AdminDashboardStatsDtoToJSONTyped(value, ignoreDiscriminator) {
79
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
80
- if (value == null) {
81
- return value;
82
- }
83
- return {
84
- 'paymentMethods': (0, PaymentMethodsStatsDto_1.PaymentMethodsStatsDtoToJSON)(value['paymentMethods']),
85
- 'affiliates': (0, AffiliatesStatsDto_1.AffiliatesStatsDtoToJSON)(value['affiliates']),
86
- 'accounts': (0, AccountsStatsDto_1.AccountsStatsDtoToJSON)(value['accounts']),
87
- 'accountCountries': (value['accountCountries'].map(AccountCountryStatsDto_1.AccountCountryStatsDtoToJSON)),
88
- 'topSellerAccounts': (value['topSellerAccounts'].map(TopSellerAccountDto_1.TopSellerAccountDtoToJSON)),
89
- 'topAffiliateSellers': (value['topAffiliateSellers'].map(TopAffiliateSellerDto_1.TopAffiliateSellerDtoToJSON)),
90
- 'totalSalesNumber': value['totalSalesNumber'],
91
- 'averageSalePriceEur': value['averageSalePriceEur'],
92
- 'commissions': (0, CommissionsStatsDto_1.CommissionsStatsDtoToJSON)(value['commissions']),
93
- 'auctions': (0, AuctionsStatsDto_1.AuctionsStatsDtoToJSON)(value['auctions']),
94
- };
95
- }