@randock/nameshift-api-client 0.0.368 → 0.0.370

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 +7 -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/apis/DomainsApi.d.ts +12 -1
  6. package/dist/apis/DomainsApi.js +53 -0
  7. package/dist/models/AccountCountryStatsDto.d.ts +38 -0
  8. package/dist/models/AccountCountryStatsDto.js +55 -0
  9. package/dist/models/AccountsStatsDto.d.ts +56 -0
  10. package/dist/models/AccountsStatsDto.js +67 -0
  11. package/dist/models/AdminDashboardStatsDto.d.ts +61 -0
  12. package/dist/models/AdminDashboardStatsDto.js +72 -0
  13. package/dist/models/AffiliatesStatsDto.d.ts +32 -0
  14. package/dist/models/AffiliatesStatsDto.js +51 -0
  15. package/dist/models/DomainVerificationStatusDto.d.ts +32 -0
  16. package/dist/models/DomainVerificationStatusDto.js +51 -0
  17. package/dist/models/PaymentMethodsStatsDto.d.ts +62 -0
  18. package/dist/models/PaymentMethodsStatsDto.js +71 -0
  19. package/dist/models/TopSellerAccountDto.d.ts +44 -0
  20. package/dist/models/TopSellerAccountDto.js +59 -0
  21. package/dist/models/index.d.ts +7 -0
  22. package/dist/models/index.js +7 -0
  23. package/package.json +1 -1
  24. package/src/apis/AdminApi.ts +45 -0
  25. package/src/apis/DomainsApi.ts +48 -0
  26. package/src/models/AccountCountryStatsDto.ts +75 -0
  27. package/src/models/AccountsStatsDto.ts +102 -0
  28. package/src/models/AdminDashboardStatsDto.ts +138 -0
  29. package/src/models/AffiliatesStatsDto.ts +66 -0
  30. package/src/models/DomainVerificationStatusDto.ts +66 -0
  31. package/src/models/PaymentMethodsStatsDto.ts +111 -0
  32. package/src/models/TopSellerAccountDto.ts +84 -0
  33. package/src/models/index.ts +7 -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
@@ -209,6 +213,7 @@ src/models/DomainTransferTldInformationDto.ts
209
213
  src/models/DomainTransferTldInformationResultDto.ts
210
214
  src/models/DomainTransferWorkflowDto.ts
211
215
  src/models/DomainUrlDto.ts
216
+ src/models/DomainVerificationStatusDto.ts
212
217
  src/models/EppBatchUpdateInput.ts
213
218
  src/models/FixedCommissionPayloadDto.ts
214
219
  src/models/FixedCommissionPayloadInput.ts
@@ -318,6 +323,7 @@ src/models/PaginateResponseMeta.ts
318
323
  src/models/ParsedDomainDto.ts
319
324
  src/models/PartnerAuctionDto.ts
320
325
  src/models/PayAccountPaymentInput.ts
326
+ src/models/PaymentMethodsStatsDto.ts
321
327
  src/models/PrivateAccountGetMeResponse.ts
322
328
  src/models/PublicAccountInformationDto.ts
323
329
  src/models/PublicAuctionListItemDto.ts
@@ -412,6 +418,7 @@ src/models/TaskListLeadOfferDto.ts
412
418
  src/models/TaskListLeadRentConfigurationDto.ts
413
419
  src/models/TimeTableConfigurationDto.ts
414
420
  src/models/TimeTableConfigurationInput.ts
421
+ src/models/TopSellerAccountDto.ts
415
422
  src/models/UkBankAccountDetails.ts
416
423
  src/models/UpdateAccountBillingInformationInput.ts
417
424
  src/models/UpdateAuctionMuteStatusInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.368
1
+ ## @randock/nameshift-api-client@0.0.370
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.368 --save
39
+ npm install @randock/nameshift-api-client@0.0.370 --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
- f734ebb7580b9d0b03ad855c71feb1b3cb55e1575384c22cfffef06aa640897f9775049fb0ea09ac44b24f5e67fee55d
47
+ 7439ee22b39e492cab8e736c7715148f5de25ee6aef25885a3afe3dc313e6ce23daf25f37f7226374939be6b683042a8
@@ -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
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchImportPreviewDto, BatchUpdateDomainsInput, BulkUpdateDomainsWithFiltersInput, DeleteDomainsInput, DomainExchangeRateDto, DomainFiltersDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainAffiliateCommissionDto, SellerDomainTransferDto, StartAuctionInput, UpdateDomainInput, UpdateDomainTransferAuthCodeInput, UpdateDomainTransferIpsTagInput } from '../models/index';
13
+ import type { BatchImportPreviewDto, BatchUpdateDomainsInput, BulkUpdateDomainsWithFiltersInput, DeleteDomainsInput, DomainExchangeRateDto, DomainFiltersDto, DomainUrlDto, DomainVerificationStatusDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainAffiliateCommissionDto, SellerDomainTransferDto, StartAuctionInput, UpdateDomainInput, UpdateDomainTransferAuthCodeInput, UpdateDomainTransferIpsTagInput } from '../models/index';
14
14
  export interface DomainsApiBatchImportRequest {
15
15
  file?: Blob | null;
16
16
  domains?: Array<string>;
@@ -28,6 +28,9 @@ export interface DomainsApiBulkUpdateDomainsWithFiltersRequest {
28
28
  export interface DomainsApiCheckDnsRequest {
29
29
  domainId: string;
30
30
  }
31
+ export interface DomainsApiCheckDomainVerificationRequest {
32
+ domainId: string;
33
+ }
31
34
  export interface DomainsApiDeleteDomainsRequest {
32
35
  deleteDomainsInput: DeleteDomainsInput;
33
36
  }
@@ -121,6 +124,14 @@ export declare class DomainsApi extends runtime.BaseAPI {
121
124
  *
122
125
  */
123
126
  checkDns(requestParameters: DomainsApiCheckDnsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
127
+ /**
128
+ *
129
+ */
130
+ checkDomainVerificationRaw(requestParameters: DomainsApiCheckDomainVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainVerificationStatusDto>>;
131
+ /**
132
+ *
133
+ */
134
+ checkDomainVerification(requestParameters: DomainsApiCheckDomainVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainVerificationStatusDto>;
124
135
  /**
125
136
  *
126
137
  */
@@ -374,6 +374,59 @@ var DomainsApi = /** @class */ (function (_super) {
374
374
  });
375
375
  });
376
376
  };
377
+ /**
378
+ *
379
+ */
380
+ DomainsApi.prototype.checkDomainVerificationRaw = function (requestParameters, initOverrides) {
381
+ return __awaiter(this, void 0, void 0, function () {
382
+ var queryParameters, headerParameters, token, tokenString, response;
383
+ return __generator(this, function (_a) {
384
+ switch (_a.label) {
385
+ case 0:
386
+ if (requestParameters['domainId'] == null) {
387
+ throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling checkDomainVerification().');
388
+ }
389
+ queryParameters = {};
390
+ headerParameters = {};
391
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
392
+ token = this.configuration.accessToken;
393
+ return [4 /*yield*/, token("bearer", [])];
394
+ case 1:
395
+ tokenString = _a.sent();
396
+ if (tokenString) {
397
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
398
+ }
399
+ _a.label = 2;
400
+ case 2: return [4 /*yield*/, this.request({
401
+ path: "/private/domains/{domainId}/check-verification".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
402
+ method: 'POST',
403
+ headers: headerParameters,
404
+ query: queryParameters,
405
+ }, initOverrides)];
406
+ case 3:
407
+ response = _a.sent();
408
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainVerificationStatusDtoFromJSON)(jsonValue); })];
409
+ }
410
+ });
411
+ });
412
+ };
413
+ /**
414
+ *
415
+ */
416
+ DomainsApi.prototype.checkDomainVerification = function (requestParameters, initOverrides) {
417
+ return __awaiter(this, void 0, void 0, function () {
418
+ var response;
419
+ return __generator(this, function (_a) {
420
+ switch (_a.label) {
421
+ case 0: return [4 /*yield*/, this.checkDomainVerificationRaw(requestParameters, initOverrides)];
422
+ case 1:
423
+ response = _a.sent();
424
+ return [4 /*yield*/, response.value()];
425
+ case 2: return [2 /*return*/, _a.sent()];
426
+ }
427
+ });
428
+ });
429
+ };
377
430
  /**
378
431
  *
379
432
  */
@@ -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;