@randock/nameshift-api-client 0.0.369 → 0.0.371

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 (33) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +12 -1
  4. package/dist/apis/AdminApi.js +54 -0
  5. package/dist/models/AccountCountryStatsDto.d.ts +38 -0
  6. package/dist/models/AccountCountryStatsDto.js +55 -0
  7. package/dist/models/AccountsStatsDto.d.ts +56 -0
  8. package/dist/models/AccountsStatsDto.js +67 -0
  9. package/dist/models/AdminDashboardStatsDto.d.ts +61 -0
  10. package/dist/models/AdminDashboardStatsDto.js +72 -0
  11. package/dist/models/AffiliatesStatsDto.d.ts +32 -0
  12. package/dist/models/AffiliatesStatsDto.js +51 -0
  13. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  14. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  15. package/dist/models/PaymentMethodsStatsDto.d.ts +62 -0
  16. package/dist/models/PaymentMethodsStatsDto.js +71 -0
  17. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  18. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  19. package/dist/models/TopSellerAccountDto.d.ts +44 -0
  20. package/dist/models/TopSellerAccountDto.js +59 -0
  21. package/dist/models/index.d.ts +6 -0
  22. package/dist/models/index.js +6 -0
  23. package/package.json +1 -1
  24. package/src/apis/AdminApi.ts +45 -0
  25. package/src/models/AccountCountryStatsDto.ts +75 -0
  26. package/src/models/AccountsStatsDto.ts +102 -0
  27. package/src/models/AdminDashboardStatsDto.ts +138 -0
  28. package/src/models/AffiliatesStatsDto.ts +66 -0
  29. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  30. package/src/models/PaymentMethodsStatsDto.ts +111 -0
  31. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  32. package/src/models/TopSellerAccountDto.ts +84 -0
  33. package/src/models/index.ts +6 -0
@@ -38,6 +38,7 @@ src/models/AccountAliasInput.ts
38
38
  src/models/AccountBankAccountDto.ts
39
39
  src/models/AccountBankAccountDtoDetails.ts
40
40
  src/models/AccountCommissionByDateRangeDto.ts
41
+ src/models/AccountCountryStatsDto.ts
41
42
  src/models/AccountDto.ts
42
43
  src/models/AccountMetricsDto.ts
43
44
  src/models/AccountNameshiftCommissionBySubtypeDto.ts
@@ -59,6 +60,7 @@ src/models/AccountSettingsInput.ts
59
60
  src/models/AccountSettingsLeaseToOwnConfigurationDto.ts
60
61
  src/models/AccountSettingsRentConfigurationDto.ts
61
62
  src/models/AccountSettingsSidnDto.ts
63
+ src/models/AccountsStatsDto.ts
62
64
  src/models/AddressDto.ts
63
65
  src/models/AdminAccountCommissionByDateRangeInput.ts
64
66
  src/models/AdminAccountLoginDto.ts
@@ -71,9 +73,11 @@ src/models/AdminAuctionConfigurationInput.ts
71
73
  src/models/AdminBankAccountDto.ts
72
74
  src/models/AdminCompanyStatsDto.ts
73
75
  src/models/AdminCompanyStatsLedger.ts
76
+ src/models/AdminDashboardStatsDto.ts
74
77
  src/models/AdminGetAllDomainTransfers200Response.ts
75
78
  src/models/AdminListAccountDto.ts
76
79
  src/models/AdminVerificationDepositDto.ts
80
+ src/models/AffiliatesStatsDto.ts
77
81
  src/models/AggregatedPaginationResponse.ts
78
82
  src/models/AirwallexBankAccountDetailsDto.ts
79
83
  src/models/AirwallexBankAccountDetailsDtoInstitution.ts
@@ -319,6 +323,7 @@ src/models/PaginateResponseMeta.ts
319
323
  src/models/ParsedDomainDto.ts
320
324
  src/models/PartnerAuctionDto.ts
321
325
  src/models/PayAccountPaymentInput.ts
326
+ src/models/PaymentMethodsStatsDto.ts
322
327
  src/models/PrivateAccountGetMeResponse.ts
323
328
  src/models/PublicAccountInformationDto.ts
324
329
  src/models/PublicAuctionListItemDto.ts
@@ -413,6 +418,7 @@ src/models/TaskListLeadOfferDto.ts
413
418
  src/models/TaskListLeadRentConfigurationDto.ts
414
419
  src/models/TimeTableConfigurationDto.ts
415
420
  src/models/TimeTableConfigurationInput.ts
421
+ src/models/TopSellerAccountDto.ts
416
422
  src/models/UkBankAccountDetails.ts
417
423
  src/models/UpdateAccountBillingInformationInput.ts
418
424
  src/models/UpdateAuctionMuteStatusInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.369
1
+ ## @randock/nameshift-api-client@0.0.371
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.369 --save
39
+ npm install @randock/nameshift-api-client@0.0.371 --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
- e9757b650d0dcf0fd82e26b59165d8ecd279491a163201fec6ec60fb2f12bfae496f183ec349ecaa19945462193209bc
47
+ af334cbd5db2377d060ae87af4c7fff3f1838397b86168c3db71e607ca39731b54618e12cf15b373f00470e4f17a1744
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, DomainLockDto, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
13
+ import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, DomainLockDto, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
14
14
  export interface AdminApiAdminGetAllDomainTransfersRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -46,6 +46,9 @@ export interface AdminApiGetAccountPaymentMethodProfilesRequest {
46
46
  export interface AdminApiGetAccountSettingsRequest {
47
47
  accountId: string;
48
48
  }
49
+ export interface AdminApiGetAdminDashboardStatsRequest {
50
+ dateRange?: any | null;
51
+ }
49
52
  export interface AdminApiGetAdminDomainTransferDetailsRequest {
50
53
  domainTransferId: string;
51
54
  }
@@ -243,6 +246,14 @@ export declare class AdminApi extends runtime.BaseAPI {
243
246
  *
244
247
  */
245
248
  getAccountSettings(requestParameters: AdminApiGetAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountSettingsDto>;
249
+ /**
250
+ *
251
+ */
252
+ getAdminDashboardStatsRaw(requestParameters: AdminApiGetAdminDashboardStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminDashboardStatsDto>>;
253
+ /**
254
+ *
255
+ */
256
+ getAdminDashboardStats(requestParameters?: AdminApiGetAdminDashboardStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminDashboardStatsDto>;
246
257
  /**
247
258
  *
248
259
  */
@@ -621,6 +621,60 @@ var AdminApi = /** @class */ (function (_super) {
621
621
  });
622
622
  });
623
623
  };
624
+ /**
625
+ *
626
+ */
627
+ AdminApi.prototype.getAdminDashboardStatsRaw = function (requestParameters, initOverrides) {
628
+ return __awaiter(this, void 0, void 0, function () {
629
+ var queryParameters, headerParameters, token, tokenString, response;
630
+ return __generator(this, function (_a) {
631
+ switch (_a.label) {
632
+ case 0:
633
+ queryParameters = {};
634
+ if (requestParameters['dateRange'] != null) {
635
+ queryParameters['dateRange'] = requestParameters['dateRange'];
636
+ }
637
+ headerParameters = {};
638
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
639
+ token = this.configuration.accessToken;
640
+ return [4 /*yield*/, token("bearer", [])];
641
+ case 1:
642
+ tokenString = _a.sent();
643
+ if (tokenString) {
644
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
645
+ }
646
+ _a.label = 2;
647
+ case 2: return [4 /*yield*/, this.request({
648
+ path: "/admin/stats/dashboard",
649
+ method: 'GET',
650
+ headers: headerParameters,
651
+ query: queryParameters,
652
+ }, initOverrides)];
653
+ case 3:
654
+ response = _a.sent();
655
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AdminDashboardStatsDtoFromJSON)(jsonValue); })];
656
+ }
657
+ });
658
+ });
659
+ };
660
+ /**
661
+ *
662
+ */
663
+ AdminApi.prototype.getAdminDashboardStats = function () {
664
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
665
+ var response;
666
+ if (requestParameters === void 0) { requestParameters = {}; }
667
+ return __generator(this, function (_a) {
668
+ switch (_a.label) {
669
+ case 0: return [4 /*yield*/, this.getAdminDashboardStatsRaw(requestParameters, initOverrides)];
670
+ case 1:
671
+ response = _a.sent();
672
+ return [4 /*yield*/, response.value()];
673
+ case 2: return [2 /*return*/, _a.sent()];
674
+ }
675
+ });
676
+ });
677
+ };
624
678
  /**
625
679
  *
626
680
  */
@@ -0,0 +1,38 @@
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 AccountCountryStatsDto
16
+ */
17
+ export interface AccountCountryStatsDto {
18
+ /**
19
+ * ISO 3166-1 alpha-2 country code
20
+ * @type {string}
21
+ * @memberof AccountCountryStatsDto
22
+ */
23
+ countryCode: string;
24
+ /**
25
+ * Number of accounts in this country
26
+ * @type {number}
27
+ * @memberof AccountCountryStatsDto
28
+ */
29
+ count: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AccountCountryStatsDto interface.
33
+ */
34
+ export declare function instanceOfAccountCountryStatsDto(value: object): value is AccountCountryStatsDto;
35
+ export declare function AccountCountryStatsDtoFromJSON(json: any): AccountCountryStatsDto;
36
+ export declare function AccountCountryStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountCountryStatsDto;
37
+ export declare function AccountCountryStatsDtoToJSON(json: any): AccountCountryStatsDto;
38
+ export declare function AccountCountryStatsDtoToJSONTyped(value?: AccountCountryStatsDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfAccountCountryStatsDto = instanceOfAccountCountryStatsDto;
17
+ exports.AccountCountryStatsDtoFromJSON = AccountCountryStatsDtoFromJSON;
18
+ exports.AccountCountryStatsDtoFromJSONTyped = AccountCountryStatsDtoFromJSONTyped;
19
+ exports.AccountCountryStatsDtoToJSON = AccountCountryStatsDtoToJSON;
20
+ exports.AccountCountryStatsDtoToJSONTyped = AccountCountryStatsDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AccountCountryStatsDto interface.
23
+ */
24
+ function instanceOfAccountCountryStatsDto(value) {
25
+ if (!('countryCode' in value) || value['countryCode'] === undefined)
26
+ return false;
27
+ if (!('count' in value) || value['count'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AccountCountryStatsDtoFromJSON(json) {
32
+ return AccountCountryStatsDtoFromJSONTyped(json, false);
33
+ }
34
+ function AccountCountryStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'countryCode': json['countryCode'],
40
+ 'count': json['count'],
41
+ };
42
+ }
43
+ function AccountCountryStatsDtoToJSON(json) {
44
+ return AccountCountryStatsDtoToJSONTyped(json, false);
45
+ }
46
+ function AccountCountryStatsDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'countryCode': value['countryCode'],
53
+ 'count': value['count'],
54
+ };
55
+ }
@@ -0,0 +1,56 @@
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 AccountsStatsDto
16
+ */
17
+ export interface AccountsStatsDto {
18
+ /**
19
+ * Total number of accounts
20
+ * @type {number}
21
+ * @memberof AccountsStatsDto
22
+ */
23
+ total: number;
24
+ /**
25
+ * Number of accounts with completed onboarding
26
+ * @type {number}
27
+ * @memberof AccountsStatsDto
28
+ */
29
+ withOnboarding: number;
30
+ /**
31
+ * Number of accounts with domains
32
+ * @type {number}
33
+ * @memberof AccountsStatsDto
34
+ */
35
+ withDomains: number;
36
+ /**
37
+ * Number of accounts with domains pointing DNS
38
+ * @type {number}
39
+ * @memberof AccountsStatsDto
40
+ */
41
+ withDomainsPointingDns: number;
42
+ /**
43
+ * Number of accounts with verified domains
44
+ * @type {number}
45
+ * @memberof AccountsStatsDto
46
+ */
47
+ withDomainsVerified: number;
48
+ }
49
+ /**
50
+ * Check if a given object implements the AccountsStatsDto interface.
51
+ */
52
+ export declare function instanceOfAccountsStatsDto(value: object): value is AccountsStatsDto;
53
+ export declare function AccountsStatsDtoFromJSON(json: any): AccountsStatsDto;
54
+ export declare function AccountsStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountsStatsDto;
55
+ export declare function AccountsStatsDtoToJSON(json: any): AccountsStatsDto;
56
+ export declare function AccountsStatsDtoToJSONTyped(value?: AccountsStatsDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.instanceOfAccountsStatsDto = instanceOfAccountsStatsDto;
17
+ exports.AccountsStatsDtoFromJSON = AccountsStatsDtoFromJSON;
18
+ exports.AccountsStatsDtoFromJSONTyped = AccountsStatsDtoFromJSONTyped;
19
+ exports.AccountsStatsDtoToJSON = AccountsStatsDtoToJSON;
20
+ exports.AccountsStatsDtoToJSONTyped = AccountsStatsDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AccountsStatsDto interface.
23
+ */
24
+ function instanceOfAccountsStatsDto(value) {
25
+ if (!('total' in value) || value['total'] === undefined)
26
+ return false;
27
+ if (!('withOnboarding' in value) || value['withOnboarding'] === undefined)
28
+ return false;
29
+ if (!('withDomains' in value) || value['withDomains'] === undefined)
30
+ return false;
31
+ if (!('withDomainsPointingDns' in value) || value['withDomainsPointingDns'] === undefined)
32
+ return false;
33
+ if (!('withDomainsVerified' in value) || value['withDomainsVerified'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function AccountsStatsDtoFromJSON(json) {
38
+ return AccountsStatsDtoFromJSONTyped(json, false);
39
+ }
40
+ function AccountsStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'total': json['total'],
46
+ 'withOnboarding': json['withOnboarding'],
47
+ 'withDomains': json['withDomains'],
48
+ 'withDomainsPointingDns': json['withDomainsPointingDns'],
49
+ 'withDomainsVerified': json['withDomainsVerified'],
50
+ };
51
+ }
52
+ function AccountsStatsDtoToJSON(json) {
53
+ return AccountsStatsDtoToJSONTyped(json, false);
54
+ }
55
+ function AccountsStatsDtoToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'total': value['total'],
62
+ 'withOnboarding': value['withOnboarding'],
63
+ 'withDomains': value['withDomains'],
64
+ 'withDomainsPointingDns': value['withDomainsPointingDns'],
65
+ 'withDomainsVerified': value['withDomainsVerified'],
66
+ };
67
+ }
@@ -0,0 +1,61 @@
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 { AccountsStatsDto } from './AccountsStatsDto';
13
+ import type { AffiliatesStatsDto } from './AffiliatesStatsDto';
14
+ import type { AccountCountryStatsDto } from './AccountCountryStatsDto';
15
+ import type { PaymentMethodsStatsDto } from './PaymentMethodsStatsDto';
16
+ import type { TopSellerAccountDto } from './TopSellerAccountDto';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface AdminDashboardStatsDto
21
+ */
22
+ export interface AdminDashboardStatsDto {
23
+ /**
24
+ * Payment methods statistics
25
+ * @type {PaymentMethodsStatsDto}
26
+ * @memberof AdminDashboardStatsDto
27
+ */
28
+ paymentMethods: PaymentMethodsStatsDto;
29
+ /**
30
+ * Affiliates statistics
31
+ * @type {AffiliatesStatsDto}
32
+ * @memberof AdminDashboardStatsDto
33
+ */
34
+ affiliates: AffiliatesStatsDto;
35
+ /**
36
+ * Accounts statistics
37
+ * @type {AccountsStatsDto}
38
+ * @memberof AdminDashboardStatsDto
39
+ */
40
+ accounts: AccountsStatsDto;
41
+ /**
42
+ * List of account countries with count
43
+ * @type {Array<AccountCountryStatsDto>}
44
+ * @memberof AdminDashboardStatsDto
45
+ */
46
+ accountCountries: Array<AccountCountryStatsDto>;
47
+ /**
48
+ * Top 10 accounts with most sold domains
49
+ * @type {Array<TopSellerAccountDto>}
50
+ * @memberof AdminDashboardStatsDto
51
+ */
52
+ topSellerAccounts: Array<TopSellerAccountDto>;
53
+ }
54
+ /**
55
+ * Check if a given object implements the AdminDashboardStatsDto interface.
56
+ */
57
+ export declare function instanceOfAdminDashboardStatsDto(value: object): value is AdminDashboardStatsDto;
58
+ export declare function AdminDashboardStatsDtoFromJSON(json: any): AdminDashboardStatsDto;
59
+ export declare function AdminDashboardStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminDashboardStatsDto;
60
+ export declare function AdminDashboardStatsDtoToJSON(json: any): AdminDashboardStatsDto;
61
+ export declare function AdminDashboardStatsDtoToJSONTyped(value?: AdminDashboardStatsDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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.instanceOfAdminDashboardStatsDto = instanceOfAdminDashboardStatsDto;
17
+ exports.AdminDashboardStatsDtoFromJSON = AdminDashboardStatsDtoFromJSON;
18
+ exports.AdminDashboardStatsDtoFromJSONTyped = AdminDashboardStatsDtoFromJSONTyped;
19
+ exports.AdminDashboardStatsDtoToJSON = AdminDashboardStatsDtoToJSON;
20
+ exports.AdminDashboardStatsDtoToJSONTyped = AdminDashboardStatsDtoToJSONTyped;
21
+ var AccountsStatsDto_1 = require("./AccountsStatsDto");
22
+ var AffiliatesStatsDto_1 = require("./AffiliatesStatsDto");
23
+ var AccountCountryStatsDto_1 = require("./AccountCountryStatsDto");
24
+ var PaymentMethodsStatsDto_1 = require("./PaymentMethodsStatsDto");
25
+ var TopSellerAccountDto_1 = require("./TopSellerAccountDto");
26
+ /**
27
+ * Check if a given object implements the AdminDashboardStatsDto interface.
28
+ */
29
+ function instanceOfAdminDashboardStatsDto(value) {
30
+ if (!('paymentMethods' in value) || value['paymentMethods'] === undefined)
31
+ return false;
32
+ if (!('affiliates' in value) || value['affiliates'] === undefined)
33
+ return false;
34
+ if (!('accounts' in value) || value['accounts'] === undefined)
35
+ return false;
36
+ if (!('accountCountries' in value) || value['accountCountries'] === undefined)
37
+ return false;
38
+ if (!('topSellerAccounts' in value) || value['topSellerAccounts'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function AdminDashboardStatsDtoFromJSON(json) {
43
+ return AdminDashboardStatsDtoFromJSONTyped(json, false);
44
+ }
45
+ function AdminDashboardStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'paymentMethods': (0, PaymentMethodsStatsDto_1.PaymentMethodsStatsDtoFromJSON)(json['paymentMethods']),
51
+ 'affiliates': (0, AffiliatesStatsDto_1.AffiliatesStatsDtoFromJSON)(json['affiliates']),
52
+ 'accounts': (0, AccountsStatsDto_1.AccountsStatsDtoFromJSON)(json['accounts']),
53
+ 'accountCountries': (json['accountCountries'].map(AccountCountryStatsDto_1.AccountCountryStatsDtoFromJSON)),
54
+ 'topSellerAccounts': (json['topSellerAccounts'].map(TopSellerAccountDto_1.TopSellerAccountDtoFromJSON)),
55
+ };
56
+ }
57
+ function AdminDashboardStatsDtoToJSON(json) {
58
+ return AdminDashboardStatsDtoToJSONTyped(json, false);
59
+ }
60
+ function AdminDashboardStatsDtoToJSONTyped(value, ignoreDiscriminator) {
61
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'paymentMethods': (0, PaymentMethodsStatsDto_1.PaymentMethodsStatsDtoToJSON)(value['paymentMethods']),
67
+ 'affiliates': (0, AffiliatesStatsDto_1.AffiliatesStatsDtoToJSON)(value['affiliates']),
68
+ 'accounts': (0, AccountsStatsDto_1.AccountsStatsDtoToJSON)(value['accounts']),
69
+ 'accountCountries': (value['accountCountries'].map(AccountCountryStatsDto_1.AccountCountryStatsDtoToJSON)),
70
+ 'topSellerAccounts': (value['topSellerAccounts'].map(TopSellerAccountDto_1.TopSellerAccountDtoToJSON)),
71
+ };
72
+ }
@@ -0,0 +1,32 @@
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 AffiliatesStatsDto
16
+ */
17
+ export interface AffiliatesStatsDto {
18
+ /**
19
+ * Number of accounts with affiliates
20
+ * @type {number}
21
+ * @memberof AffiliatesStatsDto
22
+ */
23
+ accountsWithAffiliates: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AffiliatesStatsDto interface.
27
+ */
28
+ export declare function instanceOfAffiliatesStatsDto(value: object): value is AffiliatesStatsDto;
29
+ export declare function AffiliatesStatsDtoFromJSON(json: any): AffiliatesStatsDto;
30
+ export declare function AffiliatesStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AffiliatesStatsDto;
31
+ export declare function AffiliatesStatsDtoToJSON(json: any): AffiliatesStatsDto;
32
+ export declare function AffiliatesStatsDtoToJSONTyped(value?: AffiliatesStatsDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfAffiliatesStatsDto = instanceOfAffiliatesStatsDto;
17
+ exports.AffiliatesStatsDtoFromJSON = AffiliatesStatsDtoFromJSON;
18
+ exports.AffiliatesStatsDtoFromJSONTyped = AffiliatesStatsDtoFromJSONTyped;
19
+ exports.AffiliatesStatsDtoToJSON = AffiliatesStatsDtoToJSON;
20
+ exports.AffiliatesStatsDtoToJSONTyped = AffiliatesStatsDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AffiliatesStatsDto interface.
23
+ */
24
+ function instanceOfAffiliatesStatsDto(value) {
25
+ if (!('accountsWithAffiliates' in value) || value['accountsWithAffiliates'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AffiliatesStatsDtoFromJSON(json) {
30
+ return AffiliatesStatsDtoFromJSONTyped(json, false);
31
+ }
32
+ function AffiliatesStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'accountsWithAffiliates': json['accountsWithAffiliates'],
38
+ };
39
+ }
40
+ function AffiliatesStatsDtoToJSON(json) {
41
+ return AffiliatesStatsDtoToJSONTyped(json, false);
42
+ }
43
+ function AffiliatesStatsDtoToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'accountsWithAffiliates': value['accountsWithAffiliates'],
50
+ };
51
+ }
@@ -112,6 +112,7 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
112
112
  readonly NOTIFICATIONS_MANAGER: "NOTIFICATIONS_MANAGER";
113
113
  readonly DOMAIN_AUCTIONS: "DOMAIN_AUCTIONS";
114
114
  readonly CRYPTO_PAYMENT_METHOD: "CRYPTO_PAYMENT_METHOD";
115
+ readonly QUADERNO_TAXES: "QUADERNO_TAXES";
115
116
  };
116
117
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
117
118
  /**
@@ -42,7 +42,8 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
42
42
  SELLER_TRANSFER_COSTS_PAYMENT: 'SELLER_TRANSFER_COSTS_PAYMENT',
43
43
  NOTIFICATIONS_MANAGER: 'NOTIFICATIONS_MANAGER',
44
44
  DOMAIN_AUCTIONS: 'DOMAIN_AUCTIONS',
45
- CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD'
45
+ CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
46
+ QUADERNO_TAXES: 'QUADERNO_TAXES'
46
47
  };
47
48
  /**
48
49
  * Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.