@randock/nameshift-api-client 0.0.457 → 0.0.458
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.
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.458
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.458 --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
|
-
|
|
47
|
+
08bf50aadab383831f03f11bd8ec50ed5b70c0c6d30f405afb0b4b6d00b42a9971997bc6a8dd86379560ea0fa5e84846
|
|
@@ -29,6 +29,14 @@ export interface GetAccountNameshiftCommissionsResponseDto {
|
|
|
29
29
|
* @memberof GetAccountNameshiftCommissionsResponseDto
|
|
30
30
|
*/
|
|
31
31
|
details: Array<AccountNameshiftCommissionItemDto>;
|
|
32
|
+
/**
|
|
33
|
+
* The account's live domain count per extension, keyed by lower-case TLD (for example { "com": 241 }). Extensions the account holds no domains in are omitted. Lets a client weight each commission rule by how much of the portfolio it governs.
|
|
34
|
+
* @type {{ [key: string]: number; }}
|
|
35
|
+
* @memberof GetAccountNameshiftCommissionsResponseDto
|
|
36
|
+
*/
|
|
37
|
+
domainCountsByTld: {
|
|
38
|
+
[key: string]: number;
|
|
39
|
+
};
|
|
32
40
|
}
|
|
33
41
|
/**
|
|
34
42
|
* Check if a given object implements the GetAccountNameshiftCommissionsResponseDto interface.
|
|
@@ -28,6 +28,8 @@ function instanceOfGetAccountNameshiftCommissionsResponseDto(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('details' in value) || value['details'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('domainCountsByTld' in value) || value['domainCountsByTld'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
return true;
|
|
32
34
|
}
|
|
33
35
|
function GetAccountNameshiftCommissionsResponseDtoFromJSON(json) {
|
|
@@ -40,6 +42,7 @@ function GetAccountNameshiftCommissionsResponseDtoFromJSONTyped(json, ignoreDisc
|
|
|
40
42
|
return {
|
|
41
43
|
'current': (0, AccountNameshiftCommissionBySubtypePercentagesDto_1.AccountNameshiftCommissionBySubtypePercentagesDtoFromJSON)(json['current']),
|
|
42
44
|
'details': (json['details'].map(AccountNameshiftCommissionItemDto_1.AccountNameshiftCommissionItemDtoFromJSON)),
|
|
45
|
+
'domainCountsByTld': json['domainCountsByTld'],
|
|
43
46
|
};
|
|
44
47
|
}
|
|
45
48
|
function GetAccountNameshiftCommissionsResponseDtoToJSON(json) {
|
|
@@ -53,5 +56,6 @@ function GetAccountNameshiftCommissionsResponseDtoToJSONTyped(value, ignoreDiscr
|
|
|
53
56
|
return {
|
|
54
57
|
'current': (0, AccountNameshiftCommissionBySubtypePercentagesDto_1.AccountNameshiftCommissionBySubtypePercentagesDtoToJSON)(value['current']),
|
|
55
58
|
'details': (value['details'].map(AccountNameshiftCommissionItemDto_1.AccountNameshiftCommissionItemDtoToJSON)),
|
|
59
|
+
'domainCountsByTld': value['domainCountsByTld'],
|
|
56
60
|
};
|
|
57
61
|
}
|
package/package.json
CHANGED
|
@@ -46,6 +46,12 @@ export interface GetAccountNameshiftCommissionsResponseDto {
|
|
|
46
46
|
* @memberof GetAccountNameshiftCommissionsResponseDto
|
|
47
47
|
*/
|
|
48
48
|
details: Array<AccountNameshiftCommissionItemDto>;
|
|
49
|
+
/**
|
|
50
|
+
* The account's live domain count per extension, keyed by lower-case TLD (for example { "com": 241 }). Extensions the account holds no domains in are omitted. Lets a client weight each commission rule by how much of the portfolio it governs.
|
|
51
|
+
* @type {{ [key: string]: number; }}
|
|
52
|
+
* @memberof GetAccountNameshiftCommissionsResponseDto
|
|
53
|
+
*/
|
|
54
|
+
domainCountsByTld: { [key: string]: number; };
|
|
49
55
|
}
|
|
50
56
|
|
|
51
57
|
/**
|
|
@@ -54,6 +60,7 @@ export interface GetAccountNameshiftCommissionsResponseDto {
|
|
|
54
60
|
export function instanceOfGetAccountNameshiftCommissionsResponseDto(value: object): value is GetAccountNameshiftCommissionsResponseDto {
|
|
55
61
|
if (!('current' in value) || value['current'] === undefined) return false;
|
|
56
62
|
if (!('details' in value) || value['details'] === undefined) return false;
|
|
63
|
+
if (!('domainCountsByTld' in value) || value['domainCountsByTld'] === undefined) return false;
|
|
57
64
|
return true;
|
|
58
65
|
}
|
|
59
66
|
|
|
@@ -69,6 +76,7 @@ export function GetAccountNameshiftCommissionsResponseDtoFromJSONTyped(json: any
|
|
|
69
76
|
|
|
70
77
|
'current': AccountNameshiftCommissionBySubtypePercentagesDtoFromJSON(json['current']),
|
|
71
78
|
'details': ((json['details'] as Array<any>).map(AccountNameshiftCommissionItemDtoFromJSON)),
|
|
79
|
+
'domainCountsByTld': json['domainCountsByTld'],
|
|
72
80
|
};
|
|
73
81
|
}
|
|
74
82
|
|
|
@@ -85,6 +93,7 @@ export function GetAccountNameshiftCommissionsResponseDtoToJSONTyped(value?: Get
|
|
|
85
93
|
|
|
86
94
|
'current': AccountNameshiftCommissionBySubtypePercentagesDtoToJSON(value['current']),
|
|
87
95
|
'details': ((value['details'] as Array<any>).map(AccountNameshiftCommissionItemDtoToJSON)),
|
|
96
|
+
'domainCountsByTld': value['domainCountsByTld'],
|
|
88
97
|
};
|
|
89
98
|
}
|
|
90
99
|
|