@randock/nameshift-api-client 0.0.97 → 0.0.98

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.
@@ -8,7 +8,6 @@ src/apis/AccountsPublicApi.ts
8
8
  src/apis/AdminApi.ts
9
9
  src/apis/BuyersApi.ts
10
10
  src/apis/BuyersPublicApi.ts
11
- src/apis/DashboardApi.ts
12
11
  src/apis/DomainsApi.ts
13
12
  src/apis/DomainsPublicApi.ts
14
13
  src/apis/LeadsApi.ts
@@ -20,6 +19,7 @@ src/apis/UsersPublicApi.ts
20
19
  src/apis/index.ts
21
20
  src/index.ts
22
21
  src/models/AccountDto.ts
22
+ src/models/AccountMetricsDto.ts
23
23
  src/models/AccountPaymentProviderSessionDto.ts
24
24
  src/models/AccountSettingsInput.ts
25
25
  src/models/AddressDto.ts
@@ -42,7 +42,6 @@ src/models/CreateBuyerLeadMessageInput.ts
42
42
  src/models/CreateLeadInput.ts
43
43
  src/models/CreateLeadMessageInput.ts
44
44
  src/models/CreateOrderInput.ts
45
- src/models/DashboardStatsDto.ts
46
45
  src/models/DeleteDomainsInput.ts
47
46
  src/models/DomainDto.ts
48
47
  src/models/DomainSellerDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.97
1
+ ## @randock/nameshift-api-client@0.0.98
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.97 --save
39
+ npm install @randock/nameshift-api-client@0.0.98 --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
- acb49cadda533eb11a45deb149fc5e5a13706274ef12ce1128454bf4ee2b79abc7f08ab0e96a33be177c756e829fe5c3
47
+ aaa4af4e3941f235ec2070a246035f4a962bbefa0a1588c47b312919cb464c5827eb9410f23d94e1a757914e899cabc6
@@ -3,7 +3,6 @@ export * from './AccountsPublicApi';
3
3
  export * from './AdminApi';
4
4
  export * from './BuyersApi';
5
5
  export * from './BuyersPublicApi';
6
- export * from './DashboardApi';
7
6
  export * from './DomainsApi';
8
7
  export * from './DomainsPublicApi';
9
8
  export * from './LeadsApi';
@@ -21,7 +21,6 @@ __exportStar(require("./AccountsPublicApi"), exports);
21
21
  __exportStar(require("./AdminApi"), exports);
22
22
  __exportStar(require("./BuyersApi"), exports);
23
23
  __exportStar(require("./BuyersPublicApi"), exports);
24
- __exportStar(require("./DashboardApi"), exports);
25
24
  __exportStar(require("./DomainsApi"), exports);
26
25
  __exportStar(require("./DomainsPublicApi"), exports);
27
26
  __exportStar(require("./LeadsApi"), exports);
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { PaymentProviderDto } from './PaymentProviderDto';
13
+ import type { AccountMetricsDto } from './AccountMetricsDto';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -36,16 +37,10 @@ export interface AccountDto {
36
37
  name: string;
37
38
  /**
38
39
  *
39
- * @type {number}
40
+ * @type {AccountMetricsDto}
40
41
  * @memberof AccountDto
41
42
  */
42
- activeDomainTransfersNumber: number;
43
- /**
44
- *
45
- * @type {number}
46
- * @memberof AccountDto
47
- */
48
- activeLeadsNumber: number;
43
+ metrics: AccountMetricsDto;
49
44
  /**
50
45
  *
51
46
  * @type {PaymentProviderDto}
@@ -18,6 +18,7 @@ exports.AccountDtoFromJSON = AccountDtoFromJSON;
18
18
  exports.AccountDtoFromJSONTyped = AccountDtoFromJSONTyped;
19
19
  exports.AccountDtoToJSON = AccountDtoToJSON;
20
20
  var PaymentProviderDto_1 = require("./PaymentProviderDto");
21
+ var AccountMetricsDto_1 = require("./AccountMetricsDto");
21
22
  /**
22
23
  * Check if a given object implements the AccountDto interface.
23
24
  */
@@ -28,9 +29,7 @@ function instanceOfAccountDto(value) {
28
29
  return false;
29
30
  if (!('name' in value) || value['name'] === undefined)
30
31
  return false;
31
- if (!('activeDomainTransfersNumber' in value) || value['activeDomainTransfersNumber'] === undefined)
32
- return false;
33
- if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined)
32
+ if (!('metrics' in value) || value['metrics'] === undefined)
34
33
  return false;
35
34
  if (!('paymentProvider' in value) || value['paymentProvider'] === undefined)
36
35
  return false;
@@ -47,8 +46,7 @@ function AccountDtoFromJSONTyped(json, ignoreDiscriminator) {
47
46
  'id': json['id'],
48
47
  'identifier': json['identifier'],
49
48
  'name': json['name'],
50
- 'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
51
- 'activeLeadsNumber': json['activeLeadsNumber'],
49
+ 'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoFromJSON)(json['metrics']),
52
50
  'paymentProvider': (0, PaymentProviderDto_1.PaymentProviderDtoFromJSON)(json['paymentProvider']),
53
51
  };
54
52
  }
@@ -60,8 +58,7 @@ function AccountDtoToJSON(value) {
60
58
  'id': value['id'],
61
59
  'identifier': value['identifier'],
62
60
  'name': value['name'],
63
- 'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
64
- 'activeLeadsNumber': value['activeLeadsNumber'],
61
+ 'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoToJSON)(value['metrics']),
65
62
  'paymentProvider': (0, PaymentProviderDto_1.PaymentProviderDtoToJSON)(value['paymentProvider']),
66
63
  };
67
64
  }
@@ -0,0 +1,49 @@
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 AccountMetricsDto
16
+ */
17
+ export interface AccountMetricsDto {
18
+ /**
19
+ * Total of account leads number
20
+ * @type {number}
21
+ * @memberof AccountMetricsDto
22
+ */
23
+ leadsNumber: number;
24
+ /**
25
+ * Total of account domains number
26
+ * @type {number}
27
+ * @memberof AccountMetricsDto
28
+ */
29
+ domainsNumber: number;
30
+ /**
31
+ * Total of account active leads number
32
+ * @type {number}
33
+ * @memberof AccountMetricsDto
34
+ */
35
+ activeLeadsNumber: number;
36
+ /**
37
+ * Total of active account domain transfers number
38
+ * @type {number}
39
+ * @memberof AccountMetricsDto
40
+ */
41
+ activeDomainTransfersNumber: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the AccountMetricsDto interface.
45
+ */
46
+ export declare function instanceOfAccountMetricsDto(value: object): value is AccountMetricsDto;
47
+ export declare function AccountMetricsDtoFromJSON(json: any): AccountMetricsDto;
48
+ export declare function AccountMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountMetricsDto;
49
+ export declare function AccountMetricsDtoToJSON(value?: AccountMetricsDto | null): any;
@@ -0,0 +1,58 @@
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.instanceOfAccountMetricsDto = instanceOfAccountMetricsDto;
17
+ exports.AccountMetricsDtoFromJSON = AccountMetricsDtoFromJSON;
18
+ exports.AccountMetricsDtoFromJSONTyped = AccountMetricsDtoFromJSONTyped;
19
+ exports.AccountMetricsDtoToJSON = AccountMetricsDtoToJSON;
20
+ /**
21
+ * Check if a given object implements the AccountMetricsDto interface.
22
+ */
23
+ function instanceOfAccountMetricsDto(value) {
24
+ if (!('leadsNumber' in value) || value['leadsNumber'] === undefined)
25
+ return false;
26
+ if (!('domainsNumber' in value) || value['domainsNumber'] === undefined)
27
+ return false;
28
+ if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined)
29
+ return false;
30
+ if (!('activeDomainTransfersNumber' in value) || value['activeDomainTransfersNumber'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function AccountMetricsDtoFromJSON(json) {
35
+ return AccountMetricsDtoFromJSONTyped(json, false);
36
+ }
37
+ function AccountMetricsDtoFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'leadsNumber': json['leadsNumber'],
43
+ 'domainsNumber': json['domainsNumber'],
44
+ 'activeLeadsNumber': json['activeLeadsNumber'],
45
+ 'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
46
+ };
47
+ }
48
+ function AccountMetricsDtoToJSON(value) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'leadsNumber': value['leadsNumber'],
54
+ 'domainsNumber': value['domainsNumber'],
55
+ 'activeLeadsNumber': value['activeLeadsNumber'],
56
+ 'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
57
+ };
58
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { PaymentProviderDto } from './PaymentProviderDto';
13
13
  import type { WithSettingsInner } from './WithSettingsInner';
14
+ import type { AccountMetricsDto } from './AccountMetricsDto';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -37,16 +38,10 @@ export interface IntersectionAccountDtoWithSettingsDto {
37
38
  name: string;
38
39
  /**
39
40
  *
40
- * @type {number}
41
+ * @type {AccountMetricsDto}
41
42
  * @memberof IntersectionAccountDtoWithSettingsDto
42
43
  */
43
- activeDomainTransfersNumber: number;
44
- /**
45
- *
46
- * @type {number}
47
- * @memberof IntersectionAccountDtoWithSettingsDto
48
- */
49
- activeLeadsNumber: number;
44
+ metrics: AccountMetricsDto;
50
45
  /**
51
46
  *
52
47
  * @type {PaymentProviderDto}
@@ -19,6 +19,7 @@ exports.IntersectionAccountDtoWithSettingsDtoFromJSONTyped = IntersectionAccount
19
19
  exports.IntersectionAccountDtoWithSettingsDtoToJSON = IntersectionAccountDtoWithSettingsDtoToJSON;
20
20
  var PaymentProviderDto_1 = require("./PaymentProviderDto");
21
21
  var WithSettingsInner_1 = require("./WithSettingsInner");
22
+ var AccountMetricsDto_1 = require("./AccountMetricsDto");
22
23
  /**
23
24
  * Check if a given object implements the IntersectionAccountDtoWithSettingsDto interface.
24
25
  */
@@ -29,9 +30,7 @@ function instanceOfIntersectionAccountDtoWithSettingsDto(value) {
29
30
  return false;
30
31
  if (!('name' in value) || value['name'] === undefined)
31
32
  return false;
32
- if (!('activeDomainTransfersNumber' in value) || value['activeDomainTransfersNumber'] === undefined)
33
- return false;
34
- if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined)
33
+ if (!('metrics' in value) || value['metrics'] === undefined)
35
34
  return false;
36
35
  if (!('paymentProvider' in value) || value['paymentProvider'] === undefined)
37
36
  return false;
@@ -50,8 +49,7 @@ function IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json, ignoreDiscrimi
50
49
  'id': json['id'],
51
50
  'identifier': json['identifier'],
52
51
  'name': json['name'],
53
- 'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
54
- 'activeLeadsNumber': json['activeLeadsNumber'],
52
+ 'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoFromJSON)(json['metrics']),
55
53
  'paymentProvider': (0, PaymentProviderDto_1.PaymentProviderDtoFromJSON)(json['paymentProvider']),
56
54
  'settings': (0, WithSettingsInner_1.WithSettingsInnerFromJSON)(json['settings']),
57
55
  };
@@ -64,8 +62,7 @@ function IntersectionAccountDtoWithSettingsDtoToJSON(value) {
64
62
  'id': value['id'],
65
63
  'identifier': value['identifier'],
66
64
  'name': value['name'],
67
- 'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
68
- 'activeLeadsNumber': value['activeLeadsNumber'],
65
+ 'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoToJSON)(value['metrics']),
69
66
  'paymentProvider': (0, PaymentProviderDto_1.PaymentProviderDtoToJSON)(value['paymentProvider']),
70
67
  'settings': (0, WithSettingsInner_1.WithSettingsInnerToJSON)(value['settings']),
71
68
  };
@@ -1,4 +1,5 @@
1
1
  export * from './AccountDto';
2
+ export * from './AccountMetricsDto';
2
3
  export * from './AccountPaymentProviderSessionDto';
3
4
  export * from './AccountSettingsInput';
4
5
  export * from './AddressDto';
@@ -21,7 +22,6 @@ export * from './CreateBuyerLeadMessageInput';
21
22
  export * from './CreateLeadInput';
22
23
  export * from './CreateLeadMessageInput';
23
24
  export * from './CreateOrderInput';
24
- export * from './DashboardStatsDto';
25
25
  export * from './DeleteDomainsInput';
26
26
  export * from './DomainDto';
27
27
  export * from './DomainSellerDto';
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AccountDto"), exports);
20
+ __exportStar(require("./AccountMetricsDto"), exports);
20
21
  __exportStar(require("./AccountPaymentProviderSessionDto"), exports);
21
22
  __exportStar(require("./AccountSettingsInput"), exports);
22
23
  __exportStar(require("./AddressDto"), exports);
@@ -39,7 +40,6 @@ __exportStar(require("./CreateBuyerLeadMessageInput"), exports);
39
40
  __exportStar(require("./CreateLeadInput"), exports);
40
41
  __exportStar(require("./CreateLeadMessageInput"), exports);
41
42
  __exportStar(require("./CreateOrderInput"), exports);
42
- __exportStar(require("./DashboardStatsDto"), exports);
43
43
  __exportStar(require("./DeleteDomainsInput"), exports);
44
44
  __exportStar(require("./DomainDto"), exports);
45
45
  __exportStar(require("./DomainSellerDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.97",
3
+ "version": "0.0.98",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
package/src/apis/index.ts CHANGED
@@ -5,7 +5,6 @@ export * from './AccountsPublicApi';
5
5
  export * from './AdminApi';
6
6
  export * from './BuyersApi';
7
7
  export * from './BuyersPublicApi';
8
- export * from './DashboardApi';
9
8
  export * from './DomainsApi';
10
9
  export * from './DomainsPublicApi';
11
10
  export * from './LeadsApi';
@@ -19,6 +19,12 @@ import {
19
19
  PaymentProviderDtoFromJSONTyped,
20
20
  PaymentProviderDtoToJSON,
21
21
  } from './PaymentProviderDto';
22
+ import type { AccountMetricsDto } from './AccountMetricsDto';
23
+ import {
24
+ AccountMetricsDtoFromJSON,
25
+ AccountMetricsDtoFromJSONTyped,
26
+ AccountMetricsDtoToJSON,
27
+ } from './AccountMetricsDto';
22
28
 
23
29
  /**
24
30
  *
@@ -46,16 +52,10 @@ export interface AccountDto {
46
52
  name: string;
47
53
  /**
48
54
  *
49
- * @type {number}
50
- * @memberof AccountDto
51
- */
52
- activeDomainTransfersNumber: number;
53
- /**
54
- *
55
- * @type {number}
55
+ * @type {AccountMetricsDto}
56
56
  * @memberof AccountDto
57
57
  */
58
- activeLeadsNumber: number;
58
+ metrics: AccountMetricsDto;
59
59
  /**
60
60
  *
61
61
  * @type {PaymentProviderDto}
@@ -71,8 +71,7 @@ export function instanceOfAccountDto(value: object): value is AccountDto {
71
71
  if (!('id' in value) || value['id'] === undefined) return false;
72
72
  if (!('identifier' in value) || value['identifier'] === undefined) return false;
73
73
  if (!('name' in value) || value['name'] === undefined) return false;
74
- if (!('activeDomainTransfersNumber' in value) || value['activeDomainTransfersNumber'] === undefined) return false;
75
- if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined) return false;
74
+ if (!('metrics' in value) || value['metrics'] === undefined) return false;
76
75
  if (!('paymentProvider' in value) || value['paymentProvider'] === undefined) return false;
77
76
  return true;
78
77
  }
@@ -90,8 +89,7 @@ export function AccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
90
89
  'id': json['id'],
91
90
  'identifier': json['identifier'],
92
91
  'name': json['name'],
93
- 'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
94
- 'activeLeadsNumber': json['activeLeadsNumber'],
92
+ 'metrics': AccountMetricsDtoFromJSON(json['metrics']),
95
93
  'paymentProvider': PaymentProviderDtoFromJSON(json['paymentProvider']),
96
94
  };
97
95
  }
@@ -105,8 +103,7 @@ export function AccountDtoToJSON(value?: AccountDto | null): any {
105
103
  'id': value['id'],
106
104
  'identifier': value['identifier'],
107
105
  'name': value['name'],
108
- 'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
109
- 'activeLeadsNumber': value['activeLeadsNumber'],
106
+ 'metrics': AccountMetricsDtoToJSON(value['metrics']),
110
107
  'paymentProvider': PaymentProviderDtoToJSON(value['paymentProvider']),
111
108
  };
112
109
  }
@@ -0,0 +1,88 @@
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 AccountMetricsDto
20
+ */
21
+ export interface AccountMetricsDto {
22
+ /**
23
+ * Total of account leads number
24
+ * @type {number}
25
+ * @memberof AccountMetricsDto
26
+ */
27
+ leadsNumber: number;
28
+ /**
29
+ * Total of account domains number
30
+ * @type {number}
31
+ * @memberof AccountMetricsDto
32
+ */
33
+ domainsNumber: number;
34
+ /**
35
+ * Total of account active leads number
36
+ * @type {number}
37
+ * @memberof AccountMetricsDto
38
+ */
39
+ activeLeadsNumber: number;
40
+ /**
41
+ * Total of active account domain transfers number
42
+ * @type {number}
43
+ * @memberof AccountMetricsDto
44
+ */
45
+ activeDomainTransfersNumber: number;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the AccountMetricsDto interface.
50
+ */
51
+ export function instanceOfAccountMetricsDto(value: object): value is AccountMetricsDto {
52
+ if (!('leadsNumber' in value) || value['leadsNumber'] === undefined) return false;
53
+ if (!('domainsNumber' in value) || value['domainsNumber'] === undefined) return false;
54
+ if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined) return false;
55
+ if (!('activeDomainTransfersNumber' in value) || value['activeDomainTransfersNumber'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function AccountMetricsDtoFromJSON(json: any): AccountMetricsDto {
60
+ return AccountMetricsDtoFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function AccountMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountMetricsDto {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'leadsNumber': json['leadsNumber'],
70
+ 'domainsNumber': json['domainsNumber'],
71
+ 'activeLeadsNumber': json['activeLeadsNumber'],
72
+ 'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
73
+ };
74
+ }
75
+
76
+ export function AccountMetricsDtoToJSON(value?: AccountMetricsDto | null): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+ return {
81
+
82
+ 'leadsNumber': value['leadsNumber'],
83
+ 'domainsNumber': value['domainsNumber'],
84
+ 'activeLeadsNumber': value['activeLeadsNumber'],
85
+ 'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
86
+ };
87
+ }
88
+
@@ -25,6 +25,12 @@ import {
25
25
  WithSettingsInnerFromJSONTyped,
26
26
  WithSettingsInnerToJSON,
27
27
  } from './WithSettingsInner';
28
+ import type { AccountMetricsDto } from './AccountMetricsDto';
29
+ import {
30
+ AccountMetricsDtoFromJSON,
31
+ AccountMetricsDtoFromJSONTyped,
32
+ AccountMetricsDtoToJSON,
33
+ } from './AccountMetricsDto';
28
34
 
29
35
  /**
30
36
  *
@@ -52,16 +58,10 @@ export interface IntersectionAccountDtoWithSettingsDto {
52
58
  name: string;
53
59
  /**
54
60
  *
55
- * @type {number}
56
- * @memberof IntersectionAccountDtoWithSettingsDto
57
- */
58
- activeDomainTransfersNumber: number;
59
- /**
60
- *
61
- * @type {number}
61
+ * @type {AccountMetricsDto}
62
62
  * @memberof IntersectionAccountDtoWithSettingsDto
63
63
  */
64
- activeLeadsNumber: number;
64
+ metrics: AccountMetricsDto;
65
65
  /**
66
66
  *
67
67
  * @type {PaymentProviderDto}
@@ -83,8 +83,7 @@ export function instanceOfIntersectionAccountDtoWithSettingsDto(value: object):
83
83
  if (!('id' in value) || value['id'] === undefined) return false;
84
84
  if (!('identifier' in value) || value['identifier'] === undefined) return false;
85
85
  if (!('name' in value) || value['name'] === undefined) return false;
86
- if (!('activeDomainTransfersNumber' in value) || value['activeDomainTransfersNumber'] === undefined) return false;
87
- if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined) return false;
86
+ if (!('metrics' in value) || value['metrics'] === undefined) return false;
88
87
  if (!('paymentProvider' in value) || value['paymentProvider'] === undefined) return false;
89
88
  if (!('settings' in value) || value['settings'] === undefined) return false;
90
89
  return true;
@@ -103,8 +102,7 @@ export function IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json: any, ig
103
102
  'id': json['id'],
104
103
  'identifier': json['identifier'],
105
104
  'name': json['name'],
106
- 'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
107
- 'activeLeadsNumber': json['activeLeadsNumber'],
105
+ 'metrics': AccountMetricsDtoFromJSON(json['metrics']),
108
106
  'paymentProvider': PaymentProviderDtoFromJSON(json['paymentProvider']),
109
107
  'settings': WithSettingsInnerFromJSON(json['settings']),
110
108
  };
@@ -119,8 +117,7 @@ export function IntersectionAccountDtoWithSettingsDtoToJSON(value?: Intersection
119
117
  'id': value['id'],
120
118
  'identifier': value['identifier'],
121
119
  'name': value['name'],
122
- 'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
123
- 'activeLeadsNumber': value['activeLeadsNumber'],
120
+ 'metrics': AccountMetricsDtoToJSON(value['metrics']),
124
121
  'paymentProvider': PaymentProviderDtoToJSON(value['paymentProvider']),
125
122
  'settings': WithSettingsInnerToJSON(value['settings']),
126
123
  };
@@ -1,6 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AccountDto';
4
+ export * from './AccountMetricsDto';
4
5
  export * from './AccountPaymentProviderSessionDto';
5
6
  export * from './AccountSettingsInput';
6
7
  export * from './AddressDto';
@@ -23,7 +24,6 @@ export * from './CreateBuyerLeadMessageInput';
23
24
  export * from './CreateLeadInput';
24
25
  export * from './CreateLeadMessageInput';
25
26
  export * from './CreateOrderInput';
26
- export * from './DashboardStatsDto';
27
27
  export * from './DeleteDomainsInput';
28
28
  export * from './DomainDto';
29
29
  export * from './DomainSellerDto';
@@ -1,26 +0,0 @@
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 * as runtime from '../runtime';
13
- import type { DashboardStatsDto } from '../models/index';
14
- /**
15
- *
16
- */
17
- export declare class DashboardApi extends runtime.BaseAPI {
18
- /**
19
- *
20
- */
21
- statsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DashboardStatsDto>>;
22
- /**
23
- *
24
- */
25
- stats(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DashboardStatsDto>;
26
- }
@@ -1,130 +0,0 @@
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
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
- return new (P || (P = Promise))(function (resolve, reject) {
33
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
- step((generator = generator.apply(thisArg, _arguments || [])).next());
37
- });
38
- };
39
- var __generator = (this && this.__generator) || function (thisArg, body) {
40
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
- function verb(n) { return function (v) { return step([n, v]); }; }
43
- function step(op) {
44
- if (f) throw new TypeError("Generator is already executing.");
45
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
- if (y = 0, t) op = [op[0] & 2, t.value];
48
- switch (op[0]) {
49
- case 0: case 1: t = op; break;
50
- case 4: _.label++; return { value: op[1], done: false };
51
- case 5: _.label++; y = op[1]; op = [0]; continue;
52
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
- default:
54
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
- if (t[2]) _.ops.pop();
59
- _.trys.pop(); continue;
60
- }
61
- op = body.call(thisArg, _);
62
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
- }
65
- };
66
- Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.DashboardApi = void 0;
68
- var runtime = require("../runtime");
69
- var index_1 = require("../models/index");
70
- /**
71
- *
72
- */
73
- var DashboardApi = /** @class */ (function (_super) {
74
- __extends(DashboardApi, _super);
75
- function DashboardApi() {
76
- return _super !== null && _super.apply(this, arguments) || this;
77
- }
78
- /**
79
- *
80
- */
81
- DashboardApi.prototype.statsRaw = function (initOverrides) {
82
- return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, token, tokenString, response;
84
- return __generator(this, function (_a) {
85
- switch (_a.label) {
86
- case 0:
87
- queryParameters = {};
88
- headerParameters = {};
89
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
90
- token = this.configuration.accessToken;
91
- return [4 /*yield*/, token("bearer", [])];
92
- case 1:
93
- tokenString = _a.sent();
94
- if (tokenString) {
95
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
96
- }
97
- _a.label = 2;
98
- case 2: return [4 /*yield*/, this.request({
99
- path: "/private/dashboard/stats",
100
- method: 'GET',
101
- headers: headerParameters,
102
- query: queryParameters,
103
- }, initOverrides)];
104
- case 3:
105
- response = _a.sent();
106
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DashboardStatsDtoFromJSON)(jsonValue); })];
107
- }
108
- });
109
- });
110
- };
111
- /**
112
- *
113
- */
114
- DashboardApi.prototype.stats = function (initOverrides) {
115
- return __awaiter(this, void 0, void 0, function () {
116
- var response;
117
- return __generator(this, function (_a) {
118
- switch (_a.label) {
119
- case 0: return [4 /*yield*/, this.statsRaw(initOverrides)];
120
- case 1:
121
- response = _a.sent();
122
- return [4 /*yield*/, response.value()];
123
- case 2: return [2 /*return*/, _a.sent()];
124
- }
125
- });
126
- });
127
- };
128
- return DashboardApi;
129
- }(runtime.BaseAPI));
130
- exports.DashboardApi = DashboardApi;
@@ -1,43 +0,0 @@
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 DashboardStatsDto
16
- */
17
- export interface DashboardStatsDto {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof DashboardStatsDto
22
- */
23
- domains: number;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof DashboardStatsDto
28
- */
29
- leads: number;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof DashboardStatsDto
34
- */
35
- transactions: number;
36
- }
37
- /**
38
- * Check if a given object implements the DashboardStatsDto interface.
39
- */
40
- export declare function instanceOfDashboardStatsDto(value: object): value is DashboardStatsDto;
41
- export declare function DashboardStatsDtoFromJSON(json: any): DashboardStatsDto;
42
- export declare function DashboardStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DashboardStatsDto;
43
- export declare function DashboardStatsDtoToJSON(value?: DashboardStatsDto | null): any;
@@ -1,54 +0,0 @@
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.instanceOfDashboardStatsDto = instanceOfDashboardStatsDto;
17
- exports.DashboardStatsDtoFromJSON = DashboardStatsDtoFromJSON;
18
- exports.DashboardStatsDtoFromJSONTyped = DashboardStatsDtoFromJSONTyped;
19
- exports.DashboardStatsDtoToJSON = DashboardStatsDtoToJSON;
20
- /**
21
- * Check if a given object implements the DashboardStatsDto interface.
22
- */
23
- function instanceOfDashboardStatsDto(value) {
24
- if (!('domains' in value) || value['domains'] === undefined)
25
- return false;
26
- if (!('leads' in value) || value['leads'] === undefined)
27
- return false;
28
- if (!('transactions' in value) || value['transactions'] === undefined)
29
- return false;
30
- return true;
31
- }
32
- function DashboardStatsDtoFromJSON(json) {
33
- return DashboardStatsDtoFromJSONTyped(json, false);
34
- }
35
- function DashboardStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
36
- if (json == null) {
37
- return json;
38
- }
39
- return {
40
- 'domains': json['domains'],
41
- 'leads': json['leads'],
42
- 'transactions': json['transactions'],
43
- };
44
- }
45
- function DashboardStatsDtoToJSON(value) {
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'domains': value['domains'],
51
- 'leads': value['leads'],
52
- 'transactions': value['transactions'],
53
- };
54
- }
@@ -1,67 +0,0 @@
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
-
16
- import * as runtime from '../runtime';
17
- import type {
18
- DashboardStatsDto,
19
- ValidationException,
20
- } from '../models/index';
21
- import {
22
- DashboardStatsDtoFromJSON,
23
- DashboardStatsDtoToJSON,
24
- ValidationExceptionFromJSON,
25
- ValidationExceptionToJSON,
26
- } from '../models/index';
27
-
28
- /**
29
- *
30
- */
31
- export class DashboardApi extends runtime.BaseAPI {
32
-
33
- /**
34
- *
35
- */
36
- async statsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DashboardStatsDto>> {
37
- const queryParameters: any = {};
38
-
39
- const headerParameters: runtime.HTTPHeaders = {};
40
-
41
- if (this.configuration && this.configuration.accessToken) {
42
- const token = this.configuration.accessToken;
43
- const tokenString = await token("bearer", []);
44
-
45
- if (tokenString) {
46
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
47
- }
48
- }
49
- const response = await this.request({
50
- path: `/private/dashboard/stats`,
51
- method: 'GET',
52
- headers: headerParameters,
53
- query: queryParameters,
54
- }, initOverrides);
55
-
56
- return new runtime.JSONApiResponse(response, (jsonValue) => DashboardStatsDtoFromJSON(jsonValue));
57
- }
58
-
59
- /**
60
- *
61
- */
62
- async stats(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DashboardStatsDto> {
63
- const response = await this.statsRaw(initOverrides);
64
- return await response.value();
65
- }
66
-
67
- }
@@ -1,79 +0,0 @@
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 DashboardStatsDto
20
- */
21
- export interface DashboardStatsDto {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof DashboardStatsDto
26
- */
27
- domains: number;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof DashboardStatsDto
32
- */
33
- leads: number;
34
- /**
35
- *
36
- * @type {number}
37
- * @memberof DashboardStatsDto
38
- */
39
- transactions: number;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the DashboardStatsDto interface.
44
- */
45
- export function instanceOfDashboardStatsDto(value: object): value is DashboardStatsDto {
46
- if (!('domains' in value) || value['domains'] === undefined) return false;
47
- if (!('leads' in value) || value['leads'] === undefined) return false;
48
- if (!('transactions' in value) || value['transactions'] === undefined) return false;
49
- return true;
50
- }
51
-
52
- export function DashboardStatsDtoFromJSON(json: any): DashboardStatsDto {
53
- return DashboardStatsDtoFromJSONTyped(json, false);
54
- }
55
-
56
- export function DashboardStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DashboardStatsDto {
57
- if (json == null) {
58
- return json;
59
- }
60
- return {
61
-
62
- 'domains': json['domains'],
63
- 'leads': json['leads'],
64
- 'transactions': json['transactions'],
65
- };
66
- }
67
-
68
- export function DashboardStatsDtoToJSON(value?: DashboardStatsDto | null): any {
69
- if (value == null) {
70
- return value;
71
- }
72
- return {
73
-
74
- 'domains': value['domains'],
75
- 'leads': value['leads'],
76
- 'transactions': value['transactions'],
77
- };
78
- }
79
-